public final class TreeString extends Object implements Serializable
TreeString is an alternative string representation that saves the memory when you have a large number of
strings that share common prefixes (such as various file names.)
TreeString can be built with TreeStringBuilder.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object rhs) |
int |
hashCode() |
boolean |
isBlank() |
String |
toString()
Returns the full string representation.
|
static TreeString |
valueOf(String string)
Creates a
TreeString. |
public String toString()
public boolean isBlank()
public static TreeString valueOf(String string)
TreeString. Useful if you need to create one-off TreeString without TreeStringBuilder. Memory consumption is still about the same to new String(string).string - the tree stringTreeStringCopyright © 2018. All rights reserved.