Class Stored
- java.lang.Object
-
- com.casper.sdk.model.transaction.target.Stored
-
- All Implemented Interfaces:
CasperSerializableObject,Tag,TransactionTarget,SerializableObject
public class Stored extends java.lang.Object implements TransactionTarget
The execution target is a stored entity or package.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStored.StoredBuilder
-
Constructor Summary
Constructors Constructor Description Stored()Stored(TransactionInvocationTarget id, TransactionRuntime runtime, long transferredValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Stored.StoredBuilderbuilder()bytegetByteTag()TransactionInvocationTargetgetId()The identifier of the stored execution target.TransactionRuntimegetRuntime()The execution runtime to use.longgetTransferredValue()voidserialize(SerializerBuffer ser, Target target)Called when the object's values must be serializedvoidsetId(TransactionInvocationTarget id)The identifier of the stored execution target.voidsetRuntime(TransactionRuntime runtime)The execution runtime to use.voidsetTransferredValue(long transferredValue)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.casper.sdk.model.clvalue.serde.CasperSerializableObject
serialize
-
-
-
-
Constructor Detail
-
Stored
public Stored()
-
Stored
public Stored(TransactionInvocationTarget id, TransactionRuntime runtime, long transferredValue)
-
-
Method Detail
-
serialize
public void serialize(SerializerBuffer ser, Target target) throws ValueSerializationException, NoSuchTypeException
Description copied from interface:CasperSerializableObjectCalled when the object's values must be serialized- Specified by:
serializein interfaceCasperSerializableObject- Parameters:
ser- the serializer to be usedtarget- target serialization standard- Throws:
ValueSerializationException- exception holding information of failure to serialize a valueNoSuchTypeException
-
getByteTag
public byte getByteTag()
- Specified by:
getByteTagin interfaceTag
-
builder
public static Stored.StoredBuilder builder()
-
getId
public TransactionInvocationTarget getId()
The identifier of the stored execution target.
-
getRuntime
public TransactionRuntime getRuntime()
The execution runtime to use.
-
getTransferredValue
public long getTransferredValue()
-
setId
public void setId(TransactionInvocationTarget id)
The identifier of the stored execution target.
-
setRuntime
public void setRuntime(TransactionRuntime runtime)
The execution runtime to use.
-
setTransferredValue
public void setTransferredValue(long transferredValue)
-
-