public abstract class KeysAndValues<T extends KeyAndValue,K extends KeysAndValues> extends ObjectWithJsonToString
Modifier | Constructor and Description |
---|---|
protected |
KeysAndValues() |
protected |
KeysAndValues(Map<NottableString,NottableString> map) |
Modifier and Type | Method and Description |
---|---|
abstract T |
build(NottableString name,
NottableString value) |
abstract K |
clone() |
List<T> |
getEntries() |
Map<NottableString,NottableString> |
getMap() |
boolean |
isEmpty() |
boolean |
remove(NottableString name) |
boolean |
remove(String name) |
K |
replaceEntryIfExists(T entry) |
K |
withEntries(List<T> entries) |
K |
withEntries(T... entries) |
K |
withEntry(NottableString name,
NottableString value) |
K |
withEntry(String name,
String value) |
K |
withEntry(T entry) |
toString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode
protected KeysAndValues()
protected KeysAndValues(Map<NottableString,NottableString> map)
public abstract T build(NottableString name, NottableString value)
public K withEntry(NottableString name, NottableString value)
public Map<NottableString,NottableString> getMap()
public boolean isEmpty()
public boolean remove(NottableString name)
public boolean remove(String name)
Copyright © 2022. All rights reserved.