public synchronized boolean hasCapabilities(List<String> capabilities){
  String[] arr=new String[capabilities.size()];
  capabilities.toArray(arr);
  return hasCapabilities(arr);
}

public synchronized boolean hasCapabilities ( List < String > capabilities ) { String [ ] arr = new String [ capabilities . size ( ) ] ; capabilities . toArray ( arr ) ; return hasCapabilities ( arr ) ; }
test to see if the capabilities array contains 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 .
