Interface IntSet
- All Superinterfaces:
Cloneable,Comparable<IntSet>
- All Known Implementing Classes:
AbstractIntSet,ConciseSet
- Version:
- $Id: IntSet.java 135 2011-01-04 15:54:48Z cocciasik $
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAnIterator-like interface that allows to "skip" some elements of the set -
Method Summary
Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
clone
IntSet clone()See theclone()ofObject- Returns:
- cloned object
-
iterator
IntSet.IntIterator iterator()- Returns:
- a
IntSet.IntIteratorinstance to iterate over the set
-
descendingIterator
IntSet.IntIterator descendingIterator()- Returns:
- a
IntSet.IntIteratorinstance to iterate over the set in descending order
-
size
int size()- Returns:
- the number of elements in this set (its cardinality)
-
isEmpty
boolean isEmpty()- Returns:
- true if this set contains no elements
-