Compiere 3.1

org.compiere.util
Class ValueNamePair

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

public final class ValueNamePair
extends NamePair

(String) Value Name Pair

Version:
$Id: ValueNamePair.java,v 1.2 2006/07/30 00:52:23 jjanke Exp $
Author:
Jorg Janke
See Also:
Serialized Form

Constructor Summary
ValueNamePair()
          Use for GWT serialization
ValueNamePair(String value, String name)
          Construct KeyValue Pair
 
Method Summary
 boolean equals(Object obj)
          Equals
 String getID()
          Get ID
 String getValue()
          Get Value
 int hashCode()
          Return Hashcode of value
 
Methods inherited from class org.compiere.util.NamePair
compare, compareTo, getName, indexOfKey, indexOfValue, isSortByName, setName, setSortByName, toString, toStringX
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueNamePair

public ValueNamePair()
Use for GWT serialization


ValueNamePair

public ValueNamePair(String value,
                     String name)
Construct KeyValue Pair

Parameters:
value - value
name - string representation
Method Detail

getValue

public String getValue()
Get Value

Returns:
Value

getID

public String getID()
Get ID

Specified by:
getID in class NamePair
Returns:
Value

equals

public boolean equals(Object obj)
Equals

Specified by:
equals in interface Comparator<NamePair>
Overrides:
equals in class Object
Parameters:
obj - Object
Returns:
true, if equal

hashCode

public int hashCode()
Return Hashcode of value

Overrides:
hashCode in class Object
Returns:
hascode

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.