public abstract class AbstractLongSortedSet extends AbstractLongSet implements LongSortedSet
Modifier and Type | Method and Description |
---|---|
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.
|
equals, hashCode, rem, remove, remove
add, add, addAll, addAll, contains, contains, containsAll, containsAll, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toLongArray, toLongArray, toString
clear, size
comparator, firstLong, headSet, iterator, lastLong, subSet, tailSet
add, addAll, contains, containsAll, rem, removeAll, retainAll, toArray, toArray, toLongArray, toLongArray
public LongSortedSet headSet(Long to)
headSet
in interface LongSortedSet
headSet
in interface SortedSet<Long>
SortedSet.headSet(Object)
public LongSortedSet tailSet(Long from)
tailSet
in interface LongSortedSet
tailSet
in interface SortedSet<Long>
SortedSet.tailSet(Object)
public LongSortedSet subSet(Long from, Long to)
subSet
in interface LongSortedSet
subSet
in interface SortedSet<Long>
SortedSet.subSet(Object,Object)
public Long first()
public Long last()
@Deprecated public LongBidirectionalIterator longIterator()
longIterator
in interface LongCollection
longIterator
in interface LongSortedSet
longIterator
in class AbstractLongCollection
LongCollection.iterator()
public abstract LongBidirectionalIterator iterator()
LongCollection
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
.
iterator
in interface LongCollection
iterator
in interface LongIterable
iterator
in interface LongSet
iterator
in interface LongSortedSet
iterator
in interface Iterable<Long>
iterator
in interface Collection<Long>
iterator
in interface Set<Long>
iterator
in class AbstractLongSet