Package com.casper.sdk.model.clvalue
Class CLValueURef
- java.lang.Object
-
- com.casper.sdk.model.clvalue.AbstractCLValue<URef,CLTypeURef>
-
- com.casper.sdk.model.clvalue.CLValueURef
-
- All Implemented Interfaces:
CasperDeserializableObject,CasperSerializableObject,dev.oak3.sbs4j.interfaces.DeserializableObject,dev.oak3.sbs4j.interfaces.SerializableObject
public class CLValueURef extends AbstractCLValue<URef,CLTypeURef>
Casper Boolean CLURef implementation 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:
AbstractCLValue,URef
-
-
Constructor Summary
Constructors Constructor Description CLValueURef()CLValueURef(URef value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)voiddeserializeCustom(dev.oak3.sbs4j.DeserializerBuffer deser)booleanequals(java.lang.Object o)CLTypeURefgetClType()protected java.lang.StringgetJsonClType()inthashCode()protected voidserializeValue(dev.oak3.sbs4j.SerializerBuffer ser)voidsetClType(CLTypeURef clType)protected voidsetJsonClType(CLTypeURef clType)java.lang.StringtoString()-
Methods inherited from class com.casper.sdk.model.clvalue.AbstractCLValue
clone, createInstanceFromBytes, deserialize, deserialize, getBytes, getJsonBytes, getParsed, getValue, serialize, serializePrefixWithLength, setBytes, setJsonBytes, setParsed, setValue
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.casper.sdk.model.clvalue.serde.CasperSerializableObject
serialize
-
-
-
-
Constructor Detail
-
CLValueURef
public CLValueURef(URef value) throws dev.oak3.sbs4j.exception.ValueSerializationException
- Throws:
dev.oak3.sbs4j.exception.ValueSerializationException
-
CLValueURef
public CLValueURef()
-
-
Method Detail
-
getJsonClType
@ExcludeFromJacocoGeneratedReport protected java.lang.String getJsonClType()
-
setJsonClType
@ExcludeFromJacocoGeneratedReport protected void setJsonClType(CLTypeURef clType)
-
serializeValue
protected void serializeValue(dev.oak3.sbs4j.SerializerBuffer ser) throws dev.oak3.sbs4j.exception.ValueSerializationException- Specified by:
serializeValuein classAbstractCLValue<URef,CLTypeURef>- Throws:
dev.oak3.sbs4j.exception.ValueSerializationException
-
deserializeCustom
public void deserializeCustom(dev.oak3.sbs4j.DeserializerBuffer deser) throws java.lang.Exception- Specified by:
deserializeCustomin classAbstractCLValue<URef,CLTypeURef>- Throws:
java.lang.Exception
-
equals
@ExcludeFromJacocoGeneratedReport public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAbstractCLValue<URef,CLTypeURef>
-
canEqual
@ExcludeFromJacocoGeneratedReport protected boolean canEqual(java.lang.Object other)
- Overrides:
canEqualin classAbstractCLValue<URef,CLTypeURef>
-
hashCode
@ExcludeFromJacocoGeneratedReport public int hashCode()
- Overrides:
hashCodein classAbstractCLValue<URef,CLTypeURef>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getClType
public CLTypeURef getClType()
- Specified by:
getClTypein classAbstractCLValue<URef,CLTypeURef>
-
setClType
public void setClType(CLTypeURef clType)
- Specified by:
setClTypein classAbstractCLValue<URef,CLTypeURef>
-
-