public static String ensureRight ( final String value , final String suffix , boolean caseSensitive ) { validate ( value , NULL_STRING_PREDICATE , NULL_STRING_MSG_SUPPLIER ) ; return endsWith ( value , suffix , caseSensitive ) ? value : append ( value , suffix ) ; }
Ensures that the value ends with suffix . If it doesn t it s appended .