@Test public void from() { String hexStr = "795c64c6eee9164539d679354f349779a04f57cb"; byte[] addressBytes = new BigInteger( "111100101011100011001001100011011101110111010010001011001000101001110011101011001111001001101010100111100110100100101110111100110100000010011110101011111001011", 2).toByteArray(); Address address; address = Address.from(hexStr); assertThat(address.toHexString(), is(hexStr)); address = Address.from(addressBytes); assertThat(address.toHexString(), is(hexStr)); }
public static Address from(byte[] address) { return new Address(new ByteArray(address)); }
Address extends ByteArray { public static Address from(byte[] address) { return new Address(new ByteArray(address)); } }
Address extends ByteArray { public static Address from(byte[] address) { return new Address(new ByteArray(address)); } Address(ByteArray byteArray); }
Address extends ByteArray { public static Address from(byte[] address) { return new Address(new ByteArray(address)); } Address(ByteArray byteArray); static Address from(byte[] address); static Address from(String address); @Override String toString(); }
Address extends ByteArray { public static Address from(byte[] address) { return new Address(new ByteArray(address)); } Address(ByteArray byteArray); static Address from(byte[] address); static Address from(String address); @Override String toString();  }