Package nxt
Class Appendix.PrunablePlainMessage
- java.lang.Object
-
- nxt.Appendix.AbstractAppendix
-
- nxt.Appendix.PrunablePlainMessage
-
- All Implemented Interfaces:
Appendix
,Appendix.Prunable
- Enclosing interface:
- Appendix
public static class Appendix.PrunablePlainMessage extends Appendix.AbstractAppendix implements Appendix.Prunable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface nxt.Appendix
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 Summary
Constructors Constructor Description PrunablePlainMessage(byte[] message)
PrunablePlainMessage(byte[] message, boolean isText)
PrunablePlainMessage(java.lang.String string)
PrunablePlainMessage(java.lang.String string, boolean isText)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Fee
getBaselineFee(Transaction transaction)
byte[]
getHash()
byte[]
getMessage()
boolean
hasPrunableData()
boolean
isText()
void
restorePrunableData(Transaction transaction, int blockTimestamp, int height)
-
Methods inherited from class nxt.Appendix.AbstractAppendix
getBaselineFeeHeight, getFullSize, getJSONObject, getNextFee, getNextFeeHeight, getSize, getVersion, isPhased, putBytes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface nxt.Appendix.Prunable
shouldLoadPrunable
-
-
-
-
Constructor Detail
-
PrunablePlainMessage
public PrunablePlainMessage(byte[] message)
-
PrunablePlainMessage
public PrunablePlainMessage(java.lang.String string)
-
PrunablePlainMessage
public PrunablePlainMessage(java.lang.String string, boolean isText)
-
PrunablePlainMessage
public PrunablePlainMessage(byte[] message, boolean isText)
-
-
Method Detail
-
getBaselineFee
public Fee getBaselineFee(Transaction transaction)
- Specified by:
getBaselineFee
in interfaceAppendix
- Overrides:
getBaselineFee
in classAppendix.AbstractAppendix
-
getMessage
public byte[] getMessage()
-
isText
public boolean isText()
-
getHash
public byte[] getHash()
- Specified by:
getHash
in interfaceAppendix.Prunable
-
hasPrunableData
public final boolean hasPrunableData()
- Specified by:
hasPrunableData
in interfaceAppendix.Prunable
-
restorePrunableData
public void restorePrunableData(Transaction transaction, int blockTimestamp, int height)
- Specified by:
restorePrunableData
in interfaceAppendix.Prunable
-
-