@Test(expected = IllegalArgumentException.class) public void assertCorrectLengthException() { byteValue.assertLength(3); }
protected void assertLength(int length) { if (value.length != length) { throw new IllegalArgumentException("Expected length " + length + " got " + value.length); } }
ByteValue implements ByteReadable { protected void assertLength(int length) { if (value.length != length) { throw new IllegalArgumentException("Expected length " + length + " got " + value.length); } } }
ByteValue implements ByteReadable { protected void assertLength(int length) { if (value.length != length) { throw new IllegalArgumentException("Expected length " + length + " got " + value.length); } } protected  ByteValue(byte... value); protected  ByteValue(ByteBuf byteBuf); }
ByteValue implements ByteReadable { protected void assertLength(int length) { if (value.length != length) { throw new IllegalArgumentException("Expected length " + length + " got " + value.length); } } protected  ByteValue(byte... value); protected  ByteValue(ByteBuf byteBuf); static void checkUnsignedBounds(long value, int numberOfBytes); static void checkUnsignedBounds(BigInteger value, int numberOfBytes); @Override byte[] getBytes(); @Override ByteBuf getByteBuf(); @Override long getCalculatedLength(); static ByteValue of(byte... values); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
ByteValue implements ByteReadable { protected void assertLength(int length) { if (value.length != length) { throw new IllegalArgumentException("Expected length " + length + " got " + value.length); } } protected  ByteValue(byte... value); protected  ByteValue(ByteBuf byteBuf); static void checkUnsignedBounds(long value, int numberOfBytes); static void checkUnsignedBounds(BigInteger value, int numberOfBytes); @Override byte[] getBytes(); @Override ByteBuf getByteBuf(); @Override long getCalculatedLength(); static ByteValue of(byte... values); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }