com.github.andrewoma.dexx.collection.internal.base
Class AbstractSortedSet<E>

java.lang.Object
  extended by com.github.andrewoma.dexx.collection.internal.base.AbstractTraversable<E>
      extended by com.github.andrewoma.dexx.collection.internal.base.AbstractIterable<E>
          extended by com.github.andrewoma.dexx.collection.internal.base.AbstractSet<E>
              extended by 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>


Constructor Summary
AbstractSortedSet()
           
 
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.AbstractSet
asSet, equals, hashCode
 
Methods inherited from class com.github.andrewoma.dexx.collection.internal.base.AbstractIterable
forEach
 
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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.github.andrewoma.dexx.collection.SortedSet
add, comparator, drop, first, last, range, remove, take
 
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
 

Constructor Detail

AbstractSortedSet

public AbstractSortedSet()
Method Detail

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.