com.github.andrewoma.dexx.collection.internal.base
Class AbstractSortedSet<E>
java.lang.Object
com.github.andrewoma.dexx.collection.internal.base.AbstractTraversable<E>
com.github.andrewoma.dexx.collection.internal.base.AbstractIterable<E>
com.github.andrewoma.dexx.collection.internal.base.AbstractSet<E>
com.github.andrewoma.dexx.collection.internal.base.AbstractSortedSet<E>
- All Implemented Interfaces:
- Set<E>, SortedSet<E>, Traversable<E>, Iterable<E>
- Direct Known Subclasses:
- TreeSet
public abstract class AbstractSortedSet<E>
- extends AbstractSet<E>
- implements SortedSet<E>
|
Method Summary |
SortedSet<E> |
asSortedSet()
Returns an immutable view of this set as an instance of java.util.SortedSet. |
SortedSet<E> |
from(E value,
boolean inclusive)
Returns the bottom of the set starting from the key specified. |
SortedSet<E> |
to(E value,
boolean inclusive)
Returns the top of the set up until the key specified. |
| Methods inherited from class com.github.andrewoma.dexx.collection.internal.base.AbstractTraversable |
isEmpty, makeString, makeString, size, to, toArray, toArray, toIndexedList, toSet, toSortedSet, toString |
| Methods inherited from interface com.github.andrewoma.dexx.collection.Set |
asSet, contains |
| Methods inherited from interface com.github.andrewoma.dexx.collection.Iterable |
iterator |
| Methods inherited from interface com.github.andrewoma.dexx.collection.Traversable |
forEach, isEmpty, makeString, makeString, size, to, toArray, toArray, toIndexedList, toSet, toSortedSet |
AbstractSortedSet
public AbstractSortedSet()
from
@NotNull
public SortedSet<E> from(@NotNull
E value,
boolean inclusive)
- Description copied from interface:
SortedSet
- Returns the bottom of the set starting from the key specified.
- Specified by:
from in interface SortedSet<E>
inclusive - if true, the key will be included in the result, otherwise it will be excluded
to
@NotNull
public SortedSet<E> to(@NotNull
E value,
boolean inclusive)
- Description copied from interface:
SortedSet
- Returns the top of the set up until the key specified.
- Specified by:
to in interface SortedSet<E>
inclusive - if true, the key will be included in the result, otherwise it will be excluded
asSortedSet
@NotNull
public SortedSet<E> asSortedSet()
- Description copied from interface:
SortedSet
- Returns an immutable view of this set as an instance of
java.util.SortedSet.
- Specified by:
asSortedSet in interface SortedSet<E>
Copyright © 2014. All Rights Reserved.