|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.policy.bean.RoleCollection
public class RoleCollection
A read-only collection of roles.
Field Summary | |
---|---|
static RoleCollection |
EMPTY
Does not contain any roles. |
Constructor Summary | |
---|---|
RoleCollection(Collection<Role> roles)
Creates a role collection for the given roles. |
Method Summary | |
---|---|
static RoleCollection |
create(Collection<Role> roles)
Creates a new role collection for the specified roles. |
boolean |
equals(Object obj)
|
int |
hashCode()
|
boolean |
isEmpty()
Returns whether this collection is empty. |
Iterator<Role> |
iterator()
|
List<Role> |
toList()
Returns a list with the roles that this collection contains. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final RoleCollection EMPTY
Constructor Detail |
---|
public RoleCollection(Collection<Role> roles)
roles
- a Collection
of roles.Method Detail |
---|
public static RoleCollection create(Collection<Role> roles)
roles
- a Collection
of roles.
RoleCollection
containing exactly the specified roles.public boolean isEmpty()
true
if the collection contains no roles.public List<Role> toList()
List
of roles. The caller is free to modify the returned list.public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public Iterator<Role> iterator()
iterator
in interface Iterable<Role>
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:16:59
Copyright (c) 2002-2007 Ergon Informatik AG