Class CLValueURef
- java.lang.Object
-
- com.syntifi.casper.sdk.model.clvalue.AbstractCLValue<URef,CLTypeURef>
-
- com.syntifi.casper.sdk.model.clvalue.CLValueURef
-
- All Implemented Interfaces:
DecodableValue,EncodableValue
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)voiddecode(CLValueDecoder clvd)Called when the object's values must be decoded after deserializingvoidencode(CLValueEncoder clve)Called when the object's values must be encoded for serializingbooleanequals(java.lang.Object o)CLTypeURefgetClType()protected java.lang.StringgetJsonClType()inthashCode()voidsetClType(CLTypeURef clType)protected voidsetJsonClType(CLTypeURef clType)-
Methods inherited from class com.syntifi.casper.sdk.model.clvalue.AbstractCLValue
getBytes, getJsonBytes, getParsed, getValue, setBytes, setJsonBytes, setParsed, setValue
-
-
-
-
Constructor Detail
-
CLValueURef
public CLValueURef(URef value)
-
CLValueURef
public CLValueURef()
-
-
Method Detail
-
setJsonClType
@ExcludeFromJacocoGeneratedReport protected void setJsonClType(CLTypeURef clType)
-
getJsonClType
@ExcludeFromJacocoGeneratedReport protected java.lang.String getJsonClType()
-
encode
public void encode(CLValueEncoder clve) throws java.io.IOException
Description copied from interface:EncodableValueCalled when the object's values must be encoded for serializing- Parameters:
clve- the encoder to be used- Throws:
java.io.IOException
-
decode
public void decode(CLValueDecoder clvd) throws java.io.IOException, CLValueDecodeException, DynamicInstanceException
Description copied from interface:DecodableValueCalled when the object's values must be decoded after deserializing- Parameters:
clvd- the decoder to be used- Throws:
java.io.IOExceptionCLValueDecodeExceptionDynamicInstanceException
-
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>
-
getClType
public CLTypeURef getClType()
- Specified by:
getClTypein classAbstractCLValue<URef,CLTypeURef>
-
setClType
public void setClType(CLTypeURef clType)
- Specified by:
setClTypein classAbstractCLValue<URef,CLTypeURef>
-
-