jodd.util
Interface StringPool
public interface StringPool
Pool of String
constants to prevent repeating of
hard-coded String
literals in the code.
Due to fact that these are public static final
they will be inlined by java compiler and
reference to this class will be dropped.
There is no performance gain of using this pool.
Read: http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#3.10.5
- Literal strings within the same class in the same package represent references to the same
String
object.
- Literal strings within different classes in the same package represent references to the same
String
object.
- Literal strings within different classes in different packages likewise represent references to the same
String
object.
- Strings computed by constant expressions are computed at compile time and then treated as if they were literals.
- Strings computed by concatenation at run time are newly created and therefore distinct.
JODD
static final String JODD
- See Also:
- Constant Field Values
AMPERSAND
static final String AMPERSAND
- See Also:
- Constant Field Values
AND
static final String AND
- See Also:
- Constant Field Values
AT
static final String AT
- See Also:
- Constant Field Values
ASTERISK
static final String ASTERISK
- See Also:
- Constant Field Values
STAR
static final String STAR
- See Also:
- Constant Field Values
BACK_SLASH
static final String BACK_SLASH
- See Also:
- Constant Field Values
COLON
static final String COLON
- See Also:
- Constant Field Values
COMMA
static final String COMMA
- See Also:
- Constant Field Values
DASH
static final String DASH
- See Also:
- Constant Field Values
DOLLAR
static final String DOLLAR
- See Also:
- Constant Field Values
DOT
static final String DOT
- See Also:
- Constant Field Values
DOTDOT
static final String DOTDOT
- See Also:
- Constant Field Values
DOT_CLASS
static final String DOT_CLASS
- See Also:
- Constant Field Values
DOT_JAVA
static final String DOT_JAVA
- See Also:
- Constant Field Values
EMPTY
static final String EMPTY
- See Also:
- Constant Field Values
EQUALS
static final String EQUALS
- See Also:
- Constant Field Values
FALSE
static final String FALSE
- See Also:
- Constant Field Values
SLASH
static final String SLASH
- See Also:
- Constant Field Values
HASH
static final String HASH
- See Also:
- Constant Field Values
HAT
static final String HAT
- See Also:
- Constant Field Values
LEFT_BRACE
static final String LEFT_BRACE
- See Also:
- Constant Field Values
LEFT_BRACKET
static final String LEFT_BRACKET
- See Also:
- Constant Field Values
LEFT_CHEV
static final String LEFT_CHEV
- See Also:
- Constant Field Values
NEWLINE
static final String NEWLINE
- See Also:
- Constant Field Values
N
static final String N
- See Also:
- Constant Field Values
NO
static final String NO
- See Also:
- Constant Field Values
NULL
static final String NULL
- See Also:
- Constant Field Values
OFF
static final String OFF
- See Also:
- Constant Field Values
ON
static final String ON
- See Also:
- Constant Field Values
PERCENT
static final String PERCENT
- See Also:
- Constant Field Values
PIPE
static final String PIPE
- See Also:
- Constant Field Values
PLUS
static final String PLUS
- See Also:
- Constant Field Values
QUESTION_MARK
static final String QUESTION_MARK
- See Also:
- Constant Field Values
EXCLAMATION_MARK
static final String EXCLAMATION_MARK
- See Also:
- Constant Field Values
QUOTE
static final String QUOTE
- See Also:
- Constant Field Values
RETURN
static final String RETURN
- See Also:
- Constant Field Values
TAB
static final String TAB
- See Also:
- Constant Field Values
RIGHT_BRACE
static final String RIGHT_BRACE
- See Also:
- Constant Field Values
RIGHT_BRACKET
static final String RIGHT_BRACKET
- See Also:
- Constant Field Values
RIGHT_CHEV
static final String RIGHT_CHEV
- See Also:
- Constant Field Values
SEMICOLON
static final String SEMICOLON
- See Also:
- Constant Field Values
SINGLE_QUOTE
static final String SINGLE_QUOTE
- See Also:
- Constant Field Values
SPACE
static final String SPACE
- See Also:
- Constant Field Values
LEFT_SQ_BRACKET
static final String LEFT_SQ_BRACKET
- See Also:
- Constant Field Values
RIGHT_SQ_BRACKET
static final String RIGHT_SQ_BRACKET
- See Also:
- Constant Field Values
TRUE
static final String TRUE
- See Also:
- Constant Field Values
UNDERSCORE
static final String UNDERSCORE
- See Also:
- Constant Field Values
UTF_8
static final String UTF_8
- See Also:
- Constant Field Values
ISO_8859_1
static final String ISO_8859_1
- See Also:
- Constant Field Values
Y
static final String Y
- See Also:
- Constant Field Values
YES
static final String YES
- See Also:
- Constant Field Values
ONE
static final String ONE
- See Also:
- Constant Field Values
ZERO
static final String ZERO
- See Also:
- Constant Field Values
DOLLAR_LEFT_BRACE
static final String DOLLAR_LEFT_BRACE
- See Also:
- Constant Field Values
EMPTY_ARRAY
static final String[] EMPTY_ARRAY