@ NullSafe public static int lastIndexOf ( String text , String value ) { return text != null && value != null ? text . lastIndexOf ( value ) : - 1 ; }
Determines the index of the last occurrence of token in the String value . This lastIndexOf operation is null - safe and returns a - 1 if the String value is null or the token does not exist in the String value .