Interface IRightSet

All Known Implementing Classes:
RightSet

public interface IRightSet
Class IRightSet which allows manipulations of expandable right sets
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAll(IRightSet rightSet)
    Add all rights to the right set
    boolean
    Whether this right set contains all rights from specified right set
    boolean
    hasRight(int rightValue)
    Whether this right set contains specified right
    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
    How many rights this set contains
    Returns right set as collection
    int
    Converts right set to int bitmask.
    int[]
    Converts to int[] of right values
    void
    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

      boolean hasAllRights(IRightSet rightSet)
      Whether this right set contains all rights from specified right set
      Parameters:
      rightSet -
      Returns:
    • addAll

      void addAll(IRightSet rightSet)
      Add all rights to the right set
      Parameters:
      rightSet -
    • removeAll

      void removeAll(IRightSet rightSet)
      Removes all rights from the specified right set
      Parameters:
      rightSet -
    • retainAll

      void retainAll(IRightSet rightSet)
      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

      Iterator<Integer> iterator()
      Returns iterator over Integers values of rights containing in this right set
      Returns: