Package com.google.gerrit.entities
Class PermissionRange.WithDefaults
- java.lang.Object
-
- com.google.gerrit.entities.PermissionRange
-
- com.google.gerrit.entities.PermissionRange.WithDefaults
-
- All Implemented Interfaces:
Comparable<PermissionRange>
- Enclosing class:
- PermissionRange
public static class PermissionRange.WithDefaults extends PermissionRange
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.gerrit.entities.PermissionRange
PermissionRange.WithDefaults
-
-
Field Summary
Fields Modifier and Type Field Description protected int
defaultMax
protected int
defaultMin
-
Fields inherited from class com.google.gerrit.entities.PermissionRange
max, min, name
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WithDefaults()
WithDefaults(String name, int min, int max, int defMin, int defMax)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDefaultMax()
int
getDefaultMin()
int
getRangeSize()
List<Integer>
getValuesAsList()
void
setDefaultRange(int min, int max)
-
-
-
Constructor Detail
-
WithDefaults
protected WithDefaults()
-
WithDefaults
public WithDefaults(String name, int min, int max, int defMin, int defMax)
-
-
Method Detail
-
getDefaultMin
public int getDefaultMin()
-
getDefaultMax
public int getDefaultMax()
-
setDefaultRange
public void setDefaultRange(int min, int max)
-
getValuesAsList
public List<Integer> getValuesAsList()
- Returns:
- all values between
PermissionRange.getMin()
andPermissionRange.getMax()
-
getRangeSize
public int getRangeSize()
- Returns:
- number of values between
PermissionRange.getMin()
andPermissionRange.getMax()
-
-