Constructor and Description |
---|
Accounts() |
Accounts(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
Account |
add(Account source) |
void |
clear() |
Accounts |
copy()
This methods returns a shallow copy of the current object.
|
int |
count(Account.Status status) |
Accounts |
findAccountByStatus(Account.Status status) |
Accounts |
findAccountsByRole(Role role) |
Account |
getById(long id) |
Account |
getByIndex(int index) |
boolean |
isEmpty() |
boolean |
isNotEmpty() |
java.util.Iterator<Account> |
iterator() |
long |
lastId() |
void |
remove(Account account) |
Accounts |
reverse() |
int |
size() |
Accounts |
sortByCreationDate() |
Accounts |
sortByFullName() |
Accounts |
sortByFullNameReversed() |
Accounts |
sortById() |
Accounts |
sortByLastConnectionDate() |
Accounts |
sortByLastName() |
public void clear()
public Accounts copy()
public int count(Account.Status status)
status
- public Accounts findAccountByStatus(Account.Status status)
status
- public Account getById(long id)
id
- public Account getByIndex(int index)
id
- public boolean isEmpty()
public boolean isNotEmpty()
public java.util.Iterator<Account> iterator()
iterator
in interface java.lang.Iterable<Account>
public long lastId()
public void remove(Account account)
id
- public Accounts reverse()
public int size()
public Accounts sortByCreationDate()
public Accounts sortByFullName()
public Accounts sortByFullNameReversed()
public Accounts sortById()
public Accounts sortByLastConnectionDate()
public Accounts sortByLastName()