public class SortedHashMap<K,V> extends AbstractMap<K,V>
Modifier and Type | Class and Description |
---|---|
static class |
SortedHashMap.OrderingType |
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
SortedHashMap() |
SortedHashMap(int initialCapacity) |
SortedHashMap(int initialCapacity,
float loadFactor,
SortedHashMap.OrderingType orderingType) |
SortedHashMap(int initialCapacity,
SortedHashMap.OrderingType orderingType) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
static SortedHashMap.OrderingType |
getOrderingTypeByName(String orderingType) |
Set<K> |
keySet() |
static void |
moveToTop(SortedHashMap linkedMap,
Object key) |
V |
put(K key,
V value) |
V |
remove(Object key) |
protected boolean |
removeEldestEntry(Map.Entry<K,V> eldest) |
static void |
touch(SortedHashMap linkedMap,
Object key,
SortedHashMap.OrderingType orderingType) |
Collection<V> |
values() |
clone, equals, hashCode, isEmpty, putAll, size, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public SortedHashMap()
public SortedHashMap(int initialCapacity)
public SortedHashMap(int initialCapacity, SortedHashMap.OrderingType orderingType)
public SortedHashMap(int initialCapacity, float loadFactor, SortedHashMap.OrderingType orderingType)
public static void touch(SortedHashMap linkedMap, Object key, SortedHashMap.OrderingType orderingType)
public static void moveToTop(SortedHashMap linkedMap, Object key)
public static SortedHashMap.OrderingType getOrderingTypeByName(String orderingType)
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
containsKey
in class AbstractMap<K,V>
public void clear()
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
containsValue
in class AbstractMap<K,V>
public Collection<V> values()
Copyright © 2014 Hazelcast, Inc.. All rights reserved.