Constructor and Description |
---|
RightSet() |
RightSet(Collection<? extends Object> c) |
RightSet(int... rightValue) |
RightSet(int rightValues)
Deprecated.
use
RightSet(int...) or fromBitMask(int) instead |
RightSet(RightSet rs) |
RightSet(String rightValues) |
Modifier and Type | Method and Description |
---|---|
void |
addAll(IRightSet rightSet)
Add all rights to the right set
|
boolean |
equals(Object obj) |
static RightSet |
fromBitMask(int rightValues)
Convert old rightset bitmask to a RightSet
|
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
|
String |
toString() |
void |
unsetRight(int rightValue)
Remove right to right set
|
public RightSet()
public RightSet(RightSet rs)
public RightSet(Collection<? extends Object> c)
public RightSet(int... rightValue)
@Deprecated public RightSet(int rightValues)
RightSet(int...)
or fromBitMask(int)
insteadRightSet(int...)
insteadrightValues
- bitset of the rights to setpublic RightSet(String rightValues)
public static RightSet fromBitMask(int rightValues)
rightValues
- bitset of the rights to setpublic boolean hasAllRights(IRightSet rightSet)
IRightSet
hasAllRights
in interface IRightSet
public boolean hasRight(int rightValue)
IRightSet
public void setRight(int rightValue)
IRightSet
public void addAll(IRightSet rightSet)
IRightSet
public void removeAll(IRightSet rightSet)
IRightSet
public void retainAll(IRightSet rightSet)
IRightSet
public int toInt()
IRightSet
public void unsetRight(int rightValue)
IRightSet
unsetRight
in interface IRightSet
public int[] toIntArray()
IRightSet
toIntArray
in interface IRightSet
public Iterator<Integer> iterator()
IRightSet
public int size()
IRightSet
public Collection<Integer> toCollection()
IRightSet
toCollection
in interface IRightSet