@Private
public class SerialNumberMap<T>
extends java.lang.Object
It allows to get the serial number of an object, if the object doesn't exist in the map, a new serial number increased by 1 is generated to map to the object. The mapped object can also be got through the serial number.
The map is thread-safe.
| Modifier and Type | Method | Description |
|---|---|---|
T |
get(int i) |
|
int |
get(T t) |
|
int |
size() |
|
java.lang.String |
toString() |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.