public class FmtLocalTime extends AbstractJodaFormattingProcessor<LocalTime>
For constructors using DateTimeFormatter, refer to the following Joda classes:
DateTimeFormat
- formats by pattern and styleISODateTimeFormat
- ISO8601 formatsDateTimeFormatterBuilder
- complex formats created via method
calls
For constructors using date format Strings, refer to DateTimeFormat
for example formats.
next
Constructor and Description |
---|
FmtLocalTime()
Constructs a new FmtLocalTime processor, which formats a Joda
LocalTime as a String.
|
FmtLocalTime(CellProcessor next)
Constructs a new FmtLocalTime processor, which formats a Joda
LocalTime as a String, then calls the next processor in the chain.
|
FmtLocalTime(DateTimeFormatter formatter)
Constructs a new FmtLocalTime processor, which formats a Joda
LocalTime as a String using the supplied formatter.
|
FmtLocalTime(DateTimeFormatter formatter,
CellProcessor next)
Constructs a new FmtLocalTime processor, which formats a Joda
LocalTime as a String using the supplied formatter, then calls the next
processor in the chain.
|
FmtLocalTime(String pattern)
Constructs a new FmtLocalTime processor, which formats a Joda
LocalTime as a String using the supplied pattern and the default locale.
|
FmtLocalTime(String pattern,
CellProcessor next)
Constructs a new FmtLocalTime processor, which formats a Joda
LocalTime as a String using the supplied pattern and the default locale,
then calls the next processor in the chain.
|
FmtLocalTime(String pattern,
Locale locale)
Constructs a new FmtLocalTime processor, which formats a Joda
LocalTime as a String using the supplied pattern and the locale.
|
FmtLocalTime(String pattern,
Locale locale,
CellProcessor next)
Constructs a new FmtLocalTime processor, which formats a Joda
LocalTime as a String using the supplied pattern and the locale, then
calls the next processor in the chain.
|
Modifier and Type | Method and Description |
---|---|
protected String |
format(LocalTime jodaType)
Formats the Joda type as a String using the default pattern and locale.
|
protected String |
format(LocalTime jodaType,
DateTimeFormatter formatter)
Formats the Joda type as a String using a DateTimeFormatter.
|
protected String |
format(LocalTime jodaType,
String pattern,
Locale locale)
Formats the Joda type as a String using the supplied pattern and
(optional) locale.
|
execute
toString, validateInputNotNull
public FmtLocalTime()
public FmtLocalTime(CellProcessor next)
next
- next processor in the chainNullPointerException
- if next is nullpublic FmtLocalTime(DateTimeFormatter formatter)
formatter
- the formatter to useNullPointerException
- if formatter is nullpublic FmtLocalTime(DateTimeFormatter formatter, CellProcessor next)
formatter
- the formatter to usenext
- the next processor in the chainNullPointerException
- if formatter or next is nullpublic FmtLocalTime(String pattern)
pattern
- the pattern to useNullPointerException
- if pattern is nullpublic FmtLocalTime(String pattern, CellProcessor next)
pattern
- the pattern to usenext
- the next processor in the chainNullPointerException
- if pattern or next is nullpublic FmtLocalTime(String pattern, Locale locale)
pattern
- the pattern to uselocale
- the locale to use (default used if null)NullPointerException
- if pattern is nullpublic FmtLocalTime(String pattern, Locale locale, CellProcessor next)
pattern
- the pattern to uselocale
- the locale to use (default used if null)next
- the next processor in the chainNullPointerException
- if pattern or next is nullprotected String format(LocalTime jodaType, DateTimeFormatter formatter)
format
in class AbstractJodaFormattingProcessor<LocalTime>
jodaType
- the Joda type to formatformatter
- the formatter to useprotected String format(LocalTime jodaType, String pattern, Locale locale)
format
in class AbstractJodaFormattingProcessor<LocalTime>
jodaType
- the Joda type to formatpattern
- the pattern to uselocale
- the (optional) localeprotected String format(LocalTime jodaType)
format
in class AbstractJodaFormattingProcessor<LocalTime>
jodaType
- the Joda type to formatCopyright © 2007–2015 Super CSV. All rights reserved.