Package com.ibm.wala.util.intset
Class EmptyIntSet
- java.lang.Object
-
- com.ibm.wala.util.intset.EmptyIntSet
-
- All Implemented Interfaces:
IntSet
,java.io.Serializable
public class EmptyIntSet extends java.lang.Object implements IntSet
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static EmptyIntSet
instance
-
Constructor Summary
Constructors Constructor Description EmptyIntSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(int i)
boolean
containsAny(IntSet set)
void
foreach(IntSetAction action)
Invoke an action on each element of the Setvoid
foreachExcluding(IntSet X, IntSetAction action)
Invoke an action on each element of the Set, excluding elements of Set XIntSet
intersection(IntSet that)
This implementation must not despoil the original value of "this"IntIterator
intIterator()
boolean
isEmpty()
boolean
isSubset(IntSet that)
int
max()
boolean
sameValue(IntSet that)
int
size()
IntSet
union(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:
containsAny
in interfaceIntSet
- 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 interfaceIntSet
- 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"
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
intIterator
public IntIterator intIterator()
- Specified by:
intIterator
in interfaceIntSet
- 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
-
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 interfaceIntSet
-
sameValue
public boolean sameValue(IntSet that)
-
-