Interface IRightSet
- All Known Implementing Classes:
RightSet
public interface IRightSet
Class IRightSet which allows manipulations of expandable right sets
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add all rights to the right setboolean
hasAllRights
(IRightSet rightSet) Whether this right set contains all rights from specified right setboolean
hasRight
(int rightValue) Whether this right set contains specified rightiterator()
Returns iterator over Integers values of rights containing in this right setvoid
Removes all rights from the specified right setvoid
Retains all rights from the specified right setvoid
setRight
(int rightValue) Add right to right setint
size()
How many rights this set containsReturns right set as collectionint
toInt()
Converts right set to int bitmask.int[]
Converts to int[] of right valuesvoid
unsetRight
(int rightValue) Remove right to right set
-
Method Details
-
hasRight
boolean hasRight(int rightValue) Whether this right set contains specified right- Parameters:
rightValue
-- Returns:
-
hasAllRights
Whether this right set contains all rights from specified right set- Parameters:
rightSet
-- Returns:
-
addAll
Add all rights to the right set- Parameters:
rightSet
-
-
removeAll
Removes all rights from the specified right set- Parameters:
rightSet
-
-
retainAll
Retains all rights from the specified right set- Parameters:
rightSet
-
-
setRight
void setRight(int rightValue) Add right to right set- Parameters:
rightValue
-
-
unsetRight
void unsetRight(int rightValue) Remove right to right set- Parameters:
rightValue
-
-
toInt
int toInt()Converts right set to int bitmask. This is compatibility method only first 30 rights will be present (those that fitst 30 bits of int excluding sign bit)- Returns:
-
toIntArray
int[] toIntArray()Converts to int[] of right values- Returns:
-
size
int size()How many rights this set contains- Returns:
-
toCollection
Collection<Integer> toCollection()Returns right set as collection- Returns:
-
iterator
Returns iterator over Integers values of rights containing in this right set- Returns:
-