Class EmptyIntSet

java.lang.Object
com.ibm.wala.util.intset.EmptyIntSet
All Implemented Interfaces:
IntSet, Serializable

public class EmptyIntSet extends Object implements IntSet
See Also:
  • Field Details

  • Constructor Details

    • EmptyIntSet

      public EmptyIntSet()
  • Method Details

    • contains

      public boolean contains(int i)
      Specified by:
      contains in interface IntSet
      Returns:
      true iff this set contains integer i
    • containsAny

      public boolean containsAny(IntSet set)
      Specified by:
      containsAny in interface IntSet
      Returns:
      true iff this set contains integer i
    • intersection

      public IntSet intersection(IntSet that)
      Description copied from interface: IntSet
      This implementation must not despoil the original value of "this"
      Specified by:
      intersection in interface IntSet
      Returns:
      a new IntSet which is the intersection of this and that
    • union

      public IntSet union(IntSet that)
      Description copied from interface: IntSet
      This implementation must not despoil the original value of "this"
      Specified by:
      union in interface IntSet
      Returns:
      a new IntSet containing all elements of this and that
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface IntSet
      Returns:
      true iff this set is empty
    • size

      public int size()
      Specified by:
      size in interface IntSet
      Returns:
      the number of elements in this set
    • intIterator

      public IntIterator intIterator()
      Specified by:
      intIterator in interface IntSet
      Returns:
      a perhaps more efficient iterator
    • foreach

      public void foreach(IntSetAction action)
      Description copied from interface: IntSet
      Invoke an action on each element of the Set
      Specified by:
      foreach in interface IntSet
    • foreachExcluding

      public void foreachExcluding(IntSet X, IntSetAction action)
      Description copied from interface: IntSet
      Invoke an action on each element of the Set, excluding elements of Set X
      Specified by:
      foreachExcluding in interface IntSet
    • max

      public int max()
      Specified by:
      max in interface IntSet
      Returns:
      maximum integer in this set.
    • sameValue

      public boolean sameValue(IntSet that)
      Specified by:
      sameValue in interface IntSet
      Returns:
      true iff this has the same value as that.
    • isSubset

      public boolean isSubset(IntSet that)
      Specified by:
      isSubset in interface IntSet
      Returns:
      true iff this is a subset of that.