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>
- Direct Known Subclasses:
NottableOptionalString,NottableSchemaString
public class NottableString extends ObjectWithJsonToString implements Comparable<NottableString>
- Author:
- jamesdbloom
-
-
Field Summary
Fields Modifier and Type Field Description static charNOT_CHAR
-
Method Summary
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode
-
-
-
-
Field Detail
-
NOT_CHAR
public static final char NOT_CHAR
- See Also:
- Constant Field Values
-
-
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)
-
serialiseNottableStrings
public static List<String> serialiseNottableStrings(Collection<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()
-
isOptional
public boolean isOptional()
-
getParameterStyle
public ParameterStyle getParameterStyle()
-
withStyle
public NottableString withStyle(ParameterStyle style)
-
getSchemaType
public String getSchemaType()
-
withSchemaType
public NottableString withSchemaType(String schemaType)
-
lowercase
public NottableString lowercase()
-
equalsIgnoreCase
public boolean equalsIgnoreCase(Object other)
-
isBlank
public boolean isBlank()
-
matches
public boolean matches(String input)
-
equals
public boolean equals(Object other)
- Overrides:
equalsin classObjectWithReflectiveEqualsHashCodeToString
-
hashCode
public int hashCode()
- Overrides:
hashCodein classObjectWithReflectiveEqualsHashCodeToString
-
toString
public String toString()
- Overrides:
toStringin classObjectWithJsonToString
-
compareTo
public int compareTo(NottableString other)
- Specified by:
compareToin interfaceComparable<NottableString>
-
-