webfunds.client
Class AccountInfo
java.lang.Object
|
+--webfunds.client.AccountInfo
- public class AccountInfo
- extends java.lang.Object
|
Field Summary |
protected byte[] |
id
The account identifier. |
protected java.lang.String |
name
The user-assigned text name. |
protected WalletInterface |
wi
Hook into parent wallet so GUI can find the account. |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
id
protected byte[] id
- The account identifier.
name
protected java.lang.String name
- The user-assigned text name.
wi
protected transient WalletInterface wi
- Hook into parent wallet so GUI can find the account.
AccountInfo
public AccountInfo()
- Use this constructor for a bearer (empty) info.
AccountInfo
public AccountInfo(AccountId id,
java.lang.String name,
WalletInterface wi)
AccountInfo
public AccountInfo(byte[] id,
java.lang.String name,
WalletInterface wi)
- Deprecated. we don't want to pass byte[] around, use AccountIds instead.
AccountInfo
public AccountInfo(byte[] data)
throws java.io.IOException
AccountInfo
public AccountInfo(java.io.InputStream is)
throws java.io.IOException
getId
public byte[] getId()
setId
public void setId(byte[] id)
getByteArray
public byte[] getByteArray()
setByteArray
public void setByteArray(byte[] id)
getAccountId
public AccountId getAccountId()
isBearer
public boolean isBearer()
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getWalletInterface
public WalletInterface getWalletInterface()
setWalletInterface
public void setWalletInterface(WalletInterface wi)
encode
public void encode(java.io.OutputStream os)
throws java.io.IOException
decode
public void decode(java.io.InputStream is)
throws java.io.IOException
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
- equals in class java.lang.Object
hashCode
public int hashCode()
- Overridden to return the first 32 bits of the hash
- Overrides:
- hashCode in class java.lang.Object
example
public static AccountInfo example()
- Warning - no wallet interface set of course.
main
public static void main(java.lang.String[] args)
tryit
protected static void tryit(AccountInfo p)
throws java.lang.Exception