Enum Class HinduRule

java.lang.Object
java.lang.Enum<HinduRule>
net.time4j.calendar.hindu.HinduRule
All Implemented Interfaces:
Serializable, Comparable<HinduRule>, java.lang.constant.Constable

public enum HinduRule extends Enum<HinduRule>

The Hindu calendar variants use a set of different algorithmic rules how to determine the start of solar month in relation to the zodiacal position of the sun (samkranti).

The rule also affects the naming of solar months. For example: Madras and the Malayali-rule prefer rasi names.

Since:
5.6
Author:
Meno Hochschild
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The amanta scheme is a lunisolar calendar based on the new moon cycle and starting the year with the month Chaitra.
    This special amanta scheme is a lunisolar calendar based on the new moon cycle and starting the year with the month Ashadha.
    This special amanta scheme is a lunisolar calendar based on the new moon cycle and starting the year with the month Kartika.
    A solar calendar which uses midnight at end of current day as critical time.
    A solar calendar which uses the seasonal time of 12 minutes after 1 PM which corresponds to 3/5 th of the time period between sunrise and sunset in this definition.
    A solar calendar which uses the sunrise of following morning as critical time.
    The purnimanta scheme is a lunisolar calendar based on the full moon cycle.
    A solar calendar which uses the sunset of current day as critical time.
  • Method Summary

    Modifier and Type
    Method
    Description
    static HinduRule
    valueOf​(String name)
    Returns the enum constant of this class with the specified name.
    static HinduRule[]
    Returns an array containing the constants of this enum class, in the order they are declared.
    Creates the associated and customizable variant of Hindu calendar.

    Methods inherited from class java.lang.Enum

    compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ORISSA

      public static final HinduRule ORISSA

      A solar calendar which uses the sunrise of following morning as critical time.

      The default era is SAKA.

    • TAMIL

      public static final HinduRule TAMIL

      A solar calendar which uses the sunset of current day as critical time.

      Mainly used in Tamil Nadu region. The default era is SAKA.

    • MALAYALI

      public static final HinduRule MALAYALI

      A solar calendar which uses the seasonal time of 12 minutes after 1 PM which corresponds to 3/5 th of the time period between sunrise and sunset in this definition.

      Mainly used in Kerala region. The default era is KOLLAM. The months usually use rasi names unless the format attribute HinduMonth.RASI_NAMES is used together with the format class ChronoFormatter.

    • MADRAS

      public static final HinduRule MADRAS

      A solar calendar which uses midnight at end of current day as critical time.

      Mainly used in Madras (Chennai). The default era is SAKA. The month names are handled in a similar way to the Malayali rule.

    • AMANTA

      public static final HinduRule AMANTA

      The amanta scheme is a lunisolar calendar based on the new moon cycle and starting the year with the month Chaitra.

      The default era is HinduEra.VIKRAMA. Used mainly in Maharashtra, Karnataka, Kerala, Tamilnadu, Andhra pradesh, Telangana, and West Bengal. Gujarat uses special Amanta-versions which differs in when the year starts.

      See Also:
      AMANTA_ASHADHA, AMANTA_KARTIKA
    • AMANTA_ASHADHA

      public static final HinduRule AMANTA_ASHADHA

      This special amanta scheme is a lunisolar calendar based on the new moon cycle and starting the year with the month Ashadha.

      The default era is HinduEra.VIKRAMA. Used in some parts of Gujarat.

      See Also:
      AMANTA_KARTIKA
    • AMANTA_KARTIKA

      public static final HinduRule AMANTA_KARTIKA

      This special amanta scheme is a lunisolar calendar based on the new moon cycle and starting the year with the month Kartika.

      The default era is HinduEra.VIKRAMA. Used in Gujarat.

      See Also:
      AMANTA_ASHADHA
    • PURNIMANTA

      public static final HinduRule PURNIMANTA

      The purnimanta scheme is a lunisolar calendar based on the full moon cycle.

      It is shifted for about two weeks compared with the amanta scheme. The first days (in the waning fortnight) from full moon to new moon have the numbers 16, 17, ..., 30 and then the numbers 1, 2, ..., 15 (waxing fortnight). Lost days and leap days are possible so users cannot expect continuous numbering sequences.

  • Method Details

    • values

      public static HinduRule[] 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 HinduRule 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
    • variant

      public HinduVariant variant()

      Creates the associated and customizable variant of Hindu calendar.

      Returns:
      HinduVariant