(byte[] bytes)
| 125 | } |
| 126 | |
| 127 | public Integer buldFromBytes(byte[] bytes) { |
| 128 | if (bytes.length != getBytesAllocated()) { |
| 129 | throw new IllegalArgumentException( |
| 130 | "To build from byte array I need array of size: " |
| 131 | + getBytesAllocated()); |
| 132 | } |
| 133 | return ByteBuffer.wrap(bytes).getInt(); |
| 134 | } |
| 135 | |
| 136 | public int getBytesAllocated() { |
| 137 | return Integer.SIZE >> 3; |
nothing calls this directly
no test coverage detected