Class URef
- java.lang.Object
-
- com.syntifi.casper.sdk.model.uref.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 Summary
Constructors Constructor Description URef()
URef(byte[] address, URefAccessRight accessRight)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
void
createURef(java.lang.String uref)
boolean
equals(java.lang.Object o)
static URef
fromString(java.lang.String uref)
URefAccessRight
getAccessRight()
byte[]
getAddress()
protected java.lang.String
getJsonURef()
int
hashCode()
void
setAccessRight(URefAccessRight accessRight)
void
setAddress(byte[] address)
java.lang.String
toString()
-
-
-
Constructor Detail
-
URef
public URef(byte[] address, URefAccessRight accessRight)
-
URef
public URef()
-
-
Method Detail
-
fromString
public static URef fromString(java.lang.String uref) throws java.io.IOException, DynamicInstanceException, InvalidByteStringException
- Throws:
java.io.IOException
DynamicInstanceException
InvalidByteStringException
-
createURef
public void createURef(java.lang.String uref) throws java.io.IOException, DynamicInstanceException, InvalidByteStringException
- Throws:
java.io.IOException
DynamicInstanceException
InvalidByteStringException
-
getJsonURef
@ExcludeFromJacocoGeneratedReport protected java.lang.String getJsonURef()
-
getAddress
public byte[] getAddress()
-
getAccessRight
public URefAccessRight getAccessRight()
-
setAddress
public void setAddress(byte[] address)
-
setAccessRight
public void setAccessRight(URefAccessRight accessRight)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-