Package com.ibm.wala.util.intset
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static EmptyIntSetinstance
-
Constructor Summary
Constructors Constructor Description EmptyIntSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(int i)booleancontainsAny(IntSet set)voidforeach(IntSetAction action)Invoke an action on each element of the SetvoidforeachExcluding(IntSet X, IntSetAction action)Invoke an action on each element of the Set, excluding elements of Set XIntSetintersection(IntSet that)This implementation must not despoil the original value of "this"IntIteratorintIterator()booleanisEmpty()booleanisSubset(IntSet that)intmax()booleansameValue(IntSet that)intsize()IntSetunion(IntSet that)This implementation must not despoil the original value of "this"
-
-
-
Field Detail
-
instance
public static EmptyIntSet instance
-
-
Method Detail
-
contains
public boolean contains(int i)
-
containsAny
public boolean containsAny(IntSet set)
- Specified by:
containsAnyin interfaceIntSet- Returns:
- true iff this set contains integer i
-
intersection
public IntSet intersection(IntSet that)
Description copied from interface:IntSetThis implementation must not despoil the original value of "this"- Specified by:
intersectionin interfaceIntSet- Returns:
- a new IntSet which is the intersection of this and that
-
union
public IntSet union(IntSet that)
Description copied from interface:IntSetThis implementation must not despoil the original value of "this"
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
intIterator
public IntIterator intIterator()
- Specified by:
intIteratorin interfaceIntSet- Returns:
- a perhaps more efficient iterator
-
foreach
public void foreach(IntSetAction action)
Description copied from interface:IntSetInvoke an action on each element of the Set
-
foreachExcluding
public void foreachExcluding(IntSet X, IntSetAction action)
Description copied from interface:IntSetInvoke an action on each element of the Set, excluding elements of Set X- Specified by:
foreachExcludingin interfaceIntSet
-
sameValue
public boolean sameValue(IntSet that)
-
-