コード例 #1
0
 /**
  * Adds the given account to the pool.
  *
  * @param account an account
  */
 public void addAccount(final Account account) {
   if (account != null) {
     accounts.add(account);
   }
 }
コード例 #2
0
 /**
  * Get an account.
  *
  * @return an account or <code>null</code> if no account is available.
  */
 public Account getAccount() {
   return accounts.getDataElement();
 }