com.mebigfatguy.mysfstats
Enum GraphPeriod
java.lang.Object
java.lang.Enum<GraphPeriod>
com.mebigfatguy.mysfstats.GraphPeriod
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<GraphPeriod>
public enum GraphPeriod
- extends java.lang.Enum<GraphPeriod>
|
Method Summary |
java.lang.String |
getPropertyKey()
|
java.lang.String |
getUrlValue()
|
static GraphPeriod |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static GraphPeriod[] |
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 |
Week
public static final GraphPeriod Week
SixtyDays
public static final GraphPeriod SixtyDays
Year
public static final GraphPeriod Year
AllTime
public static final GraphPeriod AllTime
values
public static GraphPeriod[] 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 (GraphPeriod c : GraphPeriod.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static GraphPeriod valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
getUrlValue
public java.lang.String getUrlValue()
getPropertyKey
public java.lang.String getPropertyKey()
Copyright © 2009 MeBigFatGuy.com. All Rights Reserved.