public final class DatePattern extends LeafPattern<Date,Constraint<? super Date>>
| Modifier and Type | Field and Description |
|---|---|
static DateFormat |
ISO8601formatter
Formatter for ISO8601.
|
constraint| Constructor and Description |
|---|
DatePattern(Constraint<? super Date> c)
Creates an instance with a given constraint.
|
| Modifier and Type | Method and Description |
|---|---|
String |
name()
Returns the name of the pattern.
|
protected Date |
valueOf(String s)
Returns the typed equivalent of a leaf's value.
|
constraint, equals, hashCode, matches, prune, toStringidPattern, setIdPatternpublic static DateFormat ISO8601formatter
public DatePattern(Constraint<? super Date> c)
c - the constraintprotected Date valueOf(String s) throws Exception
valueOf in class LeafPattern<Date,Constraint<? super Date>>s - the valueExceptionpublic String name()
LeafPatternname in class LeafPattern<Date,Constraint<? super Date>>Copyright © 2017. All Rights Reserved.