Class URef


  • public class URef
    extends java.lang.Object
    URef is a tuple that contains the address of the URef and the access rights to that URef. The serialized representation of the URef is 33 bytes long. The first 32 bytes are the byte representation of the URef address, and the last byte contains the bits corresponding to the access rights of the URef.
    Since:
    0.0.1
    See Also:
    CLValueURef
    • Constructor Detail

      • URef

        public URef()
    • Method Detail

      • createURef

        public void createURef​(java.lang.String uref)
                        throws java.io.IOException,
                               DynamicInstanceException,
                               java.lang.IllegalArgumentException
        Throws:
        java.io.IOException
        DynamicInstanceException
        java.lang.IllegalArgumentException
      • getAddress

        public byte[] getAddress()
      • setAddress

        public void setAddress​(byte[] address)
      • setAccessRight

        public void setAccessRight​(URefAccessRight accessRight)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object