Class SetSecondary<T>

java.lang.Object
components.set.SetSecondary<T>
Type Parameters:
T - type of Set elements
All Implemented Interfaces:
Set<T>, SetKernel<T>, Standard<Set<T>>, Iterable<T>
Direct Known Subclasses:
Set1L, Set2, Set3, Set4

public abstract class SetSecondary<T> extends Object implements Set<T>
Layered implementations of secondary methods for Set.
  • Constructor Details

  • Method Details

    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • add

      public void add(Set<T> s)
      Description copied from interface: Set
      Adds to this all elements of s that are not already in this, also removing just those elements from s.
      Specified by:
      add in interface Set<T>
      Parameters:
      s - the Set whose elements are to be added to this
    • remove

      public Set<T> remove(Set<T> s)
      Description copied from interface: Set
      Removes from this all elements of s that are also in this, leaving s unchanged, and returns the elements actually removed.
      Specified by:
      remove in interface Set<T>
      Parameters:
      s - the Set whose elements are to be removed from this
      Returns:
      the Set whose elements actually were removed from this
    • isSubset

      public boolean isSubset(Set<T> s)
      Description copied from interface: Set
      Reports whether this is a subset of s.
      Specified by:
      isSubset in interface Set<T>
      Parameters:
      s - the second set
      Returns:
      whether this is a subset of s