Comparable<JsStr>
, JsElem
public final class JsStr extends Object implements JsElem, Comparable<JsStr>
Modifier and Type | Method | Description |
---|---|---|
int |
compareTo(JsStr o) |
Compares two
JsStr objects lexicographically. |
boolean |
equals(@Nullable Object that) |
Indicates whether some other object is "equal to" this json string.
|
int |
hashCode() |
Returns the hashcode of this json string.
|
JsStr |
map(UnaryOperator<String> fn) |
Maps this JsStr into another one.
|
static JsStr |
of(String str) |
Static factory method to create a JsStr from a string.
|
boolean |
test(Predicate<String> predicate) |
Tests this JsStr on a predicate.
|
String |
toString() |
Returns the string representation parse this json string which is its value quoted.
|
asJsArray, asJsBigDec, asJsBigInt, asJsBool, asJsDouble, asJsInt, asJsLong, asJsObj, asJson, asJsStr, isArray, isArray, isBigDec, isBigDec, isBigInt, isBigInt, isBool, isDouble, isDouble, isFalse, isInstant, isInstant, isInt, isInt, isIntegral, isJson, isJson, isLocalDate, isLocalDate, isLocalDateTime, isLocalDateTime, isLong, isLong, isNothing, isNotJson, isNotNothing, isNotNull, isNotNumber, isNull, isNumber, isObj, isObj, isStr, isStr, isTrue
public final String x
public int compareTo(JsStr o)
JsStr
objects lexicographically.compareTo
in interface Comparable<JsStr>
String.compareTo(String)
public boolean equals(@Nullable Object that)
public boolean test(Predicate<String> predicate)
predicate
- the predicatepublic int hashCode()
public JsStr map(UnaryOperator<String> fn)
fn
- the mapping functionpublic static JsStr of(String str)
str
- the stringCopyright © 2019. All rights reserved.