de.uniba.wiai.lspi.chord.console.command.entry
Class Key

java.lang.Object
  extended by de.uniba.wiai.lspi.chord.console.command.entry.Key
All Implemented Interfaces:
Key

public final class Key
extends Object
implements Key

Represents a key used within console to store a Value within a chord network.


Constructor Summary
Key(String key1)
          Creates a new instance of Key
 
Method Summary
 boolean equals(Object o)
           
 byte[] getBytes()
          Returns the byte for this key which is then used to calculate a unique ID for storage in the chord network.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Key

public Key(String key1)
Creates a new instance of Key

Parameters:
key1 -
Method Detail

getBytes

public byte[] getBytes()
Returns the byte for this key which is then used to calculate a unique ID for storage in the chord network.

Specified by:
getBytes in interface Key
Returns:
Byte representation of the key.

toString

public String toString()
Overrides:
toString in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2004-2008 Karsten Loesing, Sven Kaffille - Distributed and Mobile Systems Group, Lehrstuhl für Praktische Informatik, Universität Bamberg. All Rights Reserved.