Package org.opencms.acacia.shared
Class CmsSerialDateUtil
java.lang.Object
org.opencms.acacia.shared.CmsSerialDateUtil
Utility methods for the serial date widget.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
Returns the maximally allowed number of events in a series.static int
toIntWithDefault
(String value, int defaultValue) Parses int value and returns the provided default if the value can't be parsed.
-
Constructor Details
-
CmsSerialDateUtil
public CmsSerialDateUtil()
-
-
Method Details
-
getMaxEvents
Returns the maximally allowed number of events in a series.- Returns:
- the maximally allowed number of events in a series.
-
toIntWithDefault
Parses int value and returns the provided default if the value can't be parsed.- Parameters:
value
- the int to parse.defaultValue
- the default value.- Returns:
- the parsed int, or the default value if parsing fails.
-