Enum Class ScmPeriod

java.lang.Object
java.lang.Enum<ScmPeriod>
com.hello2morrow.sonargraph.api.ScmPeriod
All Implemented Interfaces:
IScmPeriod, Serializable, Comparable<ScmPeriod>, Constable

public enum ScmPeriod extends Enum<ScmPeriod> implements IScmPeriod
  • Enum Constant Details

    • _30_DAYS

      public static final ScmPeriod _30_DAYS
    • _90_DAYS

      public static final ScmPeriod _90_DAYS
    • _365_DAYS

      public static final ScmPeriod _365_DAYS
    • _2_YEARS

      public static final ScmPeriod _2_YEARS
    • _5_YEARS

      public static final ScmPeriod _5_YEARS
  • Method Details

    • values

      public static ScmPeriod[] 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 ScmPeriod 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
    • getNumberOfDays

      public int getNumberOfDays()
      Specified by:
      getNumberOfDays in interface IScmPeriod