Package org.mockserver.model
Class KeysAndValues<T extends KeyAndValue,K extends KeysAndValues>
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.model.ObjectWithJsonToString
-
- org.mockserver.model.KeysAndValues<T,K>
-
- Direct Known Subclasses:
Cookies
public abstract class KeysAndValues<T extends KeyAndValue,K extends KeysAndValues> extends ObjectWithJsonToString
- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedKeysAndValues()protectedKeysAndValues(Map<NottableString,NottableString> map)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Tbuild(NottableString name, NottableString value)abstract Kclone()List<T>getEntries()Map<NottableString,NottableString>getMap()booleanisEmpty()booleanremove(String name)booleanremove(NottableString name)KreplaceEntryIfExists(T entry)KwithEntries(List<T> entries)KwithEntries(T... entries)KwithEntry(String name, String value)KwithEntry(NottableString name, NottableString value)KwithEntry(T entry)-
Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toString
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode
-
-
-
-
Constructor Detail
-
KeysAndValues
protected KeysAndValues()
-
KeysAndValues
protected KeysAndValues(Map<NottableString,NottableString> map)
-
-
Method Detail
-
build
public abstract T build(NottableString name, NottableString value)
-
withEntry
public K withEntry(NottableString name, NottableString value)
-
getMap
public Map<NottableString,NottableString> getMap()
-
isEmpty
public boolean isEmpty()
-
remove
public boolean remove(NottableString name)
-
remove
public boolean remove(String name)
-
-