public boolean hasAnyCapability(String... capabilities){
  for (  String capability : capabilities) {
    if (hasCapability(capability))     return true;
  }
  return false;
}

public boolean hasAnyCapability ( String ... capabilities ) { for ( String capability : capabilities ) { if ( hasCapability ( capability ) ) return true ; } return false ; }
test to see if the capabilities array contains at least one capability in a given set of capabilities . see the individual capability classes for acceptable capability values . see hascapability : for a description of the wildcard feature provided by this method .
