public class DateSwap extends StringSwap<Date>
Dates
to Strings
.
DateSwap.ToString
- To Strings
using the Date.toString()
method.
DateSwap.ISO8601DT
- To ISO8601 date-time strings.
DateSwap.ISO8601DTZ
- Same as DateSwap.ISO8601DT
, except always serializes in GMT.
DateSwap.ISO8601DTP
- Same as DateSwap.ISO8601DT
except with millisecond precision.
DateSwap.ISO8601DTPZ
- Same as DateSwap.ISO8601DTZ
except with millisecond precision.
DateSwap.RFC2822DT
- To RFC2822 date-time strings.
DateSwap.RFC2822DTZ
- Same as DateSwap.RFC2822DT
, except always serializes in GMT.
DateSwap.RFC2822D
- To RFC2822 date strings.
DateSwap.DateTimeSimple
- To simple DateSwap.DateSimple
- To simple DateSwap.TimeSimple
- To simple DateSwap.DateFull
- To DateFormat.FULL
date strings.
DateSwap.DateLong
- To DateFormat.LONG
date strings.
DateSwap.DateMedium
- To DateFormat.MEDIUM
date strings.
DateSwap.DateShort
- To DateFormat.SHORT
date strings.
DateSwap.TimeFull
- To DateFormat.FULL
time strings.
DateSwap.TimeLong
- To DateFormat.LONG
time strings.
DateSwap.TimeMedium
- To DateFormat.MEDIUM
time strings.
DateSwap.TimeShort
- To DateFormat.SHORT
time strings.
DateSwap.DateTimeFull
- To DateFormat.FULL
date-time strings.
DateSwap.DateTimeLong
- To DateFormat.LONG
date-time strings.
DateSwap.DateTimeMedium
- To DateFormat.MEDIUM
date-time strings.
DateSwap.DateTimeShort
- To DateFormat.SHORT
date-time strings.
Modifier and Type | Class and Description |
---|---|
static class |
DateSwap.DateFull
Transforms
Dates to DateFormat.FULL date strings. |
static class |
DateSwap.DateLong
Transforms
Dates to DateFormat.LONG date strings. |
static class |
DateSwap.DateMedium
Transforms
Dates to DateFormat.MEDIUM date strings. |
static class |
DateSwap.DateShort
Transforms
Dates to DateFormat.SHORT date strings. |
static class |
DateSwap.DateSimple
Transforms
Dates to simple |
static class |
DateSwap.DateTimeFull
Transforms
Dates to DateFormat.FULL date-time strings. |
static class |
DateSwap.DateTimeLong
Transforms
Dates to DateFormat.LONG date-time strings. |
static class |
DateSwap.DateTimeMedium
Transforms
Dates to DateFormat.MEDIUM date-time strings. |
static class |
DateSwap.DateTimeShort
Transforms
Dates to DateFormat.SHORT date-time strings. |
static class |
DateSwap.DateTimeSimple
Transforms
Dates to simple |
static class |
DateSwap.ISO8601D
ISO8601 date only.
|
static class |
DateSwap.ISO8601DT
Transforms
Calendars to ISO8601 date-time strings. |
static class |
DateSwap.ISO8601DTL
Transforms
Dates to ISO8601 date-time-local strings. |
static class |
DateSwap.ISO8601DTP
Same as
CalendarSwap.ISO8601DT except serializes to millisecond precision. |
static class |
DateSwap.ISO8601DTPZ
Same as
CalendarSwap.ISO8601DTZ except serializes to millisecond precision. |
static class |
DateSwap.ISO8601DTZ
Same as
DateSwap.ISO8601DT , except always serializes in GMT. |
static class |
DateSwap.RFC2822D
Transforms
Dates to RFC2822 date strings. |
static class |
DateSwap.RFC2822DT
Transforms
Dates to RFC2822 date-time strings. |
static class |
DateSwap.RFC2822DTZ
Same as
DateSwap.RFC2822DT , except always serializes in GMT. |
static class |
DateSwap.TimeFull
Transforms
Dates to DateFormat.FULL time strings. |
static class |
DateSwap.TimeLong
Transforms
Dates to DateFormat.LONG time strings. |
static class |
DateSwap.TimeMedium
Transforms
Dates to DateFormat.MEDIUM time strings. |
static class |
DateSwap.TimeShort
Transforms
Dates to DateFormat.SHORT time strings. |
static class |
DateSwap.TimeSimple
Transforms
Dates to simple |
static class |
DateSwap.ToString
|
Constructor and Description |
---|
DateSwap() |
swap, unswap
forMediaTypes, forMediaTypes, getNormalClass, getSwapClass, getSwapClassMeta, isNormalObject, isSwappedObject, match, swap, toString, unswap, withTemplate, withTemplate
public DateSwap()
Copyright © 2018 Apache. All rights reserved.