Package cz.diribet.aqdef.model
Class AqdefObjectModel.Entries<E extends AqdefObjectModel.AbstractEntry<I>,I>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<KKey,E>
-
- cz.diribet.aqdef.model.AqdefObjectModel.Entries<E,I>
-
- All Implemented Interfaces:
IHasKKeyValues,Serializable,Cloneable,Map<KKey,E>
- Direct Known Subclasses:
AqdefObjectModel.CharacteristicEntries,AqdefObjectModel.GroupEntries,AqdefObjectModel.PartEntries,AqdefObjectModel.ValueEntries
- Enclosing class:
- AqdefObjectModel
public abstract static class AqdefObjectModel.Entries<E extends AqdefObjectModel.AbstractEntry<I>,I> extends HashMap<KKey,E> implements IHasKKeyValues
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description Entries()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidforEachEntry(Consumer<E> action)Eget(KKey key)<T> TgetValue(KKey key)<T> TgetValue(KKey key, T defaultValue)<T> TgetValue(String key)<T> TgetValue(String key, T defaultValue)protected abstract EnewEntry(KKey key, I index, Object value)Eput(KKey key, E entry)voidput(KKey key, Object value)voidput(E entry)voidput(String key, Object value)voidputAll(Collection<? extends E> entries, boolean overwriteExisting)voidputAll(Map<? extends KKey,? extends E> entries, boolean overwriteExisting)Eremove(KKey key)Eremove(String key)abstract AqdefObjectModel.Entries<E,I>withIndex(I index)Creates a copy of this entries with a given index.-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
put
public void put(E entry)
-
putAll
public void putAll(Collection<? extends E> entries, boolean overwriteExisting)
-
getValue
public <T> T getValue(String key)
-
getValue
public <T> T getValue(String key, T defaultValue)
-
getValue
public <T> T getValue(KKey key, T defaultValue)
-
getValue
public <T> T getValue(KKey key)
- Specified by:
getValuein interfaceIHasKKeyValues
-
withIndex
public abstract AqdefObjectModel.Entries<E,I> withIndex(I index)
Creates a copy of this entries with a given index.- Parameters:
index-- Returns:
-
-