com.github.andrewoma.dexx.collection.internal.adapter
Class SortedMapAdapter<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by com.github.andrewoma.dexx.collection.internal.adapter.MapAdapter<K,V>
          extended by com.github.andrewoma.dexx.collection.internal.adapter.SortedMapAdapter<K,V>
All Implemented Interfaces:
Map<K,V>, SortedMap<K,V>

public class SortedMapAdapter<K,V>
extends MapAdapter<K,V>
implements SortedMap<K,V>


Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
SortedMapAdapter(SortedMap<K,V> map)
           
 
Method Summary
 Comparator<? super K> comparator()
           
 K firstKey()
           
 SortedMap<K,V> headMap(K toKey)
           
 K lastKey()
           
 SortedMap<K,V> subMap(K fromKey, K toKey)
           
 SortedMap<K,V> tailMap(K fromKey)
           
 
Methods inherited from class com.github.andrewoma.dexx.collection.internal.adapter.MapAdapter
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.SortedMap
entrySet, keySet, values
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size
 

Constructor Detail

SortedMapAdapter

public SortedMapAdapter(SortedMap<K,V> map)
Method Detail

comparator

public Comparator<? super K> comparator()
Specified by:
comparator in interface SortedMap<K,V>

subMap

@NotNull
public SortedMap<K,V> subMap(@NotNull
                                     K fromKey,
                                     @NotNull
                                     K toKey)
Specified by:
subMap in interface SortedMap<K,V>

headMap

@NotNull
public SortedMap<K,V> headMap(@NotNull
                                      K toKey)
Specified by:
headMap in interface SortedMap<K,V>

tailMap

@NotNull
public SortedMap<K,V> tailMap(@NotNull
                                      K fromKey)
Specified by:
tailMap in interface SortedMap<K,V>

firstKey

public K firstKey()
Specified by:
firstKey in interface SortedMap<K,V>

lastKey

public K lastKey()
Specified by:
lastKey in interface SortedMap<K,V>


Copyright © 2014. All Rights Reserved.