Class Sets

java.lang.Object
pascal.taie.util.collection.Sets

public final class Sets extends Object
Static utility methods for Set.
  • Method Details

    • newSet

      public static <E> Set<E> newSet()
    • newSet

      public static <E> Set<E> newSet(Collection<? extends E> set)
    • newLinkedSet

      public static <E> Set<E> newLinkedSet()
    • newSet

      public static <E> Set<E> newSet(int initialCapacity)
    • newOrderedSet

      public static <E extends Comparable<E>> TreeSet<E> newOrderedSet()
    • newOrderedSet

      public static <E> TreeSet<E> newOrderedSet(Comparator<? super E> comparator)
    • newSmallSet

      public static <E> Set<E> newSmallSet()
    • newHybridSet

      public static <E> Set<E> newHybridSet()
    • newHybridSet

      public static <E> Set<E> newHybridSet(Collection<E> c)
    • newHybridOrderedSet

      public static <E> Set<E> newHybridOrderedSet()
    • newConcurrentSet

      public static <E> Set<E> newConcurrentSet()
    • haveOverlap

      public static <E> boolean haveOverlap(Set<E> s1, Set<E> s2)
      Returns:
      true if two sets have at least one overlapped element.