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.
 
Constructor Summary
AccountInfo()
          Use this constructor for a bearer (empty) info.
AccountInfo(AccountId id, java.lang.String name, WalletInterface wi)
           
AccountInfo(byte[] data)
           
AccountInfo(byte[] id, java.lang.String name, WalletInterface wi)
          Deprecated. we don't want to pass byte[] around, use AccountIds instead.
AccountInfo(java.io.InputStream is)
           
 
Method Summary
 void decode(java.io.InputStream is)
           
 void encode(java.io.OutputStream os)
           
 boolean equals(java.lang.Object obj)
           
static AccountInfo example()
          Warning - no wallet interface set of course.
 AccountId getAccountId()
           
 byte[] getByteArray()
           
 byte[] getId()
           
 java.lang.String getName()
           
 WalletInterface getWalletInterface()
           
 int hashCode()
          Overridden to return the first 32 bits of the hash
 boolean isBearer()
           
static void main(java.lang.String[] args)
           
 void setByteArray(byte[] id)
           
 void setId(byte[] id)
           
 void setName(java.lang.String name)
           
 void setWalletInterface(WalletInterface wi)
           
 java.lang.String toString()
           
protected static void tryit(AccountInfo p)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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.
Constructor Detail

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
Method Detail

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