|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.syncbuilder.storage.Char4
The representation of a 4-character identifier. These identifiers are needed for the Creator-IDs and the database types. They need special treatment, because they are 4-byte integers, where each byte is an 8-bit character for the sake of readability.
Instances of this class are immutable.
| Constructor Summary | |
Char4(byte[] b)
Create a Char4 from an array of 4 bytes. |
|
Char4(int id)
Create a Char4 from a 32-bit integer. |
|
Char4(java.lang.String id)
Create a Char4 from a String of 4 characters. |
|
| Method Summary | |
boolean |
equals(Char4 other)
Is the Char4 equal to another one? |
byte[] |
getBytes()
Get the array of 4 bytes from the Char4. |
int |
getInt()
Get the 32-bit integer-value of the Char4. |
java.lang.String |
getString()
Get the 4-character String of the Char4. |
java.lang.String |
toString()
Return the Char4's value as a pretty human-readable string. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public Char4(int id)
id - the 32-bit integer
public Char4(java.lang.String id)
throws java.lang.IllegalArgumentException
id - the String
public Char4(byte[] b)
throws java.lang.IllegalArgumentException
id - the array| Method Detail |
public int getInt()
public byte[] getBytes()
public java.lang.String getString()
public boolean equals(Char4 other)
public java.lang.String toString()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||