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
-
toCaseInsensitiveRegexMultiMap
public CaseInsensitiveRegexMultiMap toCaseInsensitiveRegexMultiMap(List<T> entries)
-
build
public abstract T build(NottableString name, List<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)
-
containsEntry
public boolean containsEntry(String name)
-
containsEntry
public boolean containsEntry(NottableString name, NottableString value)
-
toCaseInsensitiveRegexMultiMap
public CaseInsensitiveRegexMultiMap toCaseInsensitiveRegexMultiMap()
-
isEmpty
public boolean isEmpty()
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classObjectWithReflectiveEqualsHashCodeToString
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObjectWithReflectiveEqualsHashCodeToString
-
-