Creates a HashCode from a byte array. The array is not copied defensively, so it must be handed-off so as to preserve the immutability contract of HashCode.
(byte[] bytes)
| 270 | |
| 271 | |
| 272 | static HashCode fromBytesNoCopy(byte[] bytes) { |
| 273 | return new BytesHashCode(bytes); |
| 274 | } |
| 275 | |
| 276 | private static final class BytesHashCode extends HashCode implements Serializable { |
| 277 | final byte[] bytes; |
no outgoing calls
no test coverage detected