|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.analysis.util.TreeString
public final class TreeString
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.
| Nested Class Summary | |
|---|---|
static class |
TreeString.ConverterImpl
Default Converter implementation for XStream that does interning
scoped to one unmarshalling. |
| Method Summary | |
|---|---|
boolean |
equals(Object rhs)
|
int |
hashCode()
|
boolean |
isBlank()
|
static TreeString |
of(String s)
Creates a TreeString. |
String |
toString()
Returns the full string representation. |
static String |
toString(TreeString t)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean equals(Object rhs)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic boolean isBlank()
public static String toString(TreeString t)
public static TreeString of(String s)
TreeString. Useful if you need to create one-off
TreeString without TreeStringBuilder. Memory consumption
is still about the same to new String(s).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||