@Override public Account getAccountById(short accountId) { checkOpen(); return accountId == Account.UNKNOWN_ACCOUNT_ID ? UNKNOWN_ACCOUNT : null; }
@Override public Collection<Account> getAllAccounts() { checkOpen(); return accounts; }
@Override public boolean updateAccounts(Collection<Account> accounts) { checkOpen(); Objects.requireNonNull(accounts, "accounts cannot be null"); return false; }
@Override public boolean addAccountUpdateConsumer(Consumer<Collection<Account>> accountUpdateConsumer) { checkOpen(); Objects.requireNonNull(accountUpdateConsumer, "accountUpdateConsumer to subscribe cannot be null"); return true; }
@Override public boolean removeAccountUpdateConsumer(Consumer<Collection<Account>> accountUpdateConsumer) { checkOpen(); Objects.requireNonNull(accountUpdateConsumer, "accountUpdateConsumer to unsubscribe cannot be null"); return true; }
@Override public Account getAccountByName(String accountName) { checkOpen(); Objects.requireNonNull(accountName, "accountName cannot be null."); return UNKNOWN_ACCOUNT; }