@Test public void from() { ByteArray from = ByteArray.from("795c64c6eee9164539d679354f349779a04f57cb"); assertThat(from, is(byteArray)); }
public static ByteArray from(String hex) { if (hex.startsWith("0x")) { return new ByteArray(Hex.decode(hex.substring(2))); } else { return new ByteArray(Hex.decode(hex)); } }
ByteArray { public static ByteArray from(String hex) { if (hex.startsWith("0x")) { return new ByteArray(Hex.decode(hex.substring(2))); } else { return new ByteArray(Hex.decode(hex)); } } }
ByteArray { public static ByteArray from(String hex) { if (hex.startsWith("0x")) { return new ByteArray(Hex.decode(hex.substring(2))); } else { return new ByteArray(Hex.decode(hex)); } } ByteArray(byte[] bytes); }
ByteArray { public static ByteArray from(String hex) { if (hex.startsWith("0x")) { return new ByteArray(Hex.decode(hex.substring(2))); } else { return new ByteArray(Hex.decode(hex)); } } ByteArray(byte[] bytes); static ByteArray from(String hex); final String toHexString(); final String toHexString(boolean withPrefix); final byte[] getBytes(); @Override String toString(); @Override final int hashCode(); @Override final boolean equals(Object o); }
ByteArray { public static ByteArray from(String hex) { if (hex.startsWith("0x")) { return new ByteArray(Hex.decode(hex.substring(2))); } else { return new ByteArray(Hex.decode(hex)); } } ByteArray(byte[] bytes); static ByteArray from(String hex); final String toHexString(); final String toHexString(boolean withPrefix); final byte[] getBytes(); @Override String toString(); @Override final int hashCode(); @Override final boolean equals(Object o);  }