public abstract class Operation extends BaseOperation implements ByteTransformable, Validatable
| Modifier | Constructor and Description |
|---|---|
protected |
Operation(boolean virtual)
Create a new Operation object by providing the operation type.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Map<SignatureObject,PrivateKeyType> |
getRequiredAuthorities(Map<SignatureObject,PrivateKeyType> requiredAuthoritiesBase)
Add the authorities which are required to sign this operation to an
existing map.
|
boolean |
isVirtual()
Returns
true if, and only if, the operation is a virtual
operation. |
protected Map<SignatureObject,PrivateKeyType> |
mergeRequiredAuthorities(Map<SignatureObject,PrivateKeyType> requiredAuthoritiesBase,
List<? extends SignatureObject> signatureObjects,
PrivateKeyType privateKeyType)
Use this helper method to merge a a list of account names into the
requiredAuthoritiesBase. |
protected Map<SignatureObject,PrivateKeyType> |
mergeRequiredAuthorities(Map<SignatureObject,PrivateKeyType> requiredAuthoritiesBase,
SignatureObject signatureObject,
PrivateKeyType privateKeyType)
Use this helper method to merge a single
accountName into
the requiredAuthoritiesBase. |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoByteArrayvalidateprotected Operation(boolean virtual)
virtual - Define if the operation instance is a virtual
(true) or a market operation
(false).public boolean isVirtual()
true if, and only if, the operation is a virtual
operation.true if the operation is a virtual operation, otherwise
falsepublic abstract Map<SignatureObject,PrivateKeyType> getRequiredAuthorities(Map<SignatureObject,PrivateKeyType> requiredAuthoritiesBase)
requiredAuthoritiesBase - A map to which the required authorities of this operation
should be added to.protected Map<SignatureObject,PrivateKeyType> mergeRequiredAuthorities(Map<SignatureObject,PrivateKeyType> requiredAuthoritiesBase, SignatureObject signatureObject, PrivateKeyType privateKeyType)
accountName into
the requiredAuthoritiesBase.requiredAuthoritiesBase - A map to which the required authorities of this operation
should be added to.signatureObject - The signature object (e.g. an account names) to merge into the
list.privateKeyType - The required key type.protected Map<SignatureObject,PrivateKeyType> mergeRequiredAuthorities(Map<SignatureObject,PrivateKeyType> requiredAuthoritiesBase, List<? extends SignatureObject> signatureObjects, PrivateKeyType privateKeyType)
requiredAuthoritiesBase.requiredAuthoritiesBase - A map to which the required authorities of this operation
should be added to.signatureObjects - The signature objects (e.g. a list of account names) to merge
into the list.privateKeyType - The required key type.public String toString()
toString in class BaseOperationCopyright © 2019. All rights reserved.