Class GranularityChoice
java.lang.Object
energy.eddie.regionconnector.shared.validation.GranularityChoice
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfind(Granularity min, Granularity max) findAll(Granularity min, Granularity max) static booleanisBetween(Granularity current, Granularity min, Granularity max) Returns true if the minute granularity is between the min and max granularities.
-
Constructor Details
-
GranularityChoice
-
-
Method Details
-
find
-
isBetween
Returns true if the minute granularity is between the min and max granularities. Is inclusive- Parameters:
current- the granularity that is checkedmin- the lower acceptable granularitymax- the higher acceptable granularity- Returns:
- true if the current granularity is between the min and max, otherwise false
-
findAll
-