com.fitbit.api.common.model.timeseries
Enum TimePeriod
java.lang.Object
java.lang.Enum<TimePeriod>
com.fitbit.api.common.model.timeseries.TimePeriod
- All Implemented Interfaces:
- Serializable, Comparable<TimePeriod>
public enum TimePeriod
- extends Enum<TimePeriod>
INTRADAY
public static final TimePeriod INTRADAY
SEVEN_DAYS
public static final TimePeriod SEVEN_DAYS
THIRTY_DAYS
public static final TimePeriod THIRTY_DAYS
ONE_WEEK
public static final TimePeriod ONE_WEEK
ONE_MONTH
public static final TimePeriod ONE_MONTH
THREE_MONTHS
public static final TimePeriod THREE_MONTHS
SIX_MONTHS
public static final TimePeriod SIX_MONTHS
ONE_YEAR
public static final TimePeriod ONE_YEAR
MAX
public static final TimePeriod MAX
values
public static TimePeriod[] 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 (TimePeriod c : TimePeriod.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TimePeriod 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 name
NullPointerException - if the argument is null
findByShortForm
public static TimePeriod findByShortForm(String shortForm)
findCeil
public static TimePeriod findCeil(int days)
getDays
public int getDays()
getDateFormat
public String getDateFormat()
getShortForm
public String getShortForm()
Copyright © 2012. All Rights Reserved.