Class CronTimeParser

java.lang.Object
me.hsgamer.hscore.crontime.CronTimeParser

public class CronTimeParser extends Object
The cron time parser
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<com.cronutils.model.Cron>
    parse(@NotNull com.cronutils.model.CronType type, @NotNull String... cronStrings)
    Create a new cron list from the cron string array.
    static List<com.cronutils.model.Cron>
    parse(@NotNull com.cronutils.model.CronType type, @NotNull List<String> cronStrings)
    Create a new cron list from the cron string list.
    static List<com.cronutils.model.Cron>
    parse(@NotNull com.cronutils.model.definition.CronDefinition definition, @NotNull String... cronStrings)
    Create a new cron list from the cron string array.
    static List<com.cronutils.model.Cron>
    parse(@NotNull com.cronutils.model.definition.CronDefinition definition, @NotNull List<String> cronStrings)
    Create a new cron list from the cron string list.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CronTimeParser

      public CronTimeParser()
  • Method Details

    • parse

      public static List<com.cronutils.model.Cron> parse(@NotNull @NotNull com.cronutils.model.definition.CronDefinition definition, @NotNull @NotNull List<String> cronStrings)
      Create a new cron list from the cron string list. The invalid cron strings will be ignored.
      Parameters:
      definition - the cron definition
      cronStrings - the cron string list
    • parse

      public static List<com.cronutils.model.Cron> parse(@NotNull @NotNull com.cronutils.model.definition.CronDefinition definition, @NotNull @NotNull String... cronStrings)
      Create a new cron list from the cron string array. The invalid cron strings will be ignored.
      Parameters:
      definition - the cron definition
      cronStrings - the cron string array
    • parse

      public static List<com.cronutils.model.Cron> parse(@NotNull @NotNull com.cronutils.model.CronType type, @NotNull @NotNull List<String> cronStrings)
      Create a new cron list from the cron string list. The invalid cron strings will be ignored.
      Parameters:
      type - the cron type
      cronStrings - the cron string list
      Returns:
      the cron list
    • parse

      public static List<com.cronutils.model.Cron> parse(@NotNull @NotNull com.cronutils.model.CronType type, @NotNull @NotNull String... cronStrings)
      Create a new cron list from the cron string array. The invalid cron strings will be ignored.
      Parameters:
      type - the cron type
      cronStrings - the cron string array
      Returns:
      the cron list