Package zephyr.wallet.model
Class ZephyrSubaddress
java.lang.Object
zephyr.wallet.model.ZephyrSubaddress
Zephyr subaddress model.
-
Constructor Summary
ConstructorsConstructorDescriptionZephyrSubaddress(int accountIndex, int index) ZephyrSubaddress(String address) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the subaddress's balance per asset.getIndex()getLabel()Returns the subaddress's unlocked (spendable) balance per asset; an absent asset is zero.inthashCode()isUsed()setAccountIndex(Integer accountIndex) setAddress(String address) setBalance(ZephyrBalance balance) Sets the subaddress's balance per asset.setNumBlocksToUnlock(Long numBlocksToUnlock) setNumUnspentOutputs(Long numUnspentOutputs) setUnlockedBalance(ZephyrBalance unlockedBalance) Sets the subaddress's unlocked balance per asset.toString()toString(int indent)
-
Constructor Details
-
ZephyrSubaddress
public ZephyrSubaddress() -
ZephyrSubaddress
-
ZephyrSubaddress
public ZephyrSubaddress(int accountIndex, int index)
-
-
Method Details
-
getAccountIndex
-
setAccountIndex
-
getIndex
-
setIndex
-
getAddress
-
setAddress
-
getLabel
-
setLabel
-
getBalance
Returns the subaddress's balance per asset. It lists only the assets the subaddress holds; an absent asset is zero (ZephyrBalance.get(String),ZephyrBalance.equals(Object)).- Returns:
- the subaddress's balance per asset in atomic units
-
setBalance
Sets the subaddress's balance per asset.- Parameters:
balance- is the subaddress's balance per asset in atomic units- Returns:
- this subaddress for chaining
-
getUnlockedBalance
Returns the subaddress's unlocked (spendable) balance per asset; an absent asset is zero.- Returns:
- the subaddress's unlocked balance per asset in atomic units
-
setUnlockedBalance
Sets the subaddress's unlocked balance per asset.- Parameters:
unlockedBalance- is the subaddress's unlocked balance per asset in atomic units- Returns:
- this subaddress for chaining
-
getNumUnspentOutputs
-
setNumUnspentOutputs
-
isUsed
-
setIsUsed
-
getNumBlocksToUnlock
-
setNumBlocksToUnlock
-
toString
-
toString
-
hashCode
public int hashCode() -
equals
-