public interface IRightSet
Modifier and Type | Method and Description |
---|---|
void |
addAll(IRightSet rightSet)
Add all rights to the right set
|
boolean |
hasAllRights(IRightSet rightSet)
Whether this right set contains all rights from specified right set
|
boolean |
hasRight(int rightValue)
Whether this right set contains specified right
|
Iterator<Integer> |
iterator()
Returns iterator over Integers values of rights containing in this right set
|
void |
removeAll(IRightSet rightSet)
Removes all rights from the specified right set
|
void |
retainAll(IRightSet rightSet)
Retains all rights from the specified right set
|
void |
setRight(int rightValue)
Add right to right set
|
int |
size()
How many rights this set contains
|
Collection<Integer> |
toCollection()
Returns right set as collection
|
int |
toInt()
Converts right set to int bitmask.
|
int[] |
toIntArray()
Converts to int[] of right values
|
void |
unsetRight(int rightValue)
Remove right to right set
|
boolean hasRight(int rightValue)
rightValue
- boolean hasAllRights(IRightSet rightSet)
rightSet
- void addAll(IRightSet rightSet)
rightSet
- void removeAll(IRightSet rightSet)
rightSet
- void retainAll(IRightSet rightSet)
rightSet
- void setRight(int rightValue)
rightValue
- void unsetRight(int rightValue)
rightValue
- int toInt()
int[] toIntArray()
int size()
Collection<Integer> toCollection()