Exemplo n.º 1
0
 /**
  * Tests whether all keys of {@link Label}s are known to {@link LabelsManager}.
  *
  * @param keys list of keys to be tested
  * @return whether all keys are known to {@link LabelsManager}
  */
 protected boolean hasAllLabels(Iterable<Key> keys) {
   boolean hasAll = true;
   for (Key key : keys) {
     if (Managers.LABELS_MANAGER.getLabelByKey(key) == null) {
       hasAll = false;
     }
   }
   return hasAll;
 }