Class AbstractIntSet
java.lang.Object
org.apache.druid.extendedset.intset.AbstractIntSet
- All Implemented Interfaces:
Cloneable,Comparable<IntSet>,IntSet
- Direct Known Subclasses:
ConciseSet
This class provides a skeletal implementation of the
IntSet
interface to minimize the effort required to implement this interface.- Version:
- $Id: AbstractIntSet.java 156 2011-09-01 00:13:57Z cocciasik $
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.druid.extendedset.intset.IntSet
IntSet.IntIterator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract IntSetclone()See theclone()ofObjectintabstract IntSet.IntIteratorbooleaninthashCode()abstract booleanisEmpty()abstract IntSet.IntIteratoriterator()abstract intsize()toString()
-
Constructor Details
-
AbstractIntSet
public AbstractIntSet()
-
-
Method Details
-
clone
See theclone()ofObject -
iterator
- Specified by:
iteratorin interfaceIntSet- Returns:
- a
IntSet.IntIteratorinstance to iterate over the set
-
descendingIterator
- Specified by:
descendingIteratorin interfaceIntSet- Returns:
- a
IntSet.IntIteratorinstance to iterate over the set in descending order
-
size
public abstract int size() -
isEmpty
public abstract boolean isEmpty() -
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<IntSet>
-
equals
-
hashCode
public int hashCode()
-