Interface IntSet
-
- All Superinterfaces:
Cloneable,Comparable<IntSet>
- All Known Implementing Classes:
AbstractIntSet,ConciseSet
public interface IntSet extends Cloneable, Comparable<IntSet>
- Version:
- $Id: IntSet.java 135 2011-01-04 15:54:48Z cocciasik $
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIntSet.IntIteratorAnIterator-like interface that allows to "skip" some elements of the set
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IntSetclone()See theclone()ofObjectIntSet.IntIteratordescendingIterator()booleanisEmpty()IntSet.IntIteratoriterator()intsize()-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
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
-
-