Class Year

java.lang.Object
java.lang.Number
com.sap.cloud.sdk.s4hana.types.Year
All Implemented Interfaces:
Serializable, Comparable<Year>

@Deprecated public class Year extends Number implements Comparable<Year>
Deprecated.
This module will be discontinued, along with its classes and methods.
Type Year.
See Also:
  • Constructor Details

    • Year

      public Year(int year)
      Deprecated.
      Creates a new instance of Year.
      Parameters:
      year - The year.
      Throws:
      IllegalArgumentException - If the given year is less than 1900.
  • Method Details

    • intValue

      public int intValue()
      Deprecated.
      Specified by:
      intValue in class Number
    • longValue

      public long longValue()
      Deprecated.
      Specified by:
      longValue in class Number
    • floatValue

      public float floatValue()
      Deprecated.
      Specified by:
      floatValue in class Number
    • doubleValue

      public double doubleValue()
      Deprecated.
      Specified by:
      doubleValue in class Number
    • toString

      @Nonnull public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(@Nonnull Year other)
      Deprecated.
      Specified by:
      compareTo in interface Comparable<Year>
    • fromString

      @Nonnull public static Year fromString(@Nonnull String str) throws NumberFormatException
      Deprecated.
      Creates a new instance of Year from the given string.
      Parameters:
      str - The string to parse.
      Returns:
      A new instance of Year.
      Throws:
      NumberFormatException - If the given string cannot be parsed.
      IllegalArgumentException - If the given year is less than 1900.
    • equals

      public boolean equals(@Nullable Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Deprecated.
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object