com.esri.core.map
Enum TimeOptions.Units

java.lang.Object
  extended by java.lang.Enum<TimeOptions.Units>
      extended by com.esri.core.map.TimeOptions.Units
All Implemented Interfaces:
Serializable, Comparable<TimeOptions.Units>
Enclosing class:
TimeOptions

public static enum TimeOptions.Units
extends Enum<TimeOptions.Units>

Units for time options.

Since:
10.1.1

Enum Constant Summary
Centuries
           
Days
           
Decades
           
Hours
           
Milliseconds
           
Minutes
           
Months
           
Seconds
           
Unknown
           
Weeks
           
Years
           
 
Method Summary
static TimeOptions.Units fromString(String v)
          Gets a style from a string.
 String getValue()
          Gets the value.
 String toString()
           
static TimeOptions.Units valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TimeOptions.Units[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Unknown

public static final TimeOptions.Units Unknown

Centuries

public static final TimeOptions.Units Centuries

Decades

public static final TimeOptions.Units Decades

Years

public static final TimeOptions.Units Years

Months

public static final TimeOptions.Units Months

Weeks

public static final TimeOptions.Units Weeks

Days

public static final TimeOptions.Units Days

Hours

public static final TimeOptions.Units Hours

Minutes

public static final TimeOptions.Units Minutes

Seconds

public static final TimeOptions.Units Seconds

Milliseconds

public static final TimeOptions.Units Milliseconds
Method Detail

values

public static TimeOptions.Units[] 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 (TimeOptions.Units c : TimeOptions.Units.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TimeOptions.Units 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

getValue

public String getValue()
Gets the value.

Returns:
the value
Since:
10.1.1

toString

public String toString()
Overrides:
toString in class Enum<TimeOptions.Units>
Since:
10.1.1

fromString

public static TimeOptions.Units fromString(String v)
Gets a style from a string.

Parameters:
v - the string
Returns:
the marker style
Since:
10.1.1


Copyright © 2012. All Rights Reserved.