T
- then restriction item.public abstract class MosaicRestriction<T> extends java.lang.Object implements Stored
Modifier and Type | Field and Description |
---|---|
java.lang.String |
compositeHash
composite hash
|
MosaicRestrictionEntryType |
entryType
Mosaic restriction entry type.
|
Modifier | Constructor and Description |
---|---|
protected |
MosaicRestriction(java.lang.String recordId,
int version,
java.lang.String compositeHash,
MosaicRestrictionEntryType entryType,
MosaicId mosaicId,
java.util.Map<java.math.BigInteger,T> restrictions)
constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCompositeHash() |
MosaicRestrictionEntryType |
getEntryType() |
MosaicId |
getMosaicId() |
java.util.Optional<java.lang.String> |
getRecordId()
Returns database record id of the entity.
|
java.util.Map<java.math.BigInteger,T> |
getRestrictions() |
int |
getVersion() |
abstract byte[] |
serialize() |
public final java.lang.String compositeHash
public final MosaicRestrictionEntryType entryType
protected MosaicRestriction(java.lang.String recordId, int version, java.lang.String compositeHash, MosaicRestrictionEntryType entryType, MosaicId mosaicId, java.util.Map<java.math.BigInteger,T> restrictions)
recordId
- the db idversion
- the versoincompositeHash
- the composite hashentryType
- the entry typemosaicId
- the mosaic idrestrictions
- the restrictionspublic java.lang.String getCompositeHash()
public MosaicRestrictionEntryType getEntryType()
public MosaicId getMosaicId()
public java.util.Map<java.math.BigInteger,T> getRestrictions()
public abstract byte[] serialize()
public int getVersion()
public java.util.Optional<java.lang.String> getRecordId()
Stored
getRecordId
in interface Stored