@Override
    public Account getAccountByName(String name) {
        for (Account account : accountMap.values()) {
            if (name.equals(account.getRemarkName())) {
                return account;
            }
            if (name.equals(account.getNickName())) {
                return account;
            }
        }
        return null;
    }
@Override
    public Account getAccountByName(String name) {
        for (Account account : accountMap.values()) {
            if (name.equals(account.getRemarkName())) {
                return account;
            }
            if (name.equals(account.getNickName())) {
                return account;
            }
        }
        return null;
    }
@ Override public Account getAccountByName ( String name ) { for ( Account account : accountMap . values ( ) ) { if ( name . equals ( account . getRemarkName ( ) ) ) { return account ; } if ( name . equals ( account . getNickName ( ) ) ) { return account ; } } return null ; }
根据备注或昵称查找账户

@param name
@return
根据备注或昵称查找账户