| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final long | |
| private static final int | |
| private static final int | |
| private static final long | |
| private static final int | |
| private static final int | |
| private static final long | |
| private static final int | |
| private static final int | |
| private static final long | |
| private static final int | |
| private static final int | |
| private static final long | |
| private static final int | |
| private static final byte | |
| private static final int | |
| private final BigInteger | |
| public static final ZipEightByteInteger |
| Access | Constructor and Description |
|---|---|
| public | ZipEightByteInteger(long
the long to store as a ZipEightByteInteger value)Create instance from a number. |
| public | ZipEightByteInteger(BigInteger
the BigInteger to store as a ZipEightByteInteger value)Create instance from a number. |
| public | ZipEightByteInteger(byte[]
the bytes to store as a ZipEightByteInteger bytes)Create instance from bytes. |
| public | ZipEightByteInteger(byte[]
the bytes to store as a ZipEightByteInteger bytes, int the offset to start offset)Create instance from the eight bytes starting at offset. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the objects are equalan object to compare o)Overrides java. |
| public byte[] | Returns: value as eight bytes in big endian orderGet value as eight bytes in big endian byte order. |
| public static byte[] | Returns: value as eight bytes in big endian byte orderthe value to convert value)Get value as eight bytes in big endian byte order. |
| public static byte[] | Returns: value as eight bytes in big endian byte orderthe value to convert value)Get value as eight bytes in big endian byte order. |
| public long | |
| public static long | Returns: the corresponding Java long valuethe array of bytes bytes, int the offset to start offset)Helper method to get the value as a Java long from eight bytes starting at given array offset |
| public static long | Returns: the corresponding Java long valuethe array of bytes bytes)Helper method to get the value as a Java long from an eight-byte array |
| public BigInteger | |
| public static BigInteger | Returns: the corresponding Java BigInteger valuethe array of bytes bytes, int the offset to start offset)Helper method to get the value as a Java BigInteger from eight bytes starting at given array offset |
| public static BigInteger | Returns: the corresponding Java BigInteger valuethe array of bytes bytes)Helper method to get the value as a Java long from an eight-byte array |
| public int | Returns: the hashCode of the value stored in the ZipEightByteIntegerOverrides java. |
| public String |
| BYTE_1 | back to summary |
|---|---|
| private static final int BYTE_1 | |
| BYTE_1_MASK | back to summary |
|---|---|
| private static final int BYTE_1_MASK | |
| BYTE_1_SHIFT | back to summary |
|---|---|
| private static final int BYTE_1_SHIFT | |
| BYTE_2 | back to summary |
|---|---|
| private static final int BYTE_2 | |
| BYTE_2_MASK | back to summary |
|---|---|
| private static final int BYTE_2_MASK | |
| BYTE_2_SHIFT | back to summary |
|---|---|
| private static final int BYTE_2_SHIFT | |
| BYTE_3 | back to summary |
|---|---|
| private static final int BYTE_3 | |
| BYTE_3_MASK | back to summary |
|---|---|
| private static final long BYTE_3_MASK | |
| BYTE_3_SHIFT | back to summary |
|---|---|
| private static final int BYTE_3_SHIFT | |
| BYTE_4 | back to summary |
|---|---|
| private static final int BYTE_4 | |
| BYTE_4_MASK | back to summary |
|---|---|
| private static final long BYTE_4_MASK | |
| BYTE_4_SHIFT | back to summary |
|---|---|
| private static final int BYTE_4_SHIFT | |
| BYTE_5 | back to summary |
|---|---|
| private static final int BYTE_5 | |
| BYTE_5_MASK | back to summary |
|---|---|
| private static final long BYTE_5_MASK | |
| BYTE_5_SHIFT | back to summary |
|---|---|
| private static final int BYTE_5_SHIFT | |
| BYTE_6 | back to summary |
|---|---|
| private static final int BYTE_6 | |
| BYTE_6_MASK | back to summary |
|---|---|
| private static final long BYTE_6_MASK | |
| BYTE_6_SHIFT | back to summary |
|---|---|
| private static final int BYTE_6_SHIFT | |
| BYTE_7 | back to summary |
|---|---|
| private static final int BYTE_7 | |
| BYTE_7_MASK | back to summary |
|---|---|
| private static final long BYTE_7_MASK | |
| BYTE_7_SHIFT | back to summary |
|---|---|
| private static final int BYTE_7_SHIFT | |
| LEFTMOST_BIT | back to summary |
|---|---|
| private static final byte LEFTMOST_BIT | |
| LEFTMOST_BIT_SHIFT | back to summary |
|---|---|
| private static final int LEFTMOST_BIT_SHIFT | |
| value | back to summary |
|---|---|
| private final BigInteger value | |
| ZERO | back to summary |
|---|---|
| public static final ZipEightByteInteger ZERO | |
| ZipEightByteInteger | back to summary |
|---|---|
| public ZipEightByteInteger(long value) Create instance from a number.
| |
| ZipEightByteInteger | back to summary |
|---|---|
| public ZipEightByteInteger(BigInteger value) Create instance from a number.
| |
| ZipEightByteInteger | back to summary |
|---|---|
| public ZipEightByteInteger(byte[] bytes) Create instance from bytes.
| |
| ZipEightByteInteger | back to summary |
|---|---|
| public ZipEightByteInteger(byte[] bytes, int offset) Create instance from the eight bytes starting at offset.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Override to make two instances with same value equal. | |
| getBytes | back to summary |
|---|---|
| public byte[] getBytes() Get value as eight bytes in big endian byte order.
| |
| getBytes | back to summary |
|---|---|
| public static byte[] getBytes(long value) Get value as eight bytes in big endian byte order.
| |
| getBytes | back to summary |
|---|---|
| public static byte[] getBytes(BigInteger value) Get value as eight bytes in big endian byte order.
| |
| getLongValue | back to summary |
|---|---|
| public long getLongValue() Get value as Java long.
| |
| getLongValue | back to summary |
|---|---|
| public static long getLongValue(byte[] bytes, int offset) Helper method to get the value as a Java long from eight bytes starting at given array offset
| |
| getLongValue | back to summary |
|---|---|
| public static long getLongValue(byte[] bytes) Helper method to get the value as a Java long from an eight-byte array
| |
| getValue | back to summary |
|---|---|
| public BigInteger getValue() Get value as Java long.
| |
| getValue | back to summary |
|---|---|
| public static BigInteger getValue(byte[] bytes, int offset) Helper method to get the value as a Java BigInteger from eight bytes starting at given array offset
| |
| getValue | back to summary |
|---|---|
| public static BigInteger getValue(byte[] bytes) Helper method to get the value as a Java long from an eight-byte array
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Override to make two instances with same value equal.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |