U
- the unresolved type UnresolvedAddress
or UnresolvedMosaicId
R
- the resolved type Address
or MosaicId
public abstract class ResolutionStatement<U,R> extends java.lang.Object implements Stored
Constructor and Description |
---|
ResolutionStatement(java.lang.String recordId,
ResolutionType resolutionType,
java.math.BigInteger height,
U unresolved,
java.util.List<ResolutionEntry<R>> resolutionEntries)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateHash(NetworkType networkType)
Serialize resolution statement and generate hash
|
java.math.BigInteger |
getHeight()
Returns block height
|
java.util.Optional<java.lang.String> |
getRecordId()
Returns database record id of the entity.
|
java.util.List<ResolutionEntry<R>> |
getResolutionEntries()
Returns Array of resolution entries.
|
java.util.Optional<ResolutionEntry<R>> |
getResolutionEntryById(long primaryId,
long secondaryId)
Find resolution entry for given primaryId and secondaryId.
|
ResolutionType |
getResolutionType()
Returns resolution type
|
U |
getUnresolved()
Returns An unresolved address or unresolved mosaicId (UnresolvedAddress | UnresolvedMosaic).
|
public ResolutionStatement(java.lang.String recordId, ResolutionType resolutionType, java.math.BigInteger height, U unresolved, java.util.List<ResolutionEntry<R>> resolutionEntries)
recordId
- the stored database id if knownresolutionType
- the ResolutionTypeheight
- Heightunresolved
- An unresolved address or unresolved mosaicId (UnresolvedAddress
|
UnresolvedMosaicId
).resolutionEntries
- Array of resolution entries (Address
, or MosaicId
).public U getUnresolved()
public java.math.BigInteger getHeight()
public java.util.List<ResolutionEntry<R>> getResolutionEntries()
public ResolutionType getResolutionType()
public java.util.Optional<ResolutionEntry<R>> getResolutionEntryById(long primaryId, long secondaryId)
primaryId
- Primary idsecondaryId
- Secondary idResolutionEntry
public java.lang.String generateHash(NetworkType networkType)
networkType
- networkTypepublic java.util.Optional<java.lang.String> getRecordId()
Stored
getRecordId
in interface Stored