org.equanda.translations
Class Key

java.lang.Object
  extended by org.equanda.translations.Key
All Implemented Interfaces:
Serializable, Comparable<Key>

public class Key
extends Object
implements Comparable<Key>, Serializable

Model for a key for a translation

Author:
Florin
See Also:
Serialized Form

Constructor Summary
Key()
           
Key(String key, String context)
           
 
Method Summary
 int compareTo(Key other)
           
 boolean equals(Object o)
           
 String getContext()
           
 String getKey()
           
 int hashCode()
           
 void setContext(String context)
           
 void setKey(String key)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Key

public Key()

Key

public Key(String key,
           String context)
Method Detail

getKey

public String getKey()

setKey

public void setKey(String key)

getContext

public String getContext()

setContext

public void setContext(String context)

compareTo

public int compareTo(Key other)
Specified by:
compareTo in interface Comparable<Key>

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2007-2009. All Rights Reserved.