Package com.sap.cloud.sdk.s4hana.types
Class Year
java.lang.Object
java.lang.Number
com.sap.cloud.sdk.s4hana.types.Year
- All Implemented Interfaces:
Serializable
,Comparable<Year>
Deprecated.
This module will be discontinued, along with its classes and methods.
Type Year.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Deprecated.int
Deprecated.double
Deprecated.boolean
Deprecated.float
Deprecated.static Year
fromString
(String str) Deprecated.Creates a new instance ofYear
from the given string.int
hashCode()
Deprecated.int
intValue()
Deprecated.long
Deprecated.toString()
Deprecated.Methods inherited from class java.lang.Number
byteValue, shortValue
-
Constructor Details
-
Year
public Year(int year) Deprecated.Creates a new instance ofYear
.- Parameters:
year
- The year.- Throws:
IllegalArgumentException
- If the given year is less than 1900.
-
-
Method Details
-
intValue
public int intValue()Deprecated. -
longValue
public long longValue()Deprecated. -
floatValue
public float floatValue()Deprecated.- Specified by:
floatValue
in classNumber
-
doubleValue
public double doubleValue()Deprecated.- Specified by:
doubleValue
in classNumber
-
toString
Deprecated. -
compareTo
Deprecated.- Specified by:
compareTo
in interfaceComparable<Year>
-
fromString
Deprecated.Creates a new instance ofYear
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
Deprecated. -
canEqual
Deprecated. -
hashCode
public int hashCode()Deprecated.
-