org.kuali.rice.core.api.util
Class ConcreteKeyValue

java.lang.Object
  extended by org.kuali.rice.core.api.util.AbstractKeyValue
      extended by org.kuali.rice.core.api.util.ConcreteKeyValue
All Implemented Interfaces:
Serializable, Comparable<KeyValue>, KeyValue

public final class ConcreteKeyValue
extends AbstractKeyValue
implements Comparable<KeyValue>

A mutable, comparable key value pair of Strings. This class is not meant to be extended. For extension see AbstractKeyValue & KeyValue.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.core.api.util.AbstractKeyValue
key, value
 
Constructor Summary
ConcreteKeyValue()
           
ConcreteKeyValue(KeyValue keyValue)
           
ConcreteKeyValue(Map.Entry<String,String> entry)
           
ConcreteKeyValue(String key, String value)
           
 
Method Summary
 int compareTo(KeyValue o)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 void setKey(String key)
           
 void setValue(String value)
           
 String toString()
           
 
Methods inherited from class org.kuali.rice.core.api.util.AbstractKeyValue
getKey, getValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConcreteKeyValue

public ConcreteKeyValue()

ConcreteKeyValue

public ConcreteKeyValue(String key,
                        String value)

ConcreteKeyValue

public ConcreteKeyValue(KeyValue keyValue)

ConcreteKeyValue

public ConcreteKeyValue(Map.Entry<String,String> entry)
Method Detail

setKey

public void setKey(String key)

setValue

public void setValue(String value)

compareTo

public int compareTo(KeyValue o)
Specified by:
compareTo in interface Comparable<KeyValue>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.