Class EmptyIntSet
java.lang.Object
com.ibm.wala.util.intset.EmptyIntSet
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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 Xintersection
(IntSet that) This implementation must not despoil the original value of "this"boolean
isEmpty()
boolean
int
max()
boolean
int
size()
This implementation must not despoil the original value of "this"
-
Field Details
-
instance
-
-
Constructor Details
-
EmptyIntSet
public EmptyIntSet()
-
-
Method Details
-
contains
-
containsAny
- Specified by:
containsAny
in interfaceIntSet
- Returns:
- true iff this set contains integer i
-
intersection
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
-
isEmpty
-
size
-
intIterator
- Specified by:
intIterator
in interfaceIntSet
- Returns:
- a perhaps more efficient iterator
-
foreach
Description copied from interface:IntSet
Invoke an action on each element of the Set -
foreachExcluding
Description copied from interface:IntSet
Invoke an action on each element of the Set, excluding elements of Set X- Specified by:
foreachExcluding
in interfaceIntSet
-
max
-
sameValue
-
isSubset
-