psman.data
Class Key
java.lang.Object
|
+--psman.data.Key
- Direct Known Subclasses:
- PublicKey, SecretKey
- public abstract class Key
- extends java.lang.Object
The object containing a key.
- Version:
- $Id: Key.java,v 1.4 2003/11/03 16:08:55 tk4 Exp $
- Author:
- Martin Godisch
Field Summary |
protected byte[] |
id
|
protected byte[] |
value
|
Constructor Summary |
Key(byte[] id,
byte[] value)
|
Method Summary |
boolean |
equals(psman.data.Key data)
|
boolean |
equals(java.lang.Object o)
|
byte[] |
getEncoded()
|
byte[] |
getID()
Return the database ID of this key. |
int |
hashCode()
The hashcode represents the first 4 Bytes of the key's id. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
id
protected byte[] id
value
protected byte[] value
Key
public Key(byte[] id,
byte[] value)
getEncoded
public byte[] getEncoded()
getID
public byte[] getID()
- Return the database ID of this key.
- Returns:
- the database ID of this key
equals
public boolean equals(psman.data.Key data)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- The hashcode represents the first 4 Bytes of the key's id.
- Overrides:
hashCode
in class java.lang.Object
- Returns:
- the hashcode of this object.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2003 DRIM Team. All Rights Reserved.