test_class.file: modules/flowable-dmn-engine/src/test/java/org/flowable/dmn/engine/impl/el/util/CollectionUtilTest.java
test_class.identifier: CollectionUtilTest
test_case.body: @Test
      public void anyOf() {
          assertThat(CollectionUtil.anyOf(Arrays.asList("group1", "group2"), Arrays.asList("group3", "group4"))).isFalse();
          assertThat(CollectionUtil.anyOf(Arrays.asList("group1", "group2"), Arrays.asList("group1", "group2"))).isTrue();
          assertThat(CollectionUtil.anyOf(Arrays.asList("group1", "group2"), Arrays.asList("group2", "group3"))).isTrue();
  
          assertThat(CollectionUtil.anyOf(Arrays.asList("group1", "group2"), "group3")).isFalse();
          assertThat(CollectionUtil.anyOf(Arrays.asList("group1", "group2"), "group2")).isTrue();
  
          assertThat(CollectionUtil.anyOf("group1, group2", "group3, group4")).isFalse();
          assertThat(CollectionUtil.anyOf("group1, group2", "group1, group2")).isTrue();
          assertThat(CollectionUtil.anyOf("group1, group2", "group2, group3")).isTrue();
  
          ObjectMapper mapper = new ObjectMapper();
          assertThat(CollectionUtil.anyOf(mapper.valueToTree(Arrays.asList("group1", "group2")), mapper.valueToTree(Arrays.asList("group3", "group4"))))
                  .isFalse();
          assertThat(CollectionUtil.anyOf(mapper.valueToTree(Arrays.asList("group1", "group2")), mapper.valueToTree(Arrays.asList("group1", "group2")))).isTrue();
          assertThat(CollectionUtil.anyOf(mapper.valueToTree(Arrays.asList("group1", "group2")), mapper.valueToTree(Arrays.asList("group2", "group3")))).isTrue();
      }
test_case.class_method_signature: CollectionUtilTest.anyOf()
test_case.full_signature: @Test public void anyOf()
test_case.identifier: anyOf
test_case.invocations: isFalse assertThat anyOf asList asList isTrue assertThat anyOf asList asList isTrue assertThat anyOf asList asList isFalse assertThat anyOf asList isTrue assertThat anyOf asList isFalse assertThat anyOf isTrue assertThat anyOf isTrue assertThat anyOf isFalse assertThat anyOf valueToTree asList valueToTree asList isTrue assertThat anyOf valueToTree asList valueToTree asList isTrue assertThat anyOf valueToTree asList valueToTree asList
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void anyOf()
focal_class.file: modules/flowable-dmn-engine/src/main/java/org/flowable/dmn/engine/impl/el/util/CollectionUtil.java
focal_class.identifier: CollectionUtil
focal_class.class_method_signature: CollectionUtil.allOf(Object collection, Object value)
focal_class.full_signature: public static boolean allOf(Object collection, Object value)
focal_class.identifier: allOf
focal_class.modifiers: public static
focal_class.parameters: (Object collection, Object value)
focal_class.return: boolean
focal_class.signature: boolean allOf(Object collection, Object value)
focal_class.class_method_signature: CollectionUtil.contains(Object collection, Object value)
focal_class.full_signature: @Deprecated public static boolean contains(Object collection, Object value)
focal_class.identifier: contains
focal_class.modifiers: @Deprecated public static
focal_class.parameters: (Object collection, Object value)
focal_class.return: boolean
focal_class.signature: boolean contains(Object collection, Object value)
focal_class.class_method_signature: CollectionUtil.noneOf(Object collection, Object value)
focal_class.full_signature: public static boolean noneOf(Object collection, Object value)
focal_class.identifier: noneOf
focal_class.modifiers: public static
focal_class.parameters: (Object collection, Object value)
focal_class.return: boolean
focal_class.signature: boolean noneOf(Object collection, Object value)
focal_class.class_method_signature: CollectionUtil.notContains(Object collection, Object value)
focal_class.full_signature: @Deprecated public static boolean notContains(Object collection, Object value)
focal_class.identifier: notContains
focal_class.modifiers: @Deprecated public static
focal_class.parameters: (Object collection, Object value)
focal_class.return: boolean
focal_class.signature: boolean notContains(Object collection, Object value)
focal_class.class_method_signature: CollectionUtil.anyOf(Object collection, Object value)
focal_class.full_signature: public static boolean anyOf(Object collection, Object value)
focal_class.identifier: anyOf
focal_class.modifiers: public static
focal_class.parameters: (Object collection, Object value)
focal_class.return: boolean
focal_class.signature: boolean anyOf(Object collection, Object value)
focal_class.class_method_signature: CollectionUtil.containsAny(Object collection, Object value)
focal_class.full_signature: @Deprecated public static boolean containsAny(Object collection, Object value)
focal_class.identifier: containsAny
focal_class.modifiers: @Deprecated public static
focal_class.parameters: (Object collection, Object value)
focal_class.return: boolean
focal_class.signature: boolean containsAny(Object collection, Object value)
focal_class.class_method_signature: CollectionUtil.notAllOf(Object collection, Object value)
focal_class.full_signature: public static boolean notAllOf(Object collection, Object value)
focal_class.identifier: notAllOf
focal_class.modifiers: public static
focal_class.parameters: (Object collection, Object value)
focal_class.return: boolean
focal_class.signature: boolean notAllOf(Object collection, Object value)
focal_class.class_method_signature: CollectionUtil.notContainsAny(Object collection, Object value)
focal_class.full_signature: @Deprecated public static boolean notContainsAny(Object collection, Object value)
focal_class.identifier: notContainsAny
focal_class.modifiers: @Deprecated public static
focal_class.parameters: (Object collection, Object value)
focal_class.return: boolean
focal_class.signature: boolean notContainsAny(Object collection, Object value)
focal_class.class_method_signature: CollectionUtil.getTargetCollection(Object collection, Object value)
focal_class.full_signature: protected static Collection getTargetCollection(Object collection, Object value)
focal_class.identifier: getTargetCollection
focal_class.modifiers: protected static
focal_class.parameters: (Object collection, Object value)
focal_class.return: Collection
focal_class.signature: Collection getTargetCollection(Object collection, Object value)
focal_method.body: public static boolean anyOf(Object collection, Object value) {
  
          if (collection == null) {
              throw new IllegalArgumentException("collection cannot be null");
          }
  
          if (value == null) {
              throw new IllegalArgumentException("value cannot be null");
          }
  
          // collection to check against
          Collection targetCollection = getTargetCollection(collection, value);
  
          // elements to check
          if (DMNParseUtil.isParseableCollection(value)) {
              Collection valueCollection = DMNParseUtil.parseCollection(value, targetCollection);
              return CollectionUtils.containsAny(targetCollection, valueCollection);
          } else if (DMNParseUtil.isJavaCollection(value)) {
              return CollectionUtils.containsAny(targetCollection, (Collection) value);
          } else if (DMNParseUtil.isArrayNode(value)) {
              Collection valueCollection = DMNParseUtil.getCollectionFromArrayNode((ArrayNode) value);
              return CollectionUtils.containsAny(targetCollection, valueCollection);
          } else {
              Object formattedValue = DMNParseUtil.getFormattedValue(value, targetCollection);
              return targetCollection.contains(formattedValue);
          }
      }
focal_method.class_method_signature: CollectionUtil.anyOf(Object collection, Object value)
focal_method.full_signature: public static boolean anyOf(Object collection, Object value)
focal_method.identifier: anyOf
focal_method.invocations: getTargetCollection isParseableCollection parseCollection containsAny isJavaCollection containsAny isArrayNode getCollectionFromArrayNode containsAny getFormattedValue contains
focal_method.modifiers: public static
focal_method.parameters: (Object collection, Object value)
focal_method.return: boolean
focal_method.signature: boolean anyOf(Object collection, Object value)