Located in compilation unit of com.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ConcurrentMap |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public E | intern(E
the element to add if absent sample)Implements com. |
| map | back to summary |
|---|---|
| pack-priv final ConcurrentMap<E, E> map | |
| StrongInterner | back to summary |
|---|---|
| pack-priv StrongInterner() | |
| intern | back to summary |
|---|---|
| public E intern(E sample) Implements com. Doc from com. Chooses and returns the representative instance for any collection of instances that are
equal to each other. If two equal inputs are given to this method,
both calls will return the same instance. That is, Warning Do not use with mutable objects.
| |