Enum EGpsWeekDays
- java.lang.Object
-
- java.lang.Enum<EGpsWeekDays>
-
- org.hortonmachine.gears.io.las.utils.EGpsWeekDays
-
- All Implemented Interfaces:
Serializable,Comparable<EGpsWeekDays>
public enum EGpsWeekDays extends Enum<EGpsWeekDays>
A simple enumeration of the days of the week.- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EGpsWeekDaysgetDay4Seconds(double gpsSecondsofWeek)longgetFromSeconds()intgetIndex()longgetToSeconds()static EGpsWeekDaysvalueOf(String name)Returns the enum constant of this type with the specified name.static EGpsWeekDays[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUNDAY
public static final EGpsWeekDays SUNDAY
-
MONDAY
public static final EGpsWeekDays MONDAY
-
TUESDAY
public static final EGpsWeekDays TUESDAY
-
WEDNESDAY
public static final EGpsWeekDays WEDNESDAY
-
THURSDAY
public static final EGpsWeekDays THURSDAY
-
FRIDAY
public static final EGpsWeekDays FRIDAY
-
SATURDAY
public static final EGpsWeekDays SATURDAY
-
-
Method Detail
-
values
public static EGpsWeekDays[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EGpsWeekDays c : EGpsWeekDays.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EGpsWeekDays valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getIndex
public int getIndex()
-
getFromSeconds
public long getFromSeconds()
-
getToSeconds
public long getToSeconds()
-
getDay4Seconds
public static EGpsWeekDays getDay4Seconds(double gpsSecondsofWeek)
-
-