@Test public void shouldReturnAllPossibleByteValues() { byte[] all = Functions.allBytes(); assertEquals(256, all.length); assertEquals(0, all[0]); assertEquals(255, all[255] & 0xFF); }
@Function public static byte[] allBytes() { byte[] bytes = new byte[256]; for (int i = 0; i < 256; i++) { bytes[i] = (byte) i; } return bytes; }
Functions { @Function public static byte[] allBytes() { byte[] bytes = new byte[256]; for (int i = 0; i < 256; i++) { bytes[i] = (byte) i; } return bytes; } }
Functions { @Function public static byte[] allBytes() { byte[] bytes = new byte[256]; for (int i = 0; i < 256; i++) { bytes[i] = (byte) i; } return bytes; } private  Functions(); }
Functions { @Function public static byte[] allBytes() { byte[] bytes = new byte[256]; for (int i = 0; i < 256; i++) { bytes[i] = (byte) i; } return bytes; } private  Functions(); @Function static String uniqueId(); @Function static byte[] allBytes(); @Function static byte[] randomBytes(int length); @Function static byte[] randomBytesIncludingNumberOfEscapedBytes(int length, int numberOfEscapedBytesToInclude); @Function static byte[] convertEscapedUtf8BytesToEscapedWindows1252(byte[] in); @Function static byte[] decodeUtf8Bytes(byte[] bytes); @Function static byte[] encodeBytesAsUtf8(byte[] bytes); @Function static byte[] escapeBytesForUtf8(byte[] bytes); @Function static byte[] escapeBytesForWindows1252(byte[] bytes); @Function static byte[] padding(int size); @Function static int randomInt(int upperBound); @Function static String asString(int value); @Function static String append(String... strings); }
Functions { @Function public static byte[] allBytes() { byte[] bytes = new byte[256]; for (int i = 0; i < 256; i++) { bytes[i] = (byte) i; } return bytes; } private  Functions(); @Function static String uniqueId(); @Function static byte[] allBytes(); @Function static byte[] randomBytes(int length); @Function static byte[] randomBytesIncludingNumberOfEscapedBytes(int length, int numberOfEscapedBytesToInclude); @Function static byte[] convertEscapedUtf8BytesToEscapedWindows1252(byte[] in); @Function static byte[] decodeUtf8Bytes(byte[] bytes); @Function static byte[] encodeBytesAsUtf8(byte[] bytes); @Function static byte[] escapeBytesForUtf8(byte[] bytes); @Function static byte[] escapeBytesForWindows1252(byte[] bytes); @Function static byte[] padding(int size); @Function static int randomInt(int upperBound); @Function static String asString(int value); @Function static String append(String... strings);  }