public class Bundle extends Object implements Comparable<Bundle>
Modifier and Type | Field and Description |
---|---|
static String |
EMPTY_HASH |
Constructor and Description |
---|
Bundle()
Initializes a new instance of the Bundle class without transactions.
|
Bundle(List<Transaction> transactions,
int length)
Initializes a new instance of the Bundle class.
|
Modifier and Type | Method and Description |
---|---|
void |
addEntry(int signatureMessageLength,
String address,
long value,
String tag,
long timestamp)
Adds a bundle entry.
|
void |
addTrytes(List<String> signatureFragments)
Adds the trytes.
|
int |
compareTo(Bundle o)
Compares the current object with another object of the same type.
|
void |
finalize(ICurl customCurl)
Finalizes the bundle using the specified curl implementation,
|
int |
getLength()
Gets the length of the bundle
|
List<Transaction> |
getTransactions()
Gets the transactions
|
int[] |
normalizedBundle(String bundleHash)
Normalized the bundle.
|
void |
setLength(int length)
Sets the length of the bundle
|
public static String EMPTY_HASH
public Bundle()
public Bundle(List<Transaction> transactions, int length)
transactions
- length
- public List<Transaction> getTransactions()
public int getLength()
public void setLength(int length)
length
- The length.public void addEntry(int signatureMessageLength, String address, long value, String tag, long timestamp)
signatureMessageLength
- Length of the signature message.address
- The address.value
- The value.tag
- The tag.timestamp
- The timestamp.public void finalize(ICurl customCurl)
customCurl
- The custom curl.public void addTrytes(List<String> signatureFragments)
signatureFragments
- The signature fragments.public int[] normalizedBundle(String bundleHash)
bundleHash
- The bundle hash.public int compareTo(Bundle o)
compareTo
in interface Comparable<Bundle>
o
- An object to compare with this object.Copyright © 2018. All rights reserved.