Class CmsSerialDateUtil


  • public final class CmsSerialDateUtil
    extends java.lang.Object
    Utility methods for the serial date widget.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.