Class NewYearStrategy

java.lang.Object
net.time4j.history.NewYearStrategy

public final class NewYearStrategy extends Object

Determines the begin of a given historic year.

Since:
3.14/4.11
Author:
Meno Hochschild
See Also:
NewYearRule.until(int)
  • Method Details

    • and

      public NewYearStrategy and(NewYearStrategy next)

      Combines this and given strategy to a new strategy.

      Parameters:
      next - strategy which chronologically follows after this strategy
      Returns:
      combined stragegy
      Throws:
      IllegalArgumentException - in case of multiple overlapping rules
      Since:
      3.14/4.11
    • equals

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

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

      public String toString()

      For debugging purposes.

      Overrides:
      toString in class Object
      Returns:
      description of content