public static class Appendix.PrunablePlainMessage extends Appendix.AbstractAppendix implements Appendix.Prunable
Appendix.AbstractAppendix, Appendix.AbstractEncryptedMessage, Appendix.Encryptable, Appendix.EncryptedMessage, Appendix.EncryptToSelfMessage, Appendix.Message, Appendix.Phasing, Appendix.Prunable, Appendix.PrunableEncryptedMessage, Appendix.PrunablePlainMessage, Appendix.PublicKeyAnnouncement, Appendix.UnencryptedEncryptedMessage, Appendix.UnencryptedEncryptToSelfMessage, Appendix.UnencryptedPrunableEncryptedMessage
Constructor and Description |
---|
PrunablePlainMessage(byte[] message) |
PrunablePlainMessage(byte[] message,
boolean isText) |
PrunablePlainMessage(java.lang.String string) |
PrunablePlainMessage(java.lang.String string,
boolean isText) |
Modifier and Type | Method and Description |
---|---|
Fee |
getBaselineFee(Transaction transaction) |
byte[] |
getHash() |
byte[] |
getMessage() |
Fee |
getNextFee(Transaction transaction) |
boolean |
hasPrunableData() |
boolean |
isText() |
void |
restorePrunableData(Transaction transaction,
int blockTimestamp,
int height) |
getBaselineFeeHeight, getFullSize, getJSONObject, getNextFeeHeight, getSize, getVersion, isPhased, putBytes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldLoadPrunable
hasAppendix
public PrunablePlainMessage(byte[] message)
public PrunablePlainMessage(java.lang.String string)
public PrunablePlainMessage(java.lang.String string, boolean isText)
public PrunablePlainMessage(byte[] message, boolean isText)
public Fee getBaselineFee(Transaction transaction)
getBaselineFee
in interface Appendix
getBaselineFee
in class Appendix.AbstractAppendix
public Fee getNextFee(Transaction transaction)
getNextFee
in interface Appendix
getNextFee
in class Appendix.AbstractAppendix
public byte[] getMessage()
public boolean isText()
public byte[] getHash()
getHash
in interface Appendix.Prunable
public final boolean hasPrunableData()
hasPrunableData
in interface Appendix.Prunable
public void restorePrunableData(Transaction transaction, int blockTimestamp, int height)
restorePrunableData
in interface Appendix.Prunable