@Test public void toByteExactUnsigned_maxValue() { final int value = 255; byte byteValue = ByteUtil.toByteExactUnsigned(value); assertThat(byteValue).isEqualTo((byte) value); }
public static byte toByteExactUnsigned(final int value) throws IllegalArgumentException { checkArgument(value >= 0, "Supplied int value (%s) is negative", value); return castToByteExact(value); }
ByteUtil { public static byte toByteExactUnsigned(final int value) throws IllegalArgumentException { checkArgument(value >= 0, "Supplied int value (%s) is negative", value); return castToByteExact(value); } }
ByteUtil { public static byte toByteExactUnsigned(final int value) throws IllegalArgumentException { checkArgument(value >= 0, "Supplied int value (%s) is negative", value); return castToByteExact(value); }  }
ByteUtil { public static byte toByteExactUnsigned(final int value) throws IllegalArgumentException { checkArgument(value >= 0, "Supplied int value (%s) is negative", value); return castToByteExact(value); }  static int toUnsignedInt(final byte value); static byte toByteExact(final int value); static byte toByteExactUnsigned(final int value); }
ByteUtil { public static byte toByteExactUnsigned(final int value) throws IllegalArgumentException { checkArgument(value >= 0, "Supplied int value (%s) is negative", value); return castToByteExact(value); }  static int toUnsignedInt(final byte value); static byte toByteExact(final int value); static byte toByteExactUnsigned(final int value);  }