Package org.mockserver.model
Class KeysToMultiValues<T extends KeyToMultiValue,K extends KeysToMultiValues>
java.lang.Object
org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
org.mockserver.model.ObjectWithJsonToString
org.mockserver.model.KeysToMultiValues<T,K>
- Direct Known Subclasses:
Headers,Parameters
public abstract class KeysToMultiValues<T extends KeyToMultiValue,K extends KeysToMultiValues>
extends ObjectWithJsonToString
- Author:
- jamesdbloom
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedKeysToMultiValues(com.google.common.collect.Multimap<NottableString, NottableString> multimap) -
Method Summary
Modifier and TypeMethodDescriptionabstract Tbuild(NottableString name, Collection<NottableString> values) abstract Kclone()booleancontainsEntry(String name) booleancontainsEntry(String name, String value) booleancom.google.common.collect.Multimap<NottableString,NottableString> getValues(NottableString key) inthashCode()booleanisEmpty()protected abstract voidkeySet()booleanbooleanremove(NottableString name) replaceEntry(String name, String... values) replaceEntry(T entry) replaceEntryIfExists(T entry) withEntries(List<T> entries) withEntries(Map<String, List<String>> entries) final KwithEntries(T... entries) withEntry(NottableString name, List<NottableString> values) withEntry(NottableString name, NottableString... values) withKeyMatchStyle(KeyMatchStyle keyMatchStyle) Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toStringMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode
-
Constructor Details
-
KeysToMultiValues
protected KeysToMultiValues() -
KeysToMultiValues
protected KeysToMultiValues(com.google.common.collect.Multimap<NottableString, NottableString> multimap)
-
-
Method Details
-
build
-
isModified
protected abstract void isModified() -
getKeyMatchStyle
-
withKeyMatchStyle
-
withEntries
-
withEntries
-
withEntries
-
withEntry
-
withEntry
-
withEntry
-
withEntry
-
withEntry
-
remove
-
remove
-
replaceEntry
-
replaceEntryIfExists
-
replaceEntry
-
getEntries
-
keySet
-
getValues
-
getMultimap
-
getValues
-
containsEntry
-
containsEntry
-
isEmpty
public boolean isEmpty() -
clone
-
equals
- Overrides:
equalsin classObjectWithReflectiveEqualsHashCodeToString
-
hashCode
public int hashCode()- Overrides:
hashCodein classObjectWithReflectiveEqualsHashCodeToString
-