Class PermissionRange

    • Field Detail

      • min

        protected int min
      • max

        protected int max
    • Constructor Detail

      • PermissionRange

        protected PermissionRange()
      • PermissionRange

        public PermissionRange​(String name,
                               int min,
                               int max)
    • Method Detail

      • getName

        public String getName()
      • isLabel

        public boolean isLabel()
      • getLabel

        public String getLabel()
      • getMin

        public int getMin()
      • getMax

        public int getMax()
      • contains

        public boolean contains​(int value)
        True if the value is within the range.
      • squash

        public int squash​(int value)
        Normalize the value to fit within the bounds of the range.