Enum Class Interval

java.lang.Object
java.lang.Enum<Interval>
net.osslabz.crypto.Interval
All Implemented Interfaces:
Serializable, Comparable<Interval>, Constable

public enum Interval extends Enum<Interval>
  • Enum Constant Details

    • PT1M

      public static final Interval PT1M
    • PT5M

      public static final Interval PT5M
    • PT15M

      public static final Interval PT15M
    • PT1H

      public static final Interval PT1H
    • PT12H

      public static final Interval PT12H
    • PT24H

      public static final Interval PT24H
  • Method Details

    • values

      public static Interval[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Interval valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDuration

      public Duration getDuration()
    • ofDuration

      public static Interval ofDuration(Duration duration)
    • ofMillis

      public static Interval ofMillis(Long millis)