Class ValueNamePair

java.lang.Object
org.compiere.util.NamePair
org.compiere.util.ValueNamePair
All Implemented Interfaces:
Serializable, Comparable<Object>, Comparator<Object>

public final class ValueNamePair extends NamePair
Value Name Pair (String key and name)
Version:
$Id: ValueNamePair.java,v 1.2 2006/07/30 00:52:23 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Field Details

  • Constructor Details

    • ValueNamePair

      public ValueNamePair(String value, String name)
      Construct ValueNamePair Pair
      Parameters:
      value - value
      name - string representation
  • Method Details

    • getValue

      public String getValue()
      Get Key Value
      Returns:
      Key Value
    • getID

      public String getID()
      Get String ID
      Specified by:
      getID in class NamePair
      Returns:
      Value
    • equals

      public boolean equals(Object obj)
      Equals
      Specified by:
      equals in interface Comparator<Object>
      Overrides:
      equals in class Object
      Parameters:
      obj - Object
      Returns:
      true, if equal
    • getValueObject

      public Object getValueObject()
      Get the Object representation of the value
      Returns:
      value
    • hashCode

      public int hashCode()
      Return Hashcode of value
      Overrides:
      hashCode in class Object
      Returns:
      hascode