public static < A , B > boolean equalsAny ( A object , B ... objects ) { for ( B o : objects ) { if ( bothNullOrEqual ( o , object ) ) { return true ; } } return false ; }
Checks if the object equals one of the other objects given