Class NamedValue<T>
java.lang.Object
org.tentackle.misc.NamedValue<T>
- Type Parameters:
T- the value type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value for given name.protected AtomicReference<T> getReference(String name) Gets the atomic reference.names()Gets the names of all values.voidSets the value for given name.
-
Constructor Details
-
NamedValue
public NamedValue()Creates a named counter.
-
-
Method Details
-
get
-
set
-
names
-
getReference
Gets the atomic reference.- Parameters:
name- the value's name- Returns:
- the atomic reference
-