Class ImmutableEntry
java.lang.Object
org.apache.commons.lang3.tuple.Pair<NottableString,NottableString>
software.xdev.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:
-
Field Summary
Fields inherited from class org.apache.commons.lang3.tuple.Pair
EMPTY_ARRAY -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableEntryentry(RegexStringMatcher regexStringMatcher, String key, String value) static ImmutableEntryentry(RegexStringMatcher regexStringMatcher, NottableString key, NottableString value) booleangetLeft()getRight()inthashCode()booleanbooleanisNotted()booleanstatic <T> booleanlistsEqual(List<T> matcher, List<T> matched) static booleanlistsEqualWithOptionals(RegexStringMatcher regexStringMatcher, List<ImmutableEntry> matcher, List<ImmutableEntry> matched) setValue(NottableString value) toString()Methods inherited from class org.apache.commons.lang3.tuple.Pair
accept, apply, compareTo, emptyArray, getKey, getValue, of, of, ofNonNull, toString
-
Method Details
-
entry
-
entry
public static ImmutableEntry entry(RegexStringMatcher regexStringMatcher, NottableString key, NottableString value) -
isOptional
public boolean isOptional() -
isNotted
public boolean isNotted() -
isNotOptional
public boolean isNotOptional() -
getLeft
- Specified by:
getLeftin classorg.apache.commons.lang3.tuple.Pair<NottableString,NottableString>
-
getRight
- Specified by:
getRightin classorg.apache.commons.lang3.tuple.Pair<NottableString,NottableString>
-
setValue
- Specified by:
setValuein interfaceMap.Entry<NottableString,NottableString>
-
toString
- Overrides:
toStringin classorg.apache.commons.lang3.tuple.Pair<NottableString,NottableString>
-
equals
- 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>
-
listsEqual
-
listsEqualWithOptionals
public static boolean listsEqualWithOptionals(RegexStringMatcher regexStringMatcher, List<ImmutableEntry> matcher, List<ImmutableEntry> matched)
-