| Modifier and Type | Field and Description |
|---|---|
| public static final Season | |
| private final String | name
Hides java. |
| private final int | |
| public static final Season | |
| public static final Season | |
| public static final Season |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public int | Returns: number of the season in the YearReturns the number of the Season: SPRING -> 21, SUMMER -> 22 etc. |
| public static Optional | |
| public static Optional | |
| public static Optional | |
| pack-priv static Optional | Returns: the corresponding season instance, empty if input is not in German forma String that represents a season in German form value)Parses a season having the string in German standard form |
| public static Season | |
| public static Season[] |
| AUTUMN | back to summary |
|---|---|
| public static final Season AUTUMN | |
| name | back to summary |
|---|---|
| private final String name Hides java. | |
| number | back to summary |
|---|---|
| private final int number | |
| SPRING | back to summary |
|---|---|
| public static final Season SPRING | |
| SUMMER | back to summary |
|---|---|
| public static final Season SUMMER | |
| WINTER | back to summary |
|---|---|
| public static final Season WINTER | |
| Season | back to summary |
|---|---|
| private Season(String name, int number) | |
| getName | back to summary |
|---|---|
| public String getName() Returns the name of the long in unabbreviated english.
| |
| getNumber | back to summary |
|---|---|
| public int getNumber() Returns the number of the Season: SPRING -> 21, SUMMER -> 22 etc.
| |
| getSeasonByName | back to summary |
|---|---|
| public static Optional Find season by name case-insensitive. If no matching season is found, then an empty Optional is returned.
| |
| getSeasonByNumber | back to summary |
|---|---|
| public static Optional Find season by number. If the number is not in the valid range, then an empty Optional is returned.
| |
| parse | back to summary |
|---|---|
| public static Optional This method accepts three types of seasons:
| |
| parseGermanSeason | back to summary |
|---|---|
| pack-priv static Optional Parses a season having the string in German standard form | |
| valueOf | back to summary |
|---|---|
| public static Season valueOf(String name) | |
| values | back to summary |
|---|---|
| public static Season[] values() | |