com.fitbit.api.common.model.timeseries
Enum TimePeriod

java.lang.Object
  extended by java.lang.Enum<TimePeriod>
      extended by com.fitbit.api.common.model.timeseries.TimePeriod
All Implemented Interfaces:
Serializable, Comparable<TimePeriod>

public enum TimePeriod
extends Enum<TimePeriod>


Enum Constant Summary
INTRADAY
           
MAX
           
ONE_MONTH
           
ONE_WEEK
           
ONE_YEAR
           
SEVEN_DAYS
           
SIX_MONTHS
           
THIRTY_DAYS
           
THREE_MONTHS
           
 
Method Summary
static TimePeriod findByShortForm(String shortForm)
           
static TimePeriod findCeil(int days)
           
 String getDateFormat()
           
 int getDays()
           
 String getShortForm()
           
static TimePeriod valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TimePeriod[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.