Constructor and Description |
---|
Roles() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
contains(int id) |
Role |
getById(int roleId) |
Role |
getByName(java.lang.String name) |
boolean |
isEmpty() |
boolean |
isNotEmpty() |
java.util.Iterator<Role> |
iterator() |
int |
nextFreeId() |
Role |
setRole(Role role) |
int |
size() |
Roles |
sortedList() |
java.util.List<Role> |
toList() |
void |
unsetRole(int roleId) |
void |
unsetRole(Role role) |
public void clear()
public boolean contains(int id)
id
- public Role getById(int roleId)
id
- public Role getByName(java.lang.String name)
name
- public boolean isEmpty()
public boolean isNotEmpty()
public java.util.Iterator<Role> iterator()
iterator
in interface java.lang.Iterable<Role>
public int nextFreeId()
public int size()
public Roles sortedList()
public java.util.List<Role> toList()
public void unsetRole(int roleId)
role
- public void unsetRole(Role role)
role
-