public static enum DateDetection.EndianStyle extends java.lang.Enum<DateDetection.EndianStyle> implements DateDetection.StyleParser
Modifier and Type | Field and Description |
---|---|
private DateDetection.EntityType |
firstEntity |
DateDetection.LanguageRecognition |
languageParser |
private java.util.regex.Pattern |
pattern |
private DateDetection.EntityType |
secondEntity |
private DateDetection.EntityType |
thirdEntity |
Modifier and Type | Method and Description |
---|---|
java.util.LinkedHashSet<java.util.Date> |
parse(java.lang.String text)
get all dates in the text
|
static DateDetection.EndianStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DateDetection.EndianStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateDetection.EndianStyle YMD
public static final DateDetection.EndianStyle DMY
public static final DateDetection.EndianStyle MDY
private final java.util.regex.Pattern pattern
private final DateDetection.EntityType firstEntity
private final DateDetection.EntityType secondEntity
private final DateDetection.EntityType thirdEntity
public final DateDetection.LanguageRecognition languageParser
public static DateDetection.EndianStyle[] values()
for (DateDetection.EndianStyle c : DateDetection.EndianStyle.values()) System.out.println(c);
public static DateDetection.EndianStyle valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.util.LinkedHashSet<java.util.Date> parse(java.lang.String text)
parse
in interface DateDetection.StyleParser
text
-