org.jgap.audit
Class KeyedValue
- java.lang.Object
-
- org.jgap.audit.KeyedValue
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, ICloneable
public class KeyedValue extends java.lang.Object implements ICloneable, java.io.Serializable
A (key, value) tupel.- Since:
- 2.3
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description KeyedValue(java.lang.Comparable a_key, java.lang.Number a_value)Creates a new (key, value) tupel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Objectclone()booleanequals(java.lang.Object a_object)Tests if this object is equal to another.java.lang.ComparablegetKey()java.lang.NumbergetValue()inthashCode()voidsetValue(java.lang.Number a_value)Sets the value for the key
-
-
-
Constructor Detail
-
KeyedValue
public KeyedValue(java.lang.Comparable a_key, java.lang.Number a_value)Creates a new (key, value) tupel.- Parameters:
a_key- the keya_value- the value, could be null- Since:
- 2.3
-
-
Method Detail
-
getKey
public java.lang.Comparable getKey()
- Returns:
- key of the tupel
- Since:
- 2.3
-
getValue
public java.lang.Number getValue()
- Returns:
- value of the tupel
- Since:
- 2.3
-
setValue
public void setValue(java.lang.Number a_value)
Sets the value for the key- Parameters:
a_value- the value to set for the key- Since:
- 2.3
-
equals
public boolean equals(java.lang.Object a_object)
Tests if this object is equal to another.- Overrides:
equalsin classjava.lang.Object- Parameters:
a_object- the other object- Returns:
- true: this object is equal to other one
- Since:
- 2.3
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- Returns:
- hash code of the instance
- Since:
- 2.3
-
clone
public java.lang.Object clone()
- Specified by:
clonein interfaceICloneable- Overrides:
clonein classjava.lang.Object- Returns:
- clone of the current instance
- Since:
- 2.3
-
-
DMelt 3.0 © DataMelt by jWork.ORG