test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/observation/filter/UuidPredicateTest.java
test_class.identifier: UuidPredicateTest
test_case.body: @Test
      public void multipleUuidsMatch() {
          String uuid = UUIDUtils.generateUUID();
          UuidPredicate p = new UuidPredicate(
                  new String[] {UUIDUtils.generateUUID(), UUIDUtils.generateUUID(), uuid});
          NodeState tree = createNodeWithUuid(uuid);
          assertTrue(p.test(tree));
      }
test_case.class_method_signature: UuidPredicateTest.multipleUuidsMatch()
test_case.full_signature: @Test public void multipleUuidsMatch()
test_case.identifier: multipleUuidsMatch
test_case.invocations: generateUUID generateUUID generateUUID createNodeWithUuid assertTrue test
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void multipleUuidsMatch()
focal_class.declarator: uuids
focal_class.modifier: private final
focal_class.original_string: private final String[] uuids;
focal_class.type: String[]
focal_class.var_name: uuids
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/observation/filter/UuidPredicate.java
focal_class.identifier: UuidPredicate
focal_class.interfaces: implements Predicate<NodeState>, com.google.common.base.Predicate<NodeState>
focal_class.class_method_signature: UuidPredicate.UuidPredicate(@NotNull String[] uuids)
focal_class.full_signature: public  UuidPredicate(@NotNull String[] uuids)
focal_class.identifier: UuidPredicate
focal_class.modifiers: public
focal_class.parameters: (@NotNull String[] uuids)
focal_class.signature:  UuidPredicate(@NotNull String[] uuids)
focal_class.class_method_signature: UuidPredicate.test(NodeState node)
focal_class.full_signature: @Override public boolean test(NodeState node)
focal_class.identifier: test
focal_class.modifiers: @Override public
focal_class.parameters: (NodeState node)
focal_class.return: boolean
focal_class.signature: boolean test(NodeState node)
focal_class.class_method_signature: UuidPredicate.apply(NodeState node)
focal_class.full_signature: @Deprecated @Override public boolean apply(NodeState node)
focal_class.identifier: apply
focal_class.modifiers: @Deprecated @Override public
focal_class.parameters: (NodeState node)
focal_class.return: boolean
focal_class.signature: boolean apply(NodeState node)
focal_method.body: @Override
      public boolean test(NodeState node) {
          if (uuids.length == 0) {
              return false;
          }
  
          PropertyState uuidProperty = node.getProperty(JCR_UUID);
          if (uuidProperty == null) {
              return false;
          }
  
          String parentUuid = uuidProperty.getValue(Type.STRING);
          for (String uuid : uuids) {
              if (parentUuid.equals(uuid)) {
                  return true;
              }
          }
          return false;
      }
focal_method.class_method_signature: UuidPredicate.test(NodeState node)
focal_method.full_signature: @Override public boolean test(NodeState node)
focal_method.identifier: test
focal_method.invocations: getProperty getValue equals
focal_method.modifiers: @Override public
focal_method.parameters: (NodeState node)
focal_method.return: boolean
focal_method.signature: boolean test(NodeState node)