Package jenkins.util
Class TreeString
java.lang.Object
jenkins.util.TreeString
- All Implemented Interfaces:
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
.
- Since:
- 1.473
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
DefaultConverter
implementation for XStream that does interning scoped to one unmarshalling. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
isBlank()
static TreeString
Creates aTreeString
.toString()
Returns the full string representation.static String
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
Returns the full string representation. -
isBlank
public boolean isBlank() -
toString
-
of
Creates aTreeString
. Useful if you need to create one-offTreeString
withoutTreeStringBuilder
. Memory consumption is still about the same tonew String(s)
.- Returns:
- null if the parameter is null
-