stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/utils/ConversionUtils.java [482:502]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static long getLong( Object obj ) {
        if ( obj instanceof Long ) {
            return ( Long ) obj;
        }
        if ( obj instanceof Number ) {
            return ( ( Number ) obj ).longValue();
        }
        if ( obj instanceof String ) {
            return NumberUtils.toLong( ( String ) obj );
        }
        if ( obj instanceof Date ) {
            return ( ( Date ) obj ).getTime();
        }
        if ( obj instanceof byte[] ) {
            return getLong( ( byte[] ) obj );
        }
        if ( obj instanceof ByteBuffer ) {
            return getLong( ( ByteBuffer ) obj );
        }
        return 0;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



stack/core/src/main/java/org/apache/usergrid/utils/ConversionUtils.java [482:502]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static long getLong( Object obj ) {
        if ( obj instanceof Long ) {
            return ( Long ) obj;
        }
        if ( obj instanceof Number ) {
            return ( ( Number ) obj ).longValue();
        }
        if ( obj instanceof String ) {
            return NumberUtils.toLong( ( String ) obj );
        }
        if ( obj instanceof Date ) {
            return ( ( Date ) obj ).getTime();
        }
        if ( obj instanceof byte[] ) {
            return getLong( ( byte[] ) obj );
        }
        if ( obj instanceof ByteBuffer ) {
            return getLong( ( ByteBuffer ) obj );
        }
        return 0;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



