Package com.cobber.fta.dates
Enum DateTimeParser.DateResolutionMode
- java.lang.Object
-
- java.lang.Enum<DateTimeParser.DateResolutionMode>
-
- com.cobber.fta.dates.DateTimeParser.DateResolutionMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DateTimeParser.DateResolutionMode>
- Enclosing class:
- DateTimeParser
public static enum DateTimeParser.DateResolutionMode extends java.lang.Enum<DateTimeParser.DateResolutionMode>
When we have ambiguity - should we prefer to conclude day first, month first or unspecified.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Auto
Auto will choose DayFirst or MonthFirst based on the Locale.DayFirst
In order to resolve ambiguity the day will be assumed to be first.MonthFirst
In order to resolve ambiguity the month will be assumed to be first.None
Result returned may have unbound elements, for example ??/??/yyyy.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DateTimeParser.DateResolutionMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DateTimeParser.DateResolutionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
None
public static final DateTimeParser.DateResolutionMode None
Result returned may have unbound elements, for example ??/??/yyyy.
-
DayFirst
public static final DateTimeParser.DateResolutionMode DayFirst
In order to resolve ambiguity the day will be assumed to be first.
-
MonthFirst
public static final DateTimeParser.DateResolutionMode MonthFirst
In order to resolve ambiguity the month will be assumed to be first.
-
Auto
public static final DateTimeParser.DateResolutionMode Auto
Auto will choose DayFirst or MonthFirst based on the Locale.
-
-
Method Detail
-
values
public static DateTimeParser.DateResolutionMode[] 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 (DateTimeParser.DateResolutionMode c : DateTimeParser.DateResolutionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateTimeParser.DateResolutionMode 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 namejava.lang.NullPointerException
- if the argument is null
-
-