Package org.opencms.acacia.shared
Class CmsSerialDateUtil
- java.lang.Object
-
- org.opencms.acacia.shared.CmsSerialDateUtil
-
public final class CmsSerialDateUtil extends java.lang.Object
Utility methods for the serial date widget.
-
-
Constructor Summary
Constructors Constructor Description CmsSerialDateUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getMaxEvents()
Returns the maximally allowed number of events in a series.static int
toIntWithDefault(java.lang.String value, int defaultValue)
Parses int value and returns the provided default if the value can't be parsed.
-
-
-
Constructor Detail
-
CmsSerialDateUtil
public CmsSerialDateUtil()
-
-
Method Detail
-
getMaxEvents
public static int getMaxEvents()
Returns the maximally allowed number of events in a series.- Returns:
- the maximally allowed number of events in a series.
-
toIntWithDefault
public static int toIntWithDefault(java.lang.String value, int defaultValue)
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.
-
-