public static boolean is ( Object instance , Object ... maybeValues ) { if ( instance != null && maybeValues != null ) { for ( Object mb : maybeValues ) if ( instance . equals ( mb ) ) return true ; } return false ; }
Whether the object is one of them .