Class LazyUid
- java.lang.Object
-
- org.glassfish.jersey.internal.util.LazyUid
-
- All Implemented Interfaces:
Serializable
public class LazyUid extends Object implements Serializable
Lazily initialized, thread-safe, random UUID. Useful for identifying instances for logging & debugging purposes. The UUID value gets initialized with the first call tovalue()method. Once initialized, the UUID value stays the same.- Author:
- Marek Potociar
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LazyUid()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object that)inthashCode()StringtoString()Stringvalue()Return UUID value.
-
-
-
Method Detail
-
value
public String value()
Return UUID value. The returned value is nevernull.- Returns:
- UUID value.
-
-