(byte[] val)
| 60 | } |
| 61 | |
| 62 | private static long getLong(byte[] val){ |
| 63 | ByteBuffer b = ByteBuffer.allocate(8); |
| 64 | b.order(ByteOrder.LITTLE_ENDIAN); |
| 65 | b.put(val); |
| 66 | return b.getLong(0); |
| 67 | } |
| 68 | |
| 69 | // TODO These five methods are definitely in the recipe book |
| 70 | // (add, subtract, get, getCounts, and isElement). |