public class Bundle extends Object implements Comparable<Bundle>
| Modifier and Type | Field and Description |
|---|---|
static String |
EMPTY_HASH
Deprecated.
|
| Constructor and Description |
|---|
Bundle()
Initializes a new instance of the Bundle class without transactions.
|
Bundle(List<Transaction> transactions)
Initializes a new instance of the Bundle class.
|
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 |
addTransaction(Transaction transaction) |
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,
|
String |
getBundleHash() |
int |
getLength()
Gets the length of the bundle
|
List<Transaction> |
getTransactions()
Gets the transactions
|
int[] |
normalizedBundle(String bundleHash)
Deprecated.
will be removed in a future release, replaced by
normalizedBundle(String, ICurl) |
int[] |
normalizedBundle(String bundleHash,
ICurl curl)
Normalized the bundle.
|
void |
setLength(int length)
Sets the length of the bundle
|
String |
toString() |
@Deprecated public static final String EMPTY_HASH
Constants.NULL_HASH instead, will be removed in a future release.public Bundle()
public Bundle(List<Transaction> transactions)
transactions - 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 String getBundleHash()
public void addTransaction(Transaction transaction)
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.@Deprecated public int[] normalizedBundle(String bundleHash)
normalizedBundle(String, ICurl)bundleHash - The bundle hash.public int[] normalizedBundle(String bundleHash, ICurl curl)
bundleHash - The bundle hash.curl - Hashing function that should be used to normalize.public int compareTo(Bundle o)
compareTo in interface Comparable<Bundle>o - An object to compare with this object.Copyright © 2019. All rights reserved.