public static boolean allEquals ( final String value , final String ... strings ) { if ( strings != null ) { for ( final String s : strings ) { if ( s == null && value != null || s != null && ! s . equals ( value ) ) { return false ; } } } else { return value == null ; } return true ; }
Return true if all strings are the same .