com.atlassian.jira.web.util
Enum OutlookDate.SmartFormatterModes

java.lang.Object
  extended by java.lang.Enum<OutlookDate.SmartFormatterModes>
      extended by com.atlassian.jira.web.util.OutlookDate.SmartFormatterModes
All Implemented Interfaces:
Serializable, Comparable<OutlookDate.SmartFormatterModes>
Enclosing class:
OutlookDate

public static enum OutlookDate.SmartFormatterModes
extends Enum<OutlookDate.SmartFormatterModes>

Modes used by OutlookDate.formatSmart(java.util.Date, com.atlassian.jira.web.util.OutlookDate.SmartFormatterModes)


Enum Constant Summary
HIDE_TIME
          never show time information
SHOW_TIME
          always show time information
SHOW_TIME_ONLY_ON_DAYS
          shows times only on the days of the week (i.e.
 
Method Summary
static OutlookDate.SmartFormatterModes valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OutlookDate.SmartFormatterModes[] 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

SHOW_TIME

public static final OutlookDate.SmartFormatterModes SHOW_TIME
always show time information


HIDE_TIME

public static final OutlookDate.SmartFormatterModes HIDE_TIME
never show time information


SHOW_TIME_ONLY_ON_DAYS

public static final OutlookDate.SmartFormatterModes SHOW_TIME_ONLY_ON_DAYS
shows times only on the days of the week (i.e. if printing "Last Wednesday" or "Tomorrow" but not "11/1/1984")

Method Detail

values

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

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

valueOf

public static OutlookDate.SmartFormatterModes 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


Copyright © 2002-2010 Atlassian. All Rights Reserved.