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
Constructors Constructor Description KeysToMultiValues()
-
Method Summary
-
Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toString
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode, key
-
-
-
-
Method Detail
-
build
public abstract T build(NottableString name, Collection<NottableString> values)
-
withEntries
@SafeVarargs public final K withEntries(T... entries)
-
withEntry
public K withEntry(NottableString name, List<NottableString> values)
-
withEntry
public K withEntry(NottableString name, NottableString... values)
-
remove
public K remove(NottableString name)
-
keySet
public Set<NottableString> keySet()
-
getValues
public List<NottableString> getValues(NottableString key)
-
getMultimap
public com.google.common.collect.Multimap<NottableString,NottableString> getMultimap()
-
containsEntry
public boolean containsEntry(String name)
-
toCaseInsensitiveRegexMultiMap
public CaseInsensitiveRegexMultiMap toCaseInsensitiveRegexMultiMap(MockServerLogger mockServerLogger, boolean controlPlaneMatcher)
-
isEmpty
public boolean isEmpty()
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classObjectWithReflectiveEqualsHashCodeToString
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObjectWithReflectiveEqualsHashCodeToString
-
-