|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.prosyst.util.hash.Key
public class Key
Helper class for keeping property names in XProperties
| Field Summary | |
|---|---|
byte[] |
bytes
the key as a byte[] |
java.lang.String |
s
the key as a String |
| Constructor Summary | |
|---|---|
Key(java.lang.String s,
byte[] bytes)
Constructs a Key instance. |
|
| Method Summary | |
|---|---|
static boolean |
compare(byte[] b1,
byte[] b2)
Helper method for comparing byte[]-s |
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public byte[] bytes
public java.lang.String s
| Constructor Detail |
|---|
public Key(java.lang.String s,
byte[] bytes)
s is null, the String representation of the key
is constructed from the bytes argument. If bytes is null,
the byte[] representation of the key is constructed from the s argument.
| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
public static boolean compare(byte[] b1,
byte[] b2)
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||