Class KeyWriterBalancesBean
- java.lang.Object
-
- com.h2tcoin.takamakachain.utils.threadSafeUtils.KeyWriterBalancesBean
-
- All Implemented Interfaces:
Serializable
public class KeyWriterBalancesBean extends Object implements Serializable
this class maps the addresses in hex format to those in url format. Conversion is necessary because addresses in url format contain unsafe characters for many filesystems- Author:
- giovanni.antino@h2tcoin.com
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KeyWriterBalancesBean()
-
Method Summary
-
-
-
Method Detail
-
getHexToBase64URLMapper
public ConcurrentSkipListMap<String,String> getHexToBase64URLMapper()
return the mapper from hex to url64- Returns:
-
getUrl64ToHexMapper
public ConcurrentSkipListMap<String,String> getUrl64ToHexMapper()
-
setHexAddressSetToUrl64
protected void setHexAddressSetToUrl64(ConcurrentSkipListMap<String,String> hexAddressSetToUrl64)
-
setUrl64AddressSetToHex
protected void setUrl64AddressSetToHex(ConcurrentSkipListMap<String,String> url64AddressSetToHex)
-
setHexToBalanceBean
protected void setHexToBalanceBean(ConcurrentSkipListMap<String,BalanceBean> hexToBalanceBeanSet)
-
getBalanceBeanByHex
public BalanceBean getBalanceBeanByHex(String hexAddr)
-
getBalanceBeanByURL64
public BalanceBean getBalanceBeanByURL64(String urlAddr)
-
getHexToBalanceList
public ConcurrentSkipListMap<String,BalanceBean> getHexToBalanceList()
-
writeHexBalance
public boolean writeHexBalance(String hexAddr, BalanceBean bb)
add if BB is not present overwrite if present FAIL if address is not part of this set- Parameters:
hexAddr
-bb
-- Returns:
-
writeURL64Balance
public boolean writeURL64Balance(String url64Addr, BalanceBean bb)
add if BB is not present overwrite if present FAIL if address is not part of this set- Parameters:
url64Addr
-bb
-- Returns:
-
addTransactionToSet
public void addTransactionToSet(String urlAddr, BalanceBean bb)
-
-