it.unimi.dsi.fastutil.longs
Class AbstractLongSortedSet

java.lang.Object
  extended by java.util.AbstractCollection<Long>
      extended by it.unimi.dsi.fastutil.longs.AbstractLongCollection
          extended by it.unimi.dsi.fastutil.longs.AbstractLongSet
              extended by it.unimi.dsi.fastutil.longs.AbstractLongSortedSet
All Implemented Interfaces:
LongCollection, LongIterable, LongSet, LongSortedSet, Cloneable, Iterable<Long>, Collection<Long>, Set<Long>, SortedSet<Long>
Direct Known Subclasses:
AbstractLong2BooleanSortedMap.KeySet, AbstractLong2ByteSortedMap.KeySet, AbstractLong2CharSortedMap.KeySet, AbstractLong2DoubleSortedMap.KeySet, AbstractLong2FloatSortedMap.KeySet, AbstractLong2IntSortedMap.KeySet, AbstractLong2LongSortedMap.KeySet, AbstractLong2ObjectSortedMap.KeySet, AbstractLong2ReferenceSortedMap.KeySet, AbstractLong2ShortSortedMap.KeySet, LongAVLTreeSet, LongLinkedOpenCustomHashSet, LongLinkedOpenHashSet, LongRBTreeSet

public abstract class AbstractLongSortedSet
extends AbstractLongSet
implements LongSortedSet

An abstract class providing basic methods for sorted sets implementing a type-specific interface.


Constructor Summary
protected AbstractLongSortedSet()
           
 
Method Summary
 Long first()
          Delegates to the corresponding type-specific method.
 LongSortedSet headSet(Long to)
          Delegates to the corresponding type-specific method.
abstract  LongBidirectionalIterator iterator()
          Returns a type-specific iterator on the elements of this collection.
 Long last()
          Delegates to the corresponding type-specific method.
 LongBidirectionalIterator longIterator()
          Deprecated. 
 LongSortedSet subSet(Long from, Long to)
          Delegates to the corresponding type-specific method.
 LongSortedSet tailSet(Long from)
          Delegates to the corresponding type-specific method.
 
Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongSet
equals, hashCode, rem, remove, remove
 
Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongCollection
add, add, addAll, addAll, contains, contains, containsAll, containsAll, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toLongArray, toLongArray, toString
 
Methods inherited from class java.util.AbstractCollection
clear, size
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongSortedSet
comparator, firstLong, headSet, iterator, lastLong, subSet, tailSet
 
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongSet
remove
 
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongCollection
add, addAll, contains, containsAll, rem, removeAll, retainAll, toArray, toArray, toLongArray, toLongArray
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

AbstractLongSortedSet

protected AbstractLongSortedSet()
Method Detail

headSet

public LongSortedSet headSet(Long to)
Delegates to the corresponding type-specific method.

Specified by:
headSet in interface LongSortedSet
Specified by:
headSet in interface SortedSet<Long>
See Also:
SortedSet.headSet(Object)

tailSet

public LongSortedSet tailSet(Long from)
Delegates to the corresponding type-specific method.

Specified by:
tailSet in interface LongSortedSet
Specified by:
tailSet in interface SortedSet<Long>
See Also:
SortedSet.tailSet(Object)

subSet

public LongSortedSet subSet(Long from,
                            Long to)
Delegates to the corresponding type-specific method.

Specified by:
subSet in interface LongSortedSet
Specified by:
subSet in interface SortedSet<Long>
See Also:
SortedSet.subSet(Object,Object)

first

public Long first()
Delegates to the corresponding type-specific method.

Specified by:
first in interface SortedSet<Long>

last

public Long last()
Delegates to the corresponding type-specific method.

Specified by:
last in interface SortedSet<Long>

longIterator

@Deprecated
public LongBidirectionalIterator longIterator()
Deprecated. 

Delegates to the new covariantly stronger generic method.

Specified by:
longIterator in interface LongCollection
Specified by:
longIterator in interface LongSortedSet
Overrides:
longIterator in class AbstractLongCollection
See Also:
LongCollection.iterator()

iterator

public abstract LongBidirectionalIterator iterator()
Description copied from interface: LongCollection
Returns a type-specific iterator on the elements of this collection.

Note that this specification strengthens the one given in Iterable.iterator(), which was already strengthened in the corresponding type-specific class, but was weakened by the fact that this interface extends Collection.

Specified by:
iterator in interface LongCollection
Specified by:
iterator in interface LongIterable
Specified by:
iterator in interface LongSet
Specified by:
iterator in interface LongSortedSet
Specified by:
iterator in interface Iterable<Long>
Specified by:
iterator in interface Collection<Long>
Specified by:
iterator in interface Set<Long>
Specified by:
iterator in class AbstractLongSet
Returns:
a type-specific iterator on the elements of this collection.


Copyright © 2011. All Rights Reserved.