org.op4j.jodatime.functions
Class FnJodaToString

java.lang.Object
  extended by org.op4j.jodatime.functions.FnJodaToString

public final class FnJodaToString
extends java.lang.Object

Since:
1.0
Author:
Soraya Sánchez Labandeira

Nested Class Summary
static class FnJodaToString.FormatType
           
 
Method Summary
static org.op4j.functions.Function<org.joda.time.base.BaseDateTime,java.lang.String> fromBaseDateTime(org.joda.time.format.DateTimeFormatter formatter)
          It converts the given BaseDateTime into a String by means of the given DateTimeFormatter
static org.op4j.functions.Function<org.joda.time.base.BaseDateTime,java.lang.String> fromBaseDateTime(FnJodaToString.FormatType formatType, java.lang.String format)
          It converts the given 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,java.lang.String> fromBaseDateTime(FnJodaToString.FormatType formatType, java.lang.String format, org.joda.time.Chronology chronology)
          It converts the given 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,java.lang.String> fromBaseDateTime(FnJodaToString.FormatType formatType, java.lang.String format, java.util.Locale locale)
          It converts the given 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,java.lang.String> fromBaseDateTime(FnJodaToString.FormatType formatType, java.lang.String format, java.lang.String locale)
          It converts the given 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,java.lang.String> fromLocalDate(org.joda.time.format.DateTimeFormatter formatter)
          It converts the given LocalDate into a String by means of the given DateTimeFormatter
static org.op4j.functions.Function<org.joda.time.LocalDate,java.lang.String> fromLocalDate(FnJodaToString.FormatType formatType, java.lang.String format)
          It converts the given 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,java.lang.String> fromLocalDate(FnJodaToString.FormatType formatType, java.lang.String format, org.joda.time.Chronology chronology)
          It converts the given 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,java.lang.String> fromLocalDate(FnJodaToString.FormatType formatType, java.lang.String format, java.util.Locale locale)
          It converts the given 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,java.lang.String> fromLocalDate(FnJodaToString.FormatType formatType, java.lang.String format, java.lang.String locale)
          It converts the given 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,java.lang.String> fromLocalTime(org.joda.time.format.DateTimeFormatter formatter)
          It converts the given LocalTime into a String by means of the given DateTimeFormatter
static org.op4j.functions.Function<org.joda.time.LocalTime,java.lang.String> fromLocalTime(FnJodaToString.FormatType formatType, java.lang.String format)
          It converts the given 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,java.lang.String> fromLocalTime(FnJodaToString.FormatType formatType, java.lang.String format, org.joda.time.Chronology chronology)
          It converts the given 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,java.lang.String> fromLocalTime(FnJodaToString.FormatType formatType, java.lang.String format, java.util.Locale locale)
          It converts the given 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,java.lang.String> fromLocalTime(FnJodaToString.FormatType formatType, java.lang.String format, java.lang.String locale)
          It converts the given LocalTime into a String by means of the given pattern or style (depending on the value of formatType parameter).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fromBaseDateTime

public static final org.op4j.functions.Function<org.joda.time.base.BaseDateTime,java.lang.String> fromBaseDateTime(FnJodaToString.FormatType formatType,
                                                                                                                   java.lang.String format)
It converts the given BaseDateTime into a String by means of the given pattern or style (depending on the value of formatType parameter).

Parameters:
formatType - format FnJodaToString.FormatType
format - string with the format used to convert the target BaseDateTime
Returns:

fromBaseDateTime

public static final org.op4j.functions.Function<org.joda.time.base.BaseDateTime,java.lang.String> fromBaseDateTime(FnJodaToString.FormatType formatType,
                                                                                                                   java.lang.String format,
                                                                                                                   java.util.Locale locale)
It converts the given BaseDateTime into a String by means of the given pattern or style (depending on the value of formatType parameter).

Parameters:
formatType - format FnJodaToString.FormatType
format - string with the format used to convert the target BaseDateTime
locale - Locale to be used with the given pattern
Returns:

fromBaseDateTime

public static final org.op4j.functions.Function<org.joda.time.base.BaseDateTime,java.lang.String> fromBaseDateTime(FnJodaToString.FormatType formatType,
                                                                                                                   java.lang.String format,
                                                                                                                   org.joda.time.Chronology chronology)
It converts the given BaseDateTime into a String by means of the given pattern or style (depending on the value of formatType parameter).

Parameters:
formatType - format FnJodaToString.FormatType
format - string with the format used to convert the target BaseDateTime
chronology -
Returns:

fromBaseDateTime

public static final org.op4j.functions.Function<org.joda.time.base.BaseDateTime,java.lang.String> fromBaseDateTime(FnJodaToString.FormatType formatType,
                                                                                                                   java.lang.String format,
                                                                                                                   java.lang.String locale)
It converts the given BaseDateTime into a String by means of the given pattern or style (depending on the value of formatType parameter).

Parameters:
formatType -
format -
locale - locale to be used with the given pattern
Returns:

fromBaseDateTime

public static final org.op4j.functions.Function<org.joda.time.base.BaseDateTime,java.lang.String> fromBaseDateTime(org.joda.time.format.DateTimeFormatter formatter)
It converts the given BaseDateTime into a String by means of the given DateTimeFormatter

Parameters:
formatter -

fromLocalTime

public static final org.op4j.functions.Function<org.joda.time.LocalTime,java.lang.String> fromLocalTime(FnJodaToString.FormatType formatType,
                                                                                                        java.lang.String format)
It converts the given LocalTime into a String by means of the given pattern or style (depending on the value of formatType parameter).

Parameters:
formatType - format FnJodaToString.FormatType
format - string with the format used to convert the target BaseDateTime
Returns:

fromLocalTime

public static final org.op4j.functions.Function<org.joda.time.LocalTime,java.lang.String> fromLocalTime(FnJodaToString.FormatType formatType,
                                                                                                        java.lang.String format,
                                                                                                        java.util.Locale locale)
It converts the given LocalTime into a String by means of the given pattern or style (depending on the value of formatType parameter).

Parameters:
formatType - format FnJodaToString.FormatType
format - string with the format used to convert the target BaseDateTime
locale - locale to be used with the pattern
Returns:

fromLocalTime

public static final org.op4j.functions.Function<org.joda.time.LocalTime,java.lang.String> fromLocalTime(FnJodaToString.FormatType formatType,
                                                                                                        java.lang.String format,
                                                                                                        org.joda.time.Chronology chronology)
It converts the given LocalTime into a String by means of the given pattern or style (depending on the value of formatType parameter).

Parameters:
formatType - format FnJodaToString.FormatType
format - string with the format used to convert the target BaseDateTime
chronology -
Returns:

fromLocalTime

public static final org.op4j.functions.Function<org.joda.time.LocalTime,java.lang.String> fromLocalTime(FnJodaToString.FormatType formatType,
                                                                                                        java.lang.String format,
                                                                                                        java.lang.String locale)
It converts the given LocalTime into a String by means of the given pattern or style (depending on the value of formatType parameter).

Parameters:
formatType - format FnJodaToString.FormatType
format - string with the format used to convert the target BaseDateTime
locale - locale to be used with the pattern
Returns:

fromLocalTime

public static final org.op4j.functions.Function<org.joda.time.LocalTime,java.lang.String> fromLocalTime(org.joda.time.format.DateTimeFormatter formatter)
It converts the given LocalTime into a String by means of the given DateTimeFormatter

Parameters:
formatter -

fromLocalDate

public static final org.op4j.functions.Function<org.joda.time.LocalDate,java.lang.String> fromLocalDate(FnJodaToString.FormatType formatType,
                                                                                                        java.lang.String format)
It converts the given LocalDate into a String by means of the given pattern or style (depending on the formatType value)

Parameters:
formatType - format FnJodaToString.FormatType
format - string with the format used to convert the target BaseDateTime

fromLocalDate

public static final org.op4j.functions.Function<org.joda.time.LocalDate,java.lang.String> fromLocalDate(FnJodaToString.FormatType formatType,
                                                                                                        java.lang.String format,
                                                                                                        java.util.Locale locale)
It converts the given LocalDate into a String by means of the given pattern or style (depending on the formatType value) with the given Locale

Parameters:
formatType - format FnJodaToString.FormatType
format - string with the format used to convert the target BaseDateTime
locale -

fromLocalDate

public static final org.op4j.functions.Function<org.joda.time.LocalDate,java.lang.String> fromLocalDate(FnJodaToString.FormatType formatType,
                                                                                                        java.lang.String format,
                                                                                                        org.joda.time.Chronology chronology)
It converts the given LocalDate into a String by means of the given pattern or style (depending on the formatType value) with the given Chronology

Parameters:
formatType - format FnJodaToString.FormatType
format - string with the format used to convert the target BaseDateTime
chronology -

fromLocalDate

public static final org.op4j.functions.Function<org.joda.time.LocalDate,java.lang.String> fromLocalDate(FnJodaToString.FormatType formatType,
                                                                                                        java.lang.String format,
                                                                                                        java.lang.String locale)
It converts the given LocalDate into a String by means of the given pattern or style (depending on the formatType value) with the given Locale

Parameters:
formatType - format FnJodaToString.FormatType
format - string with the format used to convert the target BaseDateTime
locale -

fromLocalDate

public static final org.op4j.functions.Function<org.joda.time.LocalDate,java.lang.String> fromLocalDate(org.joda.time.format.DateTimeFormatter formatter)
It converts the given LocalDate into a String by means of the given DateTimeFormatter

Parameters:
formatter -


Copyright © 2010 The OP4J team. All Rights Reserved.