Package avm

Class 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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object