|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectr01f.guids.HighLowKey
class HighLowKey
Modela una clave (HIGH o LOW)
| Field Summary | |
|---|---|
private byte[] |
_value
|
private static byte |
MAX_VALUE
|
private static byte |
MIN_VALUE
|
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
HighLowKey(int newLength)
ConStruye una clave con el tamaño que se pasa (que equivala a dicho tamaño por 8 en bytes) |
|
HighLowKey(java.lang.String inStr)
Construye una clave a partir de su representacion en forma de String |
|
| Method Summary | |
|---|---|
private static byte[] |
_fromStringOfHexToByteArray(java.lang.String str)
Devuelve una representacion en formato array de bytes de una cadena Cada byte se representa en la cadena como dos caracteres debido a la representacion Hexadecimal del byte 0=00 .... 255=FF |
private byte[] |
_increment(byte[] array)
Incrementa el valor del array de bytes en uno pero en orden inverso. |
private byte[] |
_incrementElement(byte[] array,
int index)
Método recursivo para aumentar un array de bytes en uno pero en orden inverso |
void |
increment()
Incrementa el valor de la clave en una unidad. |
void |
setToZero()
Reinicializa la clave al valor minimo |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private static byte MAX_VALUE
private static byte MIN_VALUE
private byte[] _value
| Constructor Detail |
|---|
public HighLowKey(int newLength)
public HighLowKey(java.lang.String inStr)
inStr - la representacion en cadena de la clave| Method Detail |
|---|
public void setToZero()
public void increment()
throws HighLowMaxForKeyReachedException
HighLowMaxForKeyReachedExceptionpublic java.lang.String toString()
toString in class java.lang.Object
private byte[] _increment(byte[] array)
throws HighLowMaxForKeyReachedException
HighLowMaxForKeyReachedException
private byte[] _incrementElement(byte[] array,
int index)
throws HighLowMaxForKeyReachedException
HighLowMaxForKeyReachedExceptionprivate static byte[] _fromStringOfHexToByteArray(java.lang.String str)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||