Package com.targomo.client.api.enums
Enum Class Weekday
- All Implemented Interfaces:
Serializable,Comparable<Weekday>,java.lang.constant.Constable
Enum denoting Day of the week with int values for both monday->sunday and sunday->saturday.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic WeekdayfromIntMonSun(int day) Takes an integer value from 0-6 (inclusive) and returns a day of the week.static WeekdayfromIntSunMon(int day) Takes an integer value from 0-6 (inclusive) and returns a day of the week.static WeekdayfromString(String key) Get the GeometryType based on a key string if one of the three allowed types (Polygon, Multipolygon, Linestring)static WeekdayReturns the enum constant of this class with the specified name.static Weekday[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUNDAY
-
MONDAY
-
TUESDAY
-
WEDNESDAY
-
THURSDAY
-
FRIDAY
-
SATURDAY
-
-
Field Details
-
weekdaySunMon
public final int weekdaySunMon -
weekdayMonSun
public final int weekdayMonSun
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromString
Get the GeometryType based on a key string if one of the three allowed types (Polygon, Multipolygon, Linestring)- Parameters:
key- geometry type as a string. will be converted to all lowercase- Returns:
- GeometryType if one of the three allowed types
- Throws:
IllegalArgumentException- if the key is not one of the three allowed types
-
fromIntMonSun
Takes an integer value from 0-6 (inclusive) and returns a day of the week. Starts with Monday at 0 and ends with Sunday at 6- Parameters:
day- Int value 0-6 (inclusive)- Returns:
- Day of the week corresponding to the provided integer
- Throws:
IllegalArgumentException- if the number is outside the range 0-6 (inclusive)
-
fromIntSunMon
Takes an integer value from 0-6 (inclusive) and returns a day of the week. Starts with Sunday at 0 and ends with Saturday at 6- Parameters:
day- Int value 0-6 (inclusive)- Returns:
- Day of the week corresponding to the provided integer
- Throws:
IllegalArgumentException- if the number is outside the range 0-6 (inclusive)
-