org.op4j.jodatime.functions
Class FnJodaString

Object
  extended by org.op4j.jodatime.functions.FnJodaString

public final class FnJodaString
extends Object

Since:
1.1
Author:
Soraya Sánchez Labandeira

Nested Class Summary
static class FnJodaString.FormatType
           
 
Method Summary
static org.op4j.functions.Function<org.joda.time.base.BaseDateTime,String> baseDateTimeToStr()
           It converts the input BaseDateTime into a String
static org.op4j.functions.Function<org.joda.time.base.BaseDateTime,String> baseDateTimeToStr(org.joda.time.format.DateTimeFormatter formatter)
           It converts the input BaseDateTime into a String by means of the given DateTimeFormatter
static org.op4j.functions.Function<org.joda.time.base.BaseDateTime,String> baseDateTimeToStr(FnJodaString.FormatType formatType, String format)
           It converts the input BaseDateTime into a String by means of the given pattern or style (depending on the value of formatType parameter).
static org.op4j.functions.Function<org.joda.time.base.BaseDateTime,String> baseDateTimeToStr(FnJodaString.FormatType formatType, String format, org.joda.time.Chronology chronology)
           It converts the input BaseDateTime into a String by means of the given pattern or style (depending on the value of formatType parameter).
static org.op4j.functions.Function<org.joda.time.base.BaseDateTime,String> baseDateTimeToStr(FnJodaString.FormatType formatType, String format, Locale locale)
           It converts the input BaseDateTime into a String by means of the given pattern or style (depending on the value of formatType parameter).
static org.op4j.functions.Function<org.joda.time.base.BaseDateTime,String> baseDateTimeToStr(FnJodaString.FormatType formatType, String format, String locale)
           It converts the input BaseDateTime into a String by means of the given pattern or style (depending on the value of formatType parameter).
static org.op4j.functions.Function<org.joda.time.LocalDate,String> localDateToStr()
           It converts the input LocalDate into a String
static org.op4j.functions.Function<org.joda.time.LocalDate,String> localDateToStr(org.joda.time.format.DateTimeFormatter formatter)
           It converts the input LocalDate into a String by means of the given DateTimeFormatter
static org.op4j.functions.Function<org.joda.time.LocalDate,String> localDateToStr(FnJodaString.FormatType formatType, String format)
           It converts the input LocalDate into a String by means of the given pattern or style (depending on the formatType value)
static org.op4j.functions.Function<org.joda.time.LocalDate,String> localDateToStr(FnJodaString.FormatType formatType, String format, org.joda.time.Chronology chronology)
           It converts the input LocalDate into a String by means of the given pattern or style (depending on the formatType value) with the given Chronology
static org.op4j.functions.Function<org.joda.time.LocalDate,String> localDateToStr(FnJodaString.FormatType formatType, String format, Locale locale)
           It converts the input LocalDate into a String by means of the given pattern or style (depending on the formatType value) with the given Locale
static org.op4j.functions.Function<org.joda.time.LocalDate,String> localDateToStr(FnJodaString.FormatType formatType, String format, String locale)
           It converts the input LocalDate into a String by means of the given pattern or style (depending on the formatType value) with the given Locale
static org.op4j.functions.Function<org.joda.time.LocalTime,String> localTimeToStr()
           It converts the input LocalTime into a String
static org.op4j.functions.Function<org.joda.time.LocalTime,String> localTimeToStr(org.joda.time.format.DateTimeFormatter formatter)
           It converts the input LocalTime into a String by means of the given DateTimeFormatter
static org.op4j.functions.Function<org.joda.time.LocalTime,String> localTimeToStr(FnJodaString.FormatType formatType, String format)
           It converts the input LocalTime into a String by means of the given pattern or style (depending on the value of formatType parameter).
static org.op4j.functions.Function<org.joda.time.LocalTime,String> localTimeToStr(FnJodaString.FormatType formatType, String format, org.joda.time.Chronology chronology)
           It converts the input LocalTime into a String by means of the given pattern or style (depending on the value of formatType parameter).
static org.op4j.functions.Function<org.joda.time.LocalTime,String> localTimeToStr(FnJodaString.FormatType formatType, String format, Locale locale)
           It converts the input LocalTime into a String by means of the given pattern or style (depending on the value of formatType parameter).
static org.op4j.functions.Function<org.joda.time.LocalTime,String> localTimeToStr(FnJodaString.FormatType formatType, String format, String locale)
           It converts the input LocalTime into a String by means of the given pattern or style (depending on the value of formatType parameter).
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

baseDateTimeToStr

public static final org.op4j.functions.Function<org.joda.time.base.BaseDateTime,String> baseDateTimeToStr()

It converts the input BaseDateTime into a String

Returns:
the String created from the input and arguments

baseDateTimeToStr

public static final org.op4j.functions.Function<org.joda.time.base.BaseDateTime,String> baseDateTimeToStr(FnJodaString.FormatType formatType,
                                                                                                          String format)

It converts the input BaseDateTime into a String by means of the given pattern or style (depending on the value of formatType parameter).

Parameters:
formatType - the format FnJodaString.FormatType
format - string with the format used for the output
Returns:
the String created from the input and arguments

baseDateTimeToStr

public static final org.op4j.functions.Function<org.joda.time.base.BaseDateTime,String> baseDateTimeToStr(FnJodaString.FormatType formatType,
                                                                                                          String format,
                                                                                                          Locale locale)

It converts the input BaseDateTime into a String by means of the given pattern or style (depending on the value of formatType parameter).

Parameters:
formatType - the format FnJodaString.FormatType
format - string with the format used for the output
locale - Locale to be used
Returns:
the String created from the input and arguments

baseDateTimeToStr

public static final org.op4j.functions.Function<org.joda.time.base.BaseDateTime,String> baseDateTimeToStr(FnJodaString.FormatType formatType,
                                                                                                          String format,
                                                                                                          org.joda.time.Chronology chronology)

It converts the input BaseDateTime into a String by means of the given pattern or style (depending on the value of formatType parameter).

Parameters:
formatType - the format FnJodaString.FormatType
format - string with the format used for the output
chronology - Chronology to be used
Returns:
the String created from the input and arguments

baseDateTimeToStr

public static final org.op4j.functions.Function<org.joda.time.base.BaseDateTime,String> baseDateTimeToStr(FnJodaString.FormatType formatType,
                                                                                                          String format,
                                                                                                          String locale)

It converts the input BaseDateTime into a String by means of the given pattern or style (depending on the value of formatType parameter).

Parameters:
formatType - the format FnJodaString.FormatType
format - string with the format used for the output
locale - Locale to be used
Returns:
the String created from the input and arguments

baseDateTimeToStr

public static final org.op4j.functions.Function<org.joda.time.base.BaseDateTime,String> baseDateTimeToStr(org.joda.time.format.DateTimeFormatter formatter)

It converts the input BaseDateTime into a String by means of the given DateTimeFormatter

Parameters:
formatter - DateTimeFormatter to generate the output String with
Returns:
the String created from the input and arguments

localTimeToStr

public static final org.op4j.functions.Function<org.joda.time.LocalTime,String> localTimeToStr()

It converts the input LocalTime into a String

Returns:
the String created from the input and arguments

localTimeToStr

public static final org.op4j.functions.Function<org.joda.time.LocalTime,String> localTimeToStr(FnJodaString.FormatType formatType,
                                                                                               String format)

It converts the input LocalTime into a String by means of the given pattern or style (depending on the value of formatType parameter).

Parameters:
formatType - the format FnJodaString.FormatType
format - string with the format used for the output
Returns:
the String created from the input and arguments

localTimeToStr

public static final org.op4j.functions.Function<org.joda.time.LocalTime,String> localTimeToStr(FnJodaString.FormatType formatType,
                                                                                               String format,
                                                                                               Locale locale)

It converts the input LocalTime into a String by means of the given pattern or style (depending on the value of formatType parameter).

Parameters:
formatType - the format FnJodaString.FormatType
format - string with the format used for the output
locale - Locale to be used
Returns:
the String created from the input and arguments

localTimeToStr

public static final org.op4j.functions.Function<org.joda.time.LocalTime,String> localTimeToStr(FnJodaString.FormatType formatType,
                                                                                               String format,
                                                                                               org.joda.time.Chronology chronology)

It converts the input LocalTime into a String by means of the given pattern or style (depending on the value of formatType parameter).

Parameters:
formatType - the format FnJodaString.FormatType
format - string with the format used for the output
chronology - Chronology to be used
Returns:
the String created from the input and arguments

localTimeToStr

public static final org.op4j.functions.Function<org.joda.time.LocalTime,String> localTimeToStr(FnJodaString.FormatType formatType,
                                                                                               String format,
                                                                                               String locale)

It converts the input LocalTime into a String by means of the given pattern or style (depending on the value of formatType parameter).

Parameters:
formatType - the format FnJodaString.FormatType
format - string with the format used for the output
locale - Locale to be used
Returns:
the String created from the input and arguments

localTimeToStr

public static final org.op4j.functions.Function<org.joda.time.LocalTime,String> localTimeToStr(org.joda.time.format.DateTimeFormatter formatter)

It converts the input LocalTime into a String by means of the given DateTimeFormatter

Parameters:
formatter - DateTimeFormatter to generate the output String with
Returns:
the String created from the input and arguments

localDateToStr

public static final org.op4j.functions.Function<org.joda.time.LocalDate,String> localDateToStr()

It converts the input LocalDate into a String

Returns:
the String created from the input and arguments

localDateToStr

public static final org.op4j.functions.Function<org.joda.time.LocalDate,String> localDateToStr(FnJodaString.FormatType formatType,
                                                                                               String format)

It converts the input LocalDate into a String by means of the given pattern or style (depending on the formatType value)

Parameters:
formatType - the format FnJodaString.FormatType
format - string with the format used for the output
Returns:
the String created from the input and arguments

localDateToStr

public static final org.op4j.functions.Function<org.joda.time.LocalDate,String> localDateToStr(FnJodaString.FormatType formatType,
                                                                                               String format,
                                                                                               Locale locale)

It converts the input LocalDate into a String by means of the given pattern or style (depending on the formatType value) with the given Locale

Parameters:
formatType - the format FnJodaString.FormatType
format - string with the format used for the output
locale - Locale to be used
Returns:
the String created from the input and arguments

localDateToStr

public static final org.op4j.functions.Function<org.joda.time.LocalDate,String> localDateToStr(FnJodaString.FormatType formatType,
                                                                                               String format,
                                                                                               org.joda.time.Chronology chronology)

It converts the input LocalDate into a String by means of the given pattern or style (depending on the formatType value) with the given Chronology

Parameters:
formatType - the format FnJodaString.FormatType
format - string with the format used for the output
chronology - Chronology to be used
Returns:
the String created from the input and arguments

localDateToStr

public static final org.op4j.functions.Function<org.joda.time.LocalDate,String> localDateToStr(FnJodaString.FormatType formatType,
                                                                                               String format,
                                                                                               String locale)

It converts the input LocalDate into a String by means of the given pattern or style (depending on the formatType value) with the given Locale

Parameters:
formatType - the format FnJodaString.FormatType
format - string with the format used for the output
locale - Locale to be used
Returns:
the String created from the input and arguments

localDateToStr

public static final org.op4j.functions.Function<org.joda.time.LocalDate,String> localDateToStr(org.joda.time.format.DateTimeFormatter formatter)

It converts the input LocalDate into a String by means of the given DateTimeFormatter

Parameters:
formatter - DateTimeFormatter to generate the output String with
Returns:
the String created from the input and arguments


Copyright © 2012 The OP4J team. All Rights Reserved.