Package org.mockserver.model
Class KeyToMultiValue
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.model.ObjectWithJsonToString
-
- org.mockserver.model.KeyToMultiValue
-
public class KeyToMultiValue extends ObjectWithJsonToString
- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Constructor Description KeyToMultiValue(String name, String... values)
KeyToMultiValue(String name, Collection<String> values)
KeyToMultiValue(NottableString name, Collection<NottableString> values)
KeyToMultiValue(NottableString name, NottableString... values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNottableValues(List<NottableString> values)
void
addValue(String value)
void
addValue(NottableString value)
void
addValues(String... values)
void
addValues(List<String> values)
void
addValues(NottableString... values)
boolean
equals(Object o)
NottableString
getName()
List<NottableString>
getValues()
int
hashCode()
-
Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toString
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode, key
-
-
-
-
Constructor Detail
-
KeyToMultiValue
public KeyToMultiValue(NottableString name, NottableString... values)
-
KeyToMultiValue
public KeyToMultiValue(String name, Collection<String> values)
-
KeyToMultiValue
public KeyToMultiValue(NottableString name, Collection<NottableString> values)
-
-
Method Detail
-
getName
public NottableString getName()
-
getValues
public List<NottableString> getValues()
-
addValue
public void addValue(String value)
-
addValue
public void addValue(NottableString value)
-
addNottableValues
public void addNottableValues(List<NottableString> values)
-
addValues
public void addValues(String... values)
-
addValues
public void addValues(NottableString... values)
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classObjectWithReflectiveEqualsHashCodeToString
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObjectWithReflectiveEqualsHashCodeToString
-
-