T - Temporal type to use.public class PDTMask<T extends Temporal & Serializable> extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
PDTMask.ITemporalQuery<R> |
| Modifier | Constructor and Description |
|---|---|
protected |
PDTMask(String sPattern,
PDTMask.ITemporalQuery<T> aQuery) |
| Modifier and Type | Method and Description |
|---|---|
String |
getPattern() |
TemporalQuery<T> |
getQuery() |
static PDTMask<LocalDate> |
localDate(String sPattern) |
static PDTMask<LocalDateTime> |
localDateTime(String sPattern) |
static PDTMask<OffsetDateTime> |
offsetDateTime(String sPattern) |
String |
toString() |
static PDTMask<Year> |
year(String sPattern) |
static PDTMask<YearMonth> |
yearMonth(String sPattern) |
static PDTMask<ZonedDateTime> |
zonedDateTime(String sPattern) |
@Nonnull public TemporalQuery<T> getQuery()
@Nonnull public static PDTMask<ZonedDateTime> zonedDateTime(@Nonnull @Nonempty String sPattern)
@Nonnull public static PDTMask<OffsetDateTime> offsetDateTime(@Nonnull @Nonempty String sPattern)
@Nonnull public static PDTMask<LocalDateTime> localDateTime(@Nonnull @Nonempty String sPattern)
Copyright © 2014–2019 Philip Helger. All rights reserved.