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 interface
IntSet.IntIterator
AnIterator
-like interface that allows to "skip" some elements of the set
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IntSet
clone()
See theclone()
ofObject
IntSet.IntIterator
descendingIterator()
boolean
isEmpty()
IntSet.IntIterator
iterator()
int
size()
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
iterator
IntSet.IntIterator iterator()
- Returns:
- a
IntSet.IntIterator
instance to iterate over the set
-
descendingIterator
IntSet.IntIterator descendingIterator()
- Returns:
- a
IntSet.IntIterator
instance 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
-
-