Class CmsSerialDateUtil

java.lang.Object
org.opencms.acacia.shared.CmsSerialDateUtil

public final class CmsSerialDateUtil extends Object
Utility methods for the serial date widget.
  • Constructor Details

  • Method Details

    • 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(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.