java.lang.Object
org.kink_lang.kink.HostResultCore
org.kink_lang.kink.Val
org.kink_lang.kink.StrVal
- All Implemented Interfaces:
Comparable<StrVal>,HostResult
A str val.
- See Also:
-
Field Summary
-
Method Summary
Methods inherited from class org.kink_lang.kink.Val
getVar, getVarSymHandleSet, hasVar, makeHostResultCore, setVar
-
Method Details
-
string
Returns the string.- Returns:
- the string.
-
isEmpty
public boolean isEmpty()Returns whether the string is empty.- Returns:
- whether the string is empty.
-
concat
Returns a str val concatenatingthisandtail.- Parameters:
tail- str val to concatenate.- Returns:
- a str val concatenating
thisandtail.
-
toString
-
hashCode
public int hashCode() -
equals
-
compareTo
Compares two str values in the order of code points.- Specified by:
compareToin interfaceComparable<StrVal>- Parameters:
arg- the str value to be compared.- Returns:
- 0 if two strings are equal;
less than 0 if
thisstring is smaller; otherwise greater than 0.
-