Documentation of 'org.jgap.audit.KeyedValue' Java class
KeyedValue
org.jgap.audit

Class 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.Object clone() 
      boolean equals(java.lang.Object a_object)
      Tests if this object is equal to another.
      java.lang.Comparable getKey() 
      java.lang.Number getValue() 
      int hashCode() 
      void setValue(java.lang.Number a_value)
      Sets the value for the key
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • 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 key
        a_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:
        equals in class java.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:
        hashCode in class java.lang.Object
        Returns:
        hash code of the instance
        Since:
        2.3
      • clone

        public java.lang.Object clone()
        Specified by:
        clone in interface ICloneable
        Overrides:
        clone in class java.lang.Object
        Returns:
        clone of the current instance
        Since:
        2.3

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.