Class TLinkedHashMap<K,V>
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.util.TAbstractMap<K,V>
org.teavm.classlib.java.util.THashMap<K,V>
org.teavm.classlib.java.util.TLinkedHashMap<K,V>
- All Implemented Interfaces:
TSerializable, TCloneable, TMap<K,V>, TSequencedMap<K, V>
-
Nested Class Summary
Nested classes/interfaces inherited from class TAbstractMap
TAbstractMap.SimpleEntry<K,V>, TAbstractMap.SimpleImmutableEntry<K, V> Nested classes/interfaces inherited from interface TMap
TMap.Entry<K1,V1> -
Constructor Summary
ConstructorsConstructorDescriptionTLinkedHashMap(int s) TLinkedHashMap(int s, float lf) TLinkedHashMap(int s, float lf, boolean order) TLinkedHashMap(TMap<? extends K, ? extends V> m) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsValue(Object value) TSet<TMap.Entry<K, V>> entrySet()voidforEach(BiConsumer<? super K, ? super V> action) getOrDefault(Object key, V defaultValue) keySet()static <K,V> TLinkedHashMap <K, V> newLinkedHashMap(int size) protected booleanremoveEldestEntry(TMap.Entry<K, V> eldest) voidreplaceAll(BiFunction<? super K, ? super V, ? extends V> function) reversed()values()Methods inherited from class THashMap
clone0, containsKey, isEmpty, newHashMap, putAll, sizeMethods inherited from class TAbstractMap
clone, equals, hashCode, toStringMethods inherited from class TObject
equals0, finalize, getClass0, notify0, notifyAll0, wait0, wait0Methods inherited from interface TMap
compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putAll, putIfAbsent, remove, replace, replace, sizeMethods inherited from interface TSequencedMap
firstEntry, lastEntry, pollFirstEntry, pollLastEntry
-
Constructor Details
-
TLinkedHashMap
public TLinkedHashMap() -
TLinkedHashMap
public TLinkedHashMap(int s) -
TLinkedHashMap
public TLinkedHashMap(int s, float lf) -
TLinkedHashMap
public TLinkedHashMap(int s, float lf, boolean order) -
TLinkedHashMap
-
-
Method Details
-
containsValue
- Specified by:
containsValuein interfaceTMap<K,V> - Overrides:
containsValuein classTHashMap<K,V>
-
getOrDefault
-
get
-
put
-
entrySet
-
keySet
-
sequencedKeySet
- Specified by:
sequencedKeySetin interfaceTSequencedMap<K,V>
-
values
-
sequencedValues
- Specified by:
sequencedValuesin interfaceTSequencedMap<K,V>
-
sequencedEntrySet
- Specified by:
sequencedEntrySetin interfaceTSequencedMap<K,V>
-
remove
-
forEach
-
removeEldestEntry
-
clear
-
replaceAll
- Specified by:
replaceAllin interfaceTMap<K,V> - Overrides:
replaceAllin classTHashMap<K,V>
-
putFirst
-
putLast
-
reversed
- Specified by:
reversedin interfaceTSequencedMap<K,V>
-
newLinkedHashMap
-