Class Tabot

java.lang.Object
net.time4j.calendar.Tabot
All Implemented Interfaces:
Comparable<Tabot>

public final class Tabot extends Object implements Comparable<Tabot>
Used in Ethiopian calendar for associating the day of month with a name.
Since:
3.11/4.8
Author:
Meno Hochschild
  • Method Details

    • asList

      public static List<Tabot> asList()

      Returns an immutable list of all available tabots.

      Returns:
      unmodifiable list of available tabots
      Since:
      3.11/4.8
    • of

      public static Tabot of(int dayOfMonth)

      Yields an instance for given day of month.

      Parameters:
      dayOfMonth - tabot index in range 1-30
      Returns:
      cached Tabot
      Throws:
      IllegalArgumentException - if the argument is out of range 1-30
      Since:
      3.11/4.8
    • getDayOfMonth

      public int getDayOfMonth()

      Yields the associated day-of-month.

      Returns:
      int
      Since:
      3.11/4.8
    • getDisplayName

      public String getDisplayName(Locale locale)

      Determines either an Amharic translation of this instance or a latin transscription.

      Parameters:
      locale - language setting
      Returns:
      descriptive text (never null)
      Since:
      3.11/4.8
    • compareTo

      public int compareTo(Tabot other)
      Specified by:
      compareTo in interface Comparable<Tabot>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object