public interface IntSet
IntervalSet
Modifier and Type | Method and Description |
---|---|
void |
add(int el)
Add an element to the set
|
IntSet |
addAll(IntSet set)
Add all elements from incoming set to this set.
|
IntSet |
and(IntSet a)
Return the intersection of this set with the argument, creating
a new set.
|
IntSet |
complement(IntSet elements) |
boolean |
contains(int el) |
boolean |
equals(Object obj) |
int |
getSingleElement() |
boolean |
isNil() |
IntSet |
or(IntSet a) |
void |
remove(int el)
remove this element from this set
|
int |
size()
Return the size of this set (not the underlying implementation's
allocated memory size, for example).
|
IntSet |
subtract(IntSet a) |
List<Integer> |
toList() |
String |
toString() |
void add(int el)
IntSet addAll(IntSet set)
int size()
boolean isNil()
int getSingleElement()
boolean contains(int el)
void remove(int el)
Copyright © 2012. All Rights Reserved.