Package org.mockserver.model
Class NottableString
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.model.ObjectWithJsonToString
-
- org.mockserver.model.NottableString
-
- All Implemented Interfaces:
Comparable<NottableString>
public class NottableString extends ObjectWithJsonToString implements Comparable<NottableString>
- Author:
- jamesdbloom
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(NottableString other)
static List<NottableString>
deserializeNottableStrings(String... strings)
static List<NottableString>
deserializeNottableStrings(List<String> strings)
boolean
equals(Object other)
boolean
equalsIgnoreCase(Object other)
String
getValue()
int
hashCode()
boolean
isBlank()
boolean
isNot()
NottableString
lowercase()
boolean
matches(String input)
boolean
matchesIgnoreCase(String input)
static NottableString
not(String value)
static List<String>
serialiseNottableString(List<NottableString> nottableStrings)
static String
serialiseNottableString(NottableString nottableString)
static NottableString
string(String value)
static NottableString
string(String value, Boolean not)
static List<NottableString>
strings(String... values)
static List<NottableString>
strings(Collection<String> values)
String
toString()
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode, key
-
-
-
-
Method Detail
-
deserializeNottableStrings
public static List<NottableString> deserializeNottableStrings(String... strings)
-
deserializeNottableStrings
public static List<NottableString> deserializeNottableStrings(List<String> strings)
-
serialiseNottableString
public static String serialiseNottableString(NottableString nottableString)
-
serialiseNottableString
public static List<String> serialiseNottableString(List<NottableString> nottableStrings)
-
string
public static NottableString string(String value, Boolean not)
-
string
public static NottableString string(String value)
-
not
public static NottableString not(String value)
-
strings
public static List<NottableString> strings(String... values)
-
strings
public static List<NottableString> strings(Collection<String> values)
-
getValue
public String getValue()
-
isNot
public boolean isNot()
-
lowercase
public NottableString lowercase()
-
equalsIgnoreCase
public boolean equalsIgnoreCase(Object other)
-
isBlank
public boolean isBlank()
-
matches
public boolean matches(String input)
-
matchesIgnoreCase
public boolean matchesIgnoreCase(String input)
-
equals
public boolean equals(Object other)
- Overrides:
equals
in classObjectWithReflectiveEqualsHashCodeToString
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObjectWithReflectiveEqualsHashCodeToString
-
toString
public String toString()
- Overrides:
toString
in classObjectWithJsonToString
-
compareTo
public int compareTo(NottableString other)
- Specified by:
compareTo
in interfaceComparable<NottableString>
-
-