public class MosaicAddressRestrictionTransactionFactory extends TransactionFactory<MosaicAddressRestrictionTransaction> implements TargetAddressTransaction
MosaicAddressRestrictionTransaction
Modifier and Type | Method and Description |
---|---|
MosaicAddressRestrictionTransaction |
build() |
static MosaicAddressRestrictionTransactionFactory |
create(NetworkType networkType,
Deadline deadline,
UnresolvedMosaicId mosaicId,
java.math.BigInteger restrictionKey,
UnresolvedAddress targetAddress,
java.math.BigInteger newRestrictionValue)
Static create method for factory.
|
UnresolvedMosaicId |
getMosaicId()
Returns the mosaic id.
|
java.math.BigInteger |
getNewRestrictionValue()
Returns the new restriction value.
|
java.math.BigInteger |
getPreviousRestrictionValue()
Returns previous restriction value.
|
java.math.BigInteger |
getRestrictionKey()
Returns the restriction key.
|
UnresolvedAddress |
getTargetAddress()
Returns the target address.
|
MosaicAddressRestrictionTransactionFactory |
previousRestrictionValue(java.math.BigInteger previousRestrictionValue)
It sets the previoudRestrictionValue when necessary.
|
calculateMaxFeeFromMultiplier, deadline, getDeadline, getGroup, getMaxFee, getNetworkType, getProvidedSize, getSignature, getSigner, getSize, getTransactionInfo, getType, getVersion, group, maxFee, signature, signer, size, transactionInfo, version
public static MosaicAddressRestrictionTransactionFactory create(NetworkType networkType, Deadline deadline, UnresolvedMosaicId mosaicId, java.math.BigInteger restrictionKey, UnresolvedAddress targetAddress, java.math.BigInteger newRestrictionValue)
networkType
- NetworkType
deadline
- the deadline.mosaicId
- UnresolvedMosaicId
restrictionKey
- Restriction key.targetAddress
- UnresolvedAddress
newRestrictionValue
- New restriction value.public MosaicAddressRestrictionTransaction build()
build
in class TransactionFactory<MosaicAddressRestrictionTransaction>
public UnresolvedMosaicId getMosaicId()
UnresolvedMosaicId
public java.math.BigInteger getRestrictionKey()
public UnresolvedAddress getTargetAddress()
getTargetAddress
in interface TargetAddressTransaction
UnresolvedAddress
public java.math.BigInteger getPreviousRestrictionValue()
BigInteger
public MosaicAddressRestrictionTransactionFactory previousRestrictionValue(java.math.BigInteger previousRestrictionValue)
previousRestrictionValue
- the previous restriction valuepublic java.math.BigInteger getNewRestrictionValue()