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
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.entities.PermissionRange
PermissionRange.WithDefaults
-
Field Summary
FieldsFields inherited from class com.google.gerrit.entities.PermissionRange
max, min, name
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
WithDefaults
(String name, int min, int max, int defMin, int defMax) -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
Returns number of values betweenPermissionRange.getMin()
andPermissionRange.getMax()
Returns all values betweenPermissionRange.getMin()
andPermissionRange.getMax()
void
setDefaultRange
(int min, int max)
-
Field Details
-
defaultMin
protected int defaultMin -
defaultMax
protected int defaultMax
-
-
Constructor Details
-
WithDefaults
protected WithDefaults() -
WithDefaults
-
-
Method Details
-
getDefaultMin
public int getDefaultMin() -
getDefaultMax
public int getDefaultMax() -
setDefaultRange
public void setDefaultRange(int min, int max) -
getValuesAsList
Returns all values betweenPermissionRange.getMin()
andPermissionRange.getMax()
-
getRangeSize
public int getRangeSize()Returns number of values betweenPermissionRange.getMin()
andPermissionRange.getMax()
-