Package se.datadosen.util
Class NameValue<T>
java.lang.Object
se.datadosen.util.NameValue<T>
- All Implemented Interfaces:
Serializable
,Comparable
Class that allows an arbitrary value to be tagged along a visible string
Enables for instance JComboBoxes to display strings but also supply an arbitrary value with each item
Similar to Item, but with the visible name being in focus
(i.e. equals(), hashCode() and compareTo() considers the visible name and not the value)
- Since:
- v11
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
name
-
value
-
-
Constructor Details
-
NameValue
-
-
Method Details