| org.antlr.misc.IntSet
All known Subclasses: org.antlr.misc.BitSet, org.antlr.misc.IntervalSet,
IntSet | public interface IntSet (Code) | | A generic set of ints that has an efficient implementation, BitSet,
which is a compressed bitset and is useful for ints that
are small, for example less than 500 or so, and w/o many ranges. For
ranges with large values like unicode char sets, this is not very efficient.
Consider using IntervalSet. Not all methods in IntervalSet are implemented.
See Also: org.antlr.misc.BitSet See Also: org.antlr.misc.IntervalSet |
add | void add(int el)(Code) | | Add an element to the set
|
addAll | void addAll(IntSet set)(Code) | | Add all elements from incoming set to this set. Can limit
to set of its own type.
|
and | IntSet and(IntSet a)(Code) | | Return the intersection of this set with the argument, creating
a new set.
|
getSingleElement | int getSingleElement()(Code) | | |
member | boolean member(int el)(Code) | | |
remove | void remove(int el)(Code) | | remove this element from this set
|
size | int size()(Code) | | Return the size of this set (not the underlying implementation's
allocated memory size, for example).
|
|
|