Package org.mockserver.collections
Class ImmutableEntry
- java.lang.Object
-
- org.apache.commons.lang3.tuple.Pair<NottableString,NottableString>
-
- org.mockserver.collections.ImmutableEntry
-
- All Implemented Interfaces:
Serializable,Comparable<org.apache.commons.lang3.tuple.Pair<NottableString,NottableString>>,Map.Entry<NottableString,NottableString>
public class ImmutableEntry extends org.apache.commons.lang3.tuple.Pair<NottableString,NottableString> implements Map.Entry<NottableString,NottableString>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableEntryentry(RegexStringMatcher regexStringMatcher, String key, String value)static ImmutableEntryentry(RegexStringMatcher regexStringMatcher, NottableString key, NottableString value)booleanequals(Object o)NottableStringgetLeft()NottableStringgetRight()inthashCode()booleanisNotNotted()booleanisNotOptional()booleanisNotted()booleanisOptional()static <T> booleanlistsEqual(List<T> matcher, List<T> matched)static booleanlistsEqualWithOptionals(RegexStringMatcher regexStringMatcher, List<ImmutableEntry> matcher, List<ImmutableEntry> matched)NottableStringsetValue(NottableString value)StringtoString()-
Methods inherited from class org.apache.commons.lang3.tuple.Pair
accept, apply, compareTo, emptyArray, getKey, getValue, of, of, ofNonNull, toString
-
-
-
-
Method Detail
-
entry
public static ImmutableEntry entry(RegexStringMatcher regexStringMatcher, String key, String value)
-
entry
public static ImmutableEntry entry(RegexStringMatcher regexStringMatcher, NottableString key, NottableString value)
-
isOptional
public boolean isOptional()
-
isNotted
public boolean isNotted()
-
isNotOptional
public boolean isNotOptional()
-
isNotNotted
public boolean isNotNotted()
-
getLeft
public NottableString getLeft()
- Specified by:
getLeftin classorg.apache.commons.lang3.tuple.Pair<NottableString,NottableString>
-
getRight
public NottableString getRight()
- Specified by:
getRightin classorg.apache.commons.lang3.tuple.Pair<NottableString,NottableString>
-
setValue
public NottableString setValue(NottableString value)
- Specified by:
setValuein interfaceMap.Entry<NottableString,NottableString>
-
toString
public String toString()
- Overrides:
toStringin classorg.apache.commons.lang3.tuple.Pair<NottableString,NottableString>
-
equals
public boolean equals(Object o)
- Specified by:
equalsin interfaceMap.Entry<NottableString,NottableString>- Overrides:
equalsin classorg.apache.commons.lang3.tuple.Pair<NottableString,NottableString>
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceMap.Entry<NottableString,NottableString>- Overrides:
hashCodein classorg.apache.commons.lang3.tuple.Pair<NottableString,NottableString>
-
listsEqualWithOptionals
public static boolean listsEqualWithOptionals(RegexStringMatcher regexStringMatcher, List<ImmutableEntry> matcher, List<ImmutableEntry> matched)
-
-