Class Sets


  • public class Sets
    extends java.lang.Object
    Some basic set operations
    • Constructor Summary

      Constructors 
      Constructor Description
      Sets()  
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static <T> java.util.Set<T> difference​(java.util.Set<T> setA, java.util.Set<T> setB)
      Deprecated.
      static <T> java.util.Set<T> intersection​(java.util.Set<T> setA, java.util.Set<T> setB)
      Deprecated.
      static <T> boolean isSubset​(java.util.Set<T> setA, java.util.Set<T> setB)  
      static <T> boolean isSuperset​(java.util.Set<T> setA, java.util.Set<T> setB)  
      static <T> java.util.Set<T> symDifference​(java.util.Set<T> setA, java.util.Set<T> setB)
      Deprecated.
      static <T> java.util.Set<T> union​(java.util.Set<T> setA, java.util.Set<T> setB)
      Deprecated.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Sets

        public Sets()
    • Method Detail

      • union

        @Deprecated
        public static <T> java.util.Set<T> union​(java.util.Set<T> setA,
                                                 java.util.Set<T> setB)
        Deprecated.
        Use Google Guava Sets instead
        Type Parameters:
        T - the type in the set
        Parameters:
        setA - a set
        setB - another set
        Returns:
        a set representing the union
      • intersection

        @Deprecated
        public static <T> java.util.Set<T> intersection​(java.util.Set<T> setA,
                                                        java.util.Set<T> setB)
        Deprecated.
        Use Google Guava Sets instead
        Type Parameters:
        T - the type in the set
        Parameters:
        setA - a set
        setB - another set
        Returns:
        a set representing the intersection
      • difference

        @Deprecated
        public static <T> java.util.Set<T> difference​(java.util.Set<T> setA,
                                                      java.util.Set<T> setB)
        Deprecated.
        Use Google Guava Sets instead
        Type Parameters:
        T - the type in the set
        Parameters:
        setA - a set
        setB - another set
        Returns:
        a set representing the set difference
      • symDifference

        @Deprecated
        public static <T> java.util.Set<T> symDifference​(java.util.Set<T> setA,
                                                         java.util.Set<T> setB)
        Deprecated.
        Use Google Guava Sets instead
        Type Parameters:
        T - the type in the set
        Parameters:
        setA - a set
        setB - another set
        Returns:
        a set representing the symmetric difference
      • isSubset

        public static <T> boolean isSubset​(java.util.Set<T> setA,
                                           java.util.Set<T> setB)
      • isSuperset

        public static <T> boolean isSuperset​(java.util.Set<T> setA,
                                             java.util.Set<T> setB)