Enum Class Quarter

java.lang.Object
java.lang.Enum<Quarter>
org.springframework.modulith.moments.Quarter
All Implemented Interfaces:
Serializable, Comparable<Quarter>, Constable

public enum Quarter extends Enum<Quarter>
A logical Quarter of the year.
Author:
Oliver Drotbohm
  • Enum Constant Details

    • Q1

      public static final Quarter Q1
    • Q2

      public static final Quarter Q2
    • Q3

      public static final Quarter Q3
    • Q4

      public static final Quarter Q4
  • Method Details

    • values

      public static Quarter[] 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 Quarter 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
    • getStart

      public MonthDay getStart()
      Returns the start MonthDay.
      Returns:
      will never be null.
    • getEnd

      public MonthDay getEnd()
      Returns the end MonthDay.
      Returns:
      will never be null.
    • next

      Quarter next()
      Returns the next logical Quarter.
      Returns:
      will never be null.