public final class BundlerRate
extends java.lang.Object
| Constructor and Description |
|---|
BundlerRate(java.nio.ByteBuffer buffer)
Create a signed bundler rate
|
BundlerRate(ChildChain chain,
long rate,
long feeLimit,
byte[] privateKey)
Create a signed bundler rate
|
BundlerRate(ChildChain chain,
long accountId,
long rate,
long feeLimit)
Create an unsigned bundler rate
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Check if two bundler rates are equal
|
long |
getAccountId()
Get the account identifier
|
long |
getBalance()
Get the account balance
|
void |
getBytes(java.nio.ByteBuffer buffer)
Get our bytes
|
ChildChain |
getChain()
Get the child chain
|
long |
getFeeLimit()
Get the fee limit
|
int |
getLength()
Get the encoded length
|
byte[] |
getPublicKey()
Get the account public key
|
long |
getRate()
Get the bundler rate
|
byte[] |
getSignature()
Get the signature
|
int |
getTimestamp()
Get the timestamp
|
byte[] |
getUnsignedBytes()
Get the unsigned bytes
|
int |
hashCode()
Get the hash code
|
void |
setBalance(long balance)
Set the account balance
|
public BundlerRate(ChildChain chain, long accountId, long rate, long feeLimit)
chain - Child chainaccountId - Account identifierrate - Bundler ratefeeLimit - Current fee limitpublic BundlerRate(ChildChain chain, long rate, long feeLimit, byte[] privateKey)
chain - Child chainrate - Bundler ratefeeLimit - Current fee limitprivateKey - Private keypublic BundlerRate(java.nio.ByteBuffer buffer)
throws java.nio.BufferUnderflowException
buffer - Encoded datajava.nio.BufferUnderflowException - Encoded data is too shortpublic int getLength()
public void getBytes(java.nio.ByteBuffer buffer)
buffer - Byte bufferjava.nio.BufferOverflowException - Allocated buffer is too smallpublic byte[] getUnsignedBytes()
public ChildChain getChain()
public long getAccountId()
public byte[] getPublicKey()
public long getRate()
public long getFeeLimit()
public int getTimestamp()
public byte[] getSignature()
public long getBalance()
public void setBalance(long balance)
balance - Account balancepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Bundler rate to compare