public static MetaKey fromString ( final String string )
    {
        final int idx = string.indexOf ( ':' );
        if ( idx < 1 )
        {
            // -1: none at all, 0: empty namespace
            return null;
        }

        if ( idx + 1 >= string.length () )
        {
            // empty key segment
            return null;
        }

        return new MetaKey ( string.substring ( 0, idx ), string.substring ( idx + 1 ), true );
    }
public static MetaKey fromString ( final String string )
    {
        final int idx = string.indexOf ( ':' );
        if ( idx < 1 )
        {
            
            return null;
        }

        if ( idx + 1 >= string.length () )
        {
            
            return null;
        }

        return new MetaKey ( string.substring ( 0, idx ), string.substring ( idx + 1 ), true );
    }
public static MetaKey fromString ( final String string ) { final int idx = string . indexOf ( ' ' ) ; if ( idx < 1 ) { // -1: none at all, 0: empty namespace return null ; } if ( idx + 1 >= string . length ( ) ) { // empty key segment return null ; } return new MetaKey ( string . substring ( 0 , idx ) , string . substring ( idx + 1 ) , true ) ; }
Convert a string to a MetaKey if possible

@param string
the string to convert
@return the new MetaKey instance or <code>null</code> if the format was
invalid
Convert a string to a MetaKey if possible