net.vvakame.blaz
Class Key

java.lang.Object
  extended by net.vvakame.blaz.Key
All Implemented Interfaces:
Serializable, Comparable<Key>

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

KVS の Key

Author:
vvakame
See Also:
Serialized Form

Constructor Summary
Key()
           
 
Method Summary
 int compareTo(Key other)
           
 boolean equals(Object obj)
           
 long getId()
           
 String getKind()
           
 String getName()
           
 int hashCode()
           
 void setId(long id)
           
 void setKind(String kind)
           
 void setName(String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Key

public Key()
Method Detail

getKind

public String getKind()
Returns:
the kind

setKind

public void setKind(String kind)
Parameters:
kind - the kind to set

getName

public String getName()
Returns:
the name

setName

public void setName(String name)
Parameters:
name - the name to set

getId

public long getId()
Returns:
the id

setId

public void setId(long id)
Parameters:
id - the id to set

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.