| Modifier and Type | Field and Description |
|---|---|
| private final ConcurrentMap |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract T | Returns: a new instance of the constantthe name of the constant name, boolean whether the value represented by this constant is sensitive sensitive)Creates a new instance of the constant. |
| public String | |
| pack-priv final T |
| constants | back to summary |
|---|---|
| private final ConcurrentMap<String, T> constants | |
| ConstantPool | back to summary |
|---|---|
| pack-priv ConstantPool() | |
| createConstant | back to summary |
|---|---|
| pack-priv abstract T createConstant(String name, boolean sensitive) Creates a new instance of the constant. Implementations of this method should return a new instance each time.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| valueOf | back to summary |
|---|---|
| pack-priv final T valueOf(String name, boolean sensitive) Returns a cached or newly created instance of a constant.
| |