com.github.andrewoma.dexx.collection.internal.adapter
Class SortedSetAdapter<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by com.github.andrewoma.dexx.collection.internal.adapter.SetAdapater<E>
              extended by com.github.andrewoma.dexx.collection.internal.adapter.SortedSetAdapter<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, Set<E>, SortedSet<E>

public class SortedSetAdapter<E>
extends SetAdapater<E>
implements SortedSet<E>


Constructor Summary
SortedSetAdapter(SortedSet<E> set)
           
 
Method Summary
 Comparator<? super E> comparator()
           
 E first()
           
 SortedSet<E> headSet(E toElement)
           
 E last()
           
 SortedSet<E> subSet(E fromElement, E toElement)
           
 SortedSet<E> tailSet(E fromElement)
           
 
Methods inherited from class com.github.andrewoma.dexx.collection.internal.adapter.SetAdapater
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSet
equals, hashCode
 
Methods inherited from class java.util.AbstractCollection
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

SortedSetAdapter

public SortedSetAdapter(SortedSet<E> set)
Method Detail

comparator

@NotNull
public Comparator<? super E> comparator()
Specified by:
comparator in interface SortedSet<E>

subSet

@NotNull
public SortedSet<E> subSet(E fromElement,
                                   E toElement)
Specified by:
subSet in interface SortedSet<E>

headSet

@NotNull
public SortedSet<E> headSet(E toElement)
Specified by:
headSet in interface SortedSet<E>

tailSet

@NotNull
public SortedSet<E> tailSet(E fromElement)
Specified by:
tailSet in interface SortedSet<E>

first

public E first()
Specified by:
first in interface SortedSet<E>

last

public E last()
Specified by:
last in interface SortedSet<E>


Copyright © 2014. All Rights Reserved.