Class SetUtils

java.lang.Object
com.mchange.v1.util.SetUtils

public final class SetUtils extends Object
  • Constructor Details

    • SetUtils

      public SetUtils()
  • Method Details

    • oneElementUnmodifiableSet

      public static Set oneElementUnmodifiableSet(Object elem)
    • setFromArray

      public static Set setFromArray(Object[] array)
    • equivalentDisregardingSort

      public static boolean equivalentDisregardingSort(Set a, Set b)
    • hashContentsDisregardingSort

      public static int hashContentsDisregardingSort(Set s)
      finds a hash value which takes into account the value of all elements, such that two sets for which equivalentDisregardingSort(a, b) returns true will hashContentsDisregardingSort() to the same value