| Constructor and Description |
|---|
CompoundMap()
Creates an empty CompoundMap backed by a HashMap.
|
CompoundMap(boolean sort,
boolean reverse)
Creates an empty CompoundMap.
|
CompoundMap(CompoundMap initial)
Creates a CompoundMap using the same element ordering rules as in the given CompoundMap.
The map is initialised using the values given in the CompoundMap. |
CompoundMap(HashMap<String,Tag<?>> initial)
Deprecated.
|
CompoundMap(Iterable<Tag<?>> initial,
boolean sort,
boolean reverse)
Creates an empty CompoundMap which is initialised using the given values
|
CompoundMap(List<Tag<?>> initial)
Creates a CompoundMap back by a LinkedHashMap, so insertion order is preserved.
The map is initialised using the values given in the List. |
CompoundMap(Map<String,Tag<?>> initial)
Creates a CompoundMap back by a LinkedHashMap, so insertion order is preserved.
The map is initialised using the values given in the Map. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Tag<?>>> |
entrySet() |
boolean |
equals(Object o) |
Tag<?> |
get(Object key) |
boolean |
isEmpty() |
Iterator<Tag<?>> |
iterator() |
Set<String> |
keySet() |
Tag<?> |
put(String key,
Tag<?> value) |
Tag<?> |
put(Tag<?> tag)
Puts a tag in this map, getting the string from the tag
|
void |
putAll(Map<? extends String,? extends Tag<?>> values) |
Tag |
remove(Object key) |
int |
size() |
Collection<Tag<?>> |
values() |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllforEach, spliteratorpublic CompoundMap()
public CompoundMap(List<Tag<?>> initial)
initial - the initial values for the CompoundMappublic CompoundMap(Map<String,Tag<?>> initial)
initial - the initial values for the CompoundMap@Deprecated public CompoundMap(HashMap<String,Tag<?>> initial)
initial - the initial values for the CompoundMappublic CompoundMap(CompoundMap initial)
initial - the initial values for the CompoundMappublic CompoundMap(boolean sort,
boolean reverse)
sort - elements are ordered in alphabetical orderingreverse - elements are ordered in reverse alphabetical ordering, when sort is truepublic CompoundMap(Iterable<Tag<?>> initial, boolean sort, boolean reverse)
initial - the initial valuessort - elements are ordered in alphabetical orderingreverse - elements are ordered in reverse alphabetical ordering, when sort is truepublic Tag<?> put(Tag<?> tag)
tag - to addpublic boolean containsKey(Object key)
containsKey in interface Map<String,Tag<?>>public boolean containsValue(Object value)
containsValue in interface Map<String,Tag<?>>Copyright © 2011–2014 Flow Powered. All rights reserved.