@Test public void testEquals() { assertThat(Comparator.equals(TAGS, null)).isFalse(); assertThat(Comparator.equals(null, TAGS)).isFalse(); }
public static boolean equals(final Collection<?> collection1, final Collection<?> collection2) { boolean equals = false; if (collection1 != null && collection2 != null) { equals = collection1.size() == collection2.size() && collection1.containsAll(collection2) && collection2.containsAll(collection1); } else if (collection1 == null && collection2 == null) { equals = true; } return equals; }
Comparator { public static boolean equals(final Collection<?> collection1, final Collection<?> collection2) { boolean equals = false; if (collection1 != null && collection2 != null) { equals = collection1.size() == collection2.size() && collection1.containsAll(collection2) && collection2.containsAll(collection1); } else if (collection1 == null && collection2 == null) { equals = true; } return equals; } }
Comparator { public static boolean equals(final Collection<?> collection1, final Collection<?> collection2) { boolean equals = false; if (collection1 != null && collection2 != null) { equals = collection1.size() == collection2.size() && collection1.containsAll(collection2) && collection2.containsAll(collection1); } else if (collection1 == null && collection2 == null) { equals = true; } return equals; }  }
Comparator { public static boolean equals(final Collection<?> collection1, final Collection<?> collection2) { boolean equals = false; if (collection1 != null && collection2 != null) { equals = collection1.size() == collection2.size() && collection1.containsAll(collection2) && collection2.containsAll(collection1); } else if (collection1 == null && collection2 == null) { equals = true; } return equals; }  static boolean isStackSetConfigEquals(
            final ResourceModel previousModel, final ResourceModel desiredModel); static boolean equals(final Collection<?> collection1, final Collection<?> collection2); static boolean isSelfManaged(final ResourceModel model); }
Comparator { public static boolean equals(final Collection<?> collection1, final Collection<?> collection2) { boolean equals = false; if (collection1 != null && collection2 != null) { equals = collection1.size() == collection2.size() && collection1.containsAll(collection2) && collection2.containsAll(collection1); } else if (collection1 == null && collection2 == null) { equals = true; } return equals; }  static boolean isStackSetConfigEquals(
            final ResourceModel previousModel, final ResourceModel desiredModel); static boolean equals(final Collection<?> collection1, final Collection<?> collection2); static boolean isSelfManaged(final ResourceModel model);  }