Module org.jfree.chart3d
Package org.jfree.chart3d.data
Class DefaultKeyedValue<K extends Comparable<K>,T>
java.lang.Object
org.jfree.chart3d.data.DefaultKeyedValue<K,T>
- All Implemented Interfaces:
Serializable,KeyedValue<K,T>
public final class DefaultKeyedValue<K extends Comparable<K>,T>
extends Object
implements KeyedValue<K,T>, Serializable
A data item where a key is associated with a value (typically numerical).
NOTE: This class is serializable, but the serialization format is subject to change in future releases and should not be relied upon for persisting instances of this class.
NOTE: This class is serializable, but the serialization format is subject to change in future releases and should not be relied upon for persisting instances of this class.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultKeyedValue
Creates a new instance.- Parameters:
key- the key (nullnot permitted).value- the value.
-
-
Method Details
-
getKey
Returns the key.- Specified by:
getKeyin interfaceKeyedValue<K extends Comparable<K>,T> - Returns:
- The key (never
null).
-
getValue
Returns the value.- Specified by:
getValuein interfaceKeyedValue<K extends Comparable<K>,T> - Returns:
- The value (possibly
null).
-
setValue
Sets the value.- Parameters:
value- the value (nullpermitted).
-
equals
Tests this instance for equality with an arbitrary object. -
toString
-