Package avm
Class Address
- java.lang.Object
-
- avm.Address
-
public class Address extends java.lang.Object
Represents an address of account in the Aion Network.
-
-
Field Summary
Fields Modifier and Type Field Description static int
LENGTH
The length of an address.
-
Constructor Summary
Constructors Constructor Description Address(byte[] raw)
Create an Address with the contents of the given raw byte array.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
byte[]
toByteArray()
Converts the receiver to a new byte array.java.lang.String
toString()
-
-
-
Field Detail
-
LENGTH
public static final int LENGTH
The length of an address.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Address
public Address(byte[] raw) throws java.lang.IllegalArgumentException
Create an Address with the contents of the given raw byte array.- Parameters:
raw
- a byte array- Throws:
java.lang.NullPointerException
- when the input byte array is null.java.lang.IllegalArgumentException
- when the input byte array length is invalid.
-
-
Method Detail
-
toByteArray
public byte[] toByteArray()
Converts the receiver to a new byte array.- Returns:
- a byte array containing a copy of the receiver.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-