org.op4j.jodatime.functions
Class FnMutableDateTime

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

public final class FnMutableDateTime
extends Object

Since:
1.1
Author:
Soraya Sánchez Labandeira

Method Summary
static
<T extends Calendar>
org.op4j.functions.Function<T,org.joda.time.MutableDateTime>
calendarToMutableDateTime()
           It converts a Calendar into a MutableDateTime
static
<T extends Calendar>
org.op4j.functions.Function<T,org.joda.time.MutableDateTime>
calendarToMutableDateTime(org.joda.time.Chronology chronology)
           It converts a Calendar into a MutableDateTime with the given Chronology
static
<T extends Calendar>
org.op4j.functions.Function<T,org.joda.time.MutableDateTime>
calendarToMutableDateTime(org.joda.time.DateTimeZone dateTimeZone)
           It converts a Calendar into a MutableDateTime in the given DateTimeZone
static
<T extends Date>
org.op4j.functions.Function<T,org.joda.time.MutableDateTime>
dateToMutableDateTime()
           The input Date is converted into a MutableDateTime
static
<T extends Date>
org.op4j.functions.Function<T,org.joda.time.MutableDateTime>
dateToMutableDateTime(org.joda.time.Chronology chronology)
           The input Date is converted into a MutableDateTime with the given Chronology
static
<T extends Date>
org.op4j.functions.Function<T,org.joda.time.MutableDateTime>
dateToMutableDateTime(org.joda.time.DateTimeZone dateTimeZone)
           The input Date is converted into a MutableDateTime configured with the given DateTimeZone
static org.op4j.functions.Function<Integer[],org.joda.time.MutableDateTime> integerFieldArrayToMutableDateTime()
           A MutableDateTime is created from the given Integer array.
static org.op4j.functions.Function<Integer[],org.joda.time.MutableDateTime> integerFieldArrayToMutableDateTime(org.joda.time.Chronology chronology)
           A MutableDateTime is created from the given Integer array.
static org.op4j.functions.Function<Collection<Integer>,org.joda.time.MutableDateTime> integerFieldCollectionToMutableDateTime()
           A MutableDateTime is created from the input Integer Collection.
static org.op4j.functions.Function<Collection<Integer>,org.joda.time.MutableDateTime> integerFieldCollectionToMutableDateTime(org.joda.time.Chronology chronology)
           A MutableDateTime is created from the input Integer Collection.
static org.op4j.functions.Function<Long,org.joda.time.MutableDateTime> longToMutableDateTime()
           The input Long representing the time in milliseconds is converted into a MutableDateTime
static org.op4j.functions.Function<Long,org.joda.time.MutableDateTime> longToMutableDateTime(org.joda.time.Chronology chronology)
           The input Long representing the time in milliseconds is converted into a MutableDateTime with the given Chronology
static org.op4j.functions.Function<Long,org.joda.time.MutableDateTime> longToMutableDateTime(org.joda.time.DateTimeZone dateTimeZone)
           The input Long representing the time in milliseconds is converted into a MutableDateTime in the given DateTimeZone
static org.op4j.functions.Function<String[],org.joda.time.MutableDateTime> strFieldArrayToMutableDateTime()
           A MutableDateTime is created from the given String array.
static org.op4j.functions.Function<String[],org.joda.time.MutableDateTime> strFieldArrayToMutableDateTime(org.joda.time.Chronology chronology)
           A MutableDateTime is created from the given String array.
static org.op4j.functions.Function<Collection<String>,org.joda.time.MutableDateTime> strFieldCollectionToMutableDateTime()
           A MutableDateTime is created from the given String Collection.
static org.op4j.functions.Function<Collection<String>,org.joda.time.MutableDateTime> strFieldCollectionToMutableDateTime(org.joda.time.Chronology chronology)
           A MutableDateTime is created from the given String Collection.
static org.op4j.functions.Function<String,org.joda.time.MutableDateTime> strToMutableDateTime(String pattern)
           It converts the input String into a MutableDateTime using the given pattern parameter.
static org.op4j.functions.Function<String,org.joda.time.MutableDateTime> strToMutableDateTime(String pattern, org.joda.time.Chronology chronology)
           It converts the input String into a MutableDateTime using the given pattern parameter and with the given Chronology.
static org.op4j.functions.Function<String,org.joda.time.MutableDateTime> strToMutableDateTime(String pattern, org.joda.time.DateTimeZone dateTimeZone)
           It converts the input String into a MutableDateTime using the given pattern parameter and with the given DateTimeZone.
static org.op4j.functions.Function<String,org.joda.time.MutableDateTime> strToMutableDateTime(String pattern, Locale locale)
           It converts the input String into a MutableDateTime using the given pattern and Locale parameters
static org.op4j.functions.Function<String,org.joda.time.MutableDateTime> strToMutableDateTime(String pattern, Locale locale, org.joda.time.Chronology chronology)
           It converts the input String into a MutableDateTime using the given pattern and Locale parameters.
static org.op4j.functions.Function<String,org.joda.time.MutableDateTime> strToMutableDateTime(String pattern, Locale locale, org.joda.time.DateTimeZone dateTimeZone)
           It converts the given String into a MutableDateTime using the given pattern and Locale parameters.
static org.op4j.functions.Function<String,org.joda.time.MutableDateTime> strToMutableDateTime(String pattern, String locale)
           It converts the given String into a MutableDateTime using the given pattern and Locale parameters
static org.op4j.functions.Function<String,org.joda.time.MutableDateTime> strToMutableDateTime(String pattern, String locale, org.joda.time.Chronology chronology)
           It converts the input String into a MutableDateTime using the given pattern and Locale parameters.
static org.op4j.functions.Function<String,org.joda.time.MutableDateTime> strToMutableDateTime(String pattern, String locale, org.joda.time.DateTimeZone dateTimeZone)
           It converts the given String into a MutableDateTime using the given pattern and Locale parameters.
static org.op4j.functions.Function<Timestamp,org.joda.time.MutableDateTime> timestampToMutableDateTime()
           The input Timestamp is converted into a MutableDateTime
static org.op4j.functions.Function<Timestamp,org.joda.time.MutableDateTime> timestampToMutableDateTime(org.joda.time.Chronology chronology)
           The input Timestamp is converted into a MutableDateTime with the given Chronology
static org.op4j.functions.Function<Timestamp,org.joda.time.MutableDateTime> timestampToMutableDateTime(org.joda.time.DateTimeZone dateTimeZone)
           The input Timestamp is converted into a MutableDateTime in the given DateTimeZone
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

strToMutableDateTime

public static final org.op4j.functions.Function<String,org.joda.time.MutableDateTime> strToMutableDateTime(String pattern)

It converts the input String into a MutableDateTime using the given pattern parameter. If the pattern includes either, the name of the month or day of week, a conversion accepting a Locale must be used instead

Parameters:
pattern - string with the format of the input String
Returns:
the MutableDateTime created from the input and arguments

strToMutableDateTime

public static final org.op4j.functions.Function<String,org.joda.time.MutableDateTime> strToMutableDateTime(String pattern,
                                                                                                           org.joda.time.DateTimeZone dateTimeZone)

It converts the input String into a MutableDateTime using the given pattern parameter and with the given DateTimeZone. If the pattern includes either, the name of the month or day of week, a conversion accepting a Locale must be used instead

Parameters:
pattern - string with the format of the input String
dateTimeZone - the the time zone (DateTimeZone) to be used
Returns:
the MutableDateTime created from the input and arguments

strToMutableDateTime

public static final org.op4j.functions.Function<String,org.joda.time.MutableDateTime> strToMutableDateTime(String pattern,
                                                                                                           org.joda.time.Chronology chronology)

It converts the input String into a MutableDateTime using the given pattern parameter and with the given Chronology. If the pattern includes either, the name of the month or day of week, a conversion accepting a Locale must be used instead

Parameters:
pattern - string with the format of the input String
chronology - Chronology to be used
Returns:
the MutableDateTime created from the input and arguments

strToMutableDateTime

public static final org.op4j.functions.Function<String,org.joda.time.MutableDateTime> strToMutableDateTime(String pattern,
                                                                                                           Locale locale)

It converts the input String into a MutableDateTime using the given pattern and Locale parameters

Parameters:
pattern - string with the format of the input String
locale - Locale to be used
Returns:
the MutableDateTime created from the input and arguments

strToMutableDateTime

public static final org.op4j.functions.Function<String,org.joda.time.MutableDateTime> strToMutableDateTime(String pattern,
                                                                                                           String locale)

It converts the given String into a MutableDateTime using the given pattern and Locale parameters

Parameters:
pattern - string with the format of the input String
locale - Locale to be used
Returns:
the MutableDateTime created from the input and arguments

strToMutableDateTime

public static final org.op4j.functions.Function<String,org.joda.time.MutableDateTime> strToMutableDateTime(String pattern,
                                                                                                           Locale locale,
                                                                                                           org.joda.time.DateTimeZone dateTimeZone)

It converts the given String into a MutableDateTime using the given pattern and Locale parameters. The MutableDateTime is configured with the given DateTimeZone

Parameters:
pattern - string with the format of the input String
locale - Locale to be used
dateTimeZone - the the time zone (DateTimeZone) to be used
Returns:
the MutableDateTime created from the input and arguments

strToMutableDateTime

public static final org.op4j.functions.Function<String,org.joda.time.MutableDateTime> strToMutableDateTime(String pattern,
                                                                                                           String locale,
                                                                                                           org.joda.time.DateTimeZone dateTimeZone)

It converts the given String into a MutableDateTime using the given pattern and Locale parameters. The MutableDateTime is configured with the given DateTimeZone

Parameters:
pattern - string with the format of the input String
locale - Locale to be used
dateTimeZone - the the time zone (DateTimeZone) to be used
Returns:
the MutableDateTime created from the input and arguments

strToMutableDateTime

public static final org.op4j.functions.Function<String,org.joda.time.MutableDateTime> strToMutableDateTime(String pattern,
                                                                                                           Locale locale,
                                                                                                           org.joda.time.Chronology chronology)

It converts the input String into a MutableDateTime using the given pattern and Locale parameters. The MutableDateTime will be created with the given Chronology

Parameters:
pattern - string with the format of the input String
locale - Locale to be used
chronology - Chronology to be used
Returns:
the MutableDateTime created from the input and arguments

strToMutableDateTime

public static final org.op4j.functions.Function<String,org.joda.time.MutableDateTime> strToMutableDateTime(String pattern,
                                                                                                           String locale,
                                                                                                           org.joda.time.Chronology chronology)

It converts the input String into a MutableDateTime using the given pattern and Locale parameters. The MutableDateTime will be created with the given Chronology

Parameters:
pattern - string with the format of the input String
locale - Locale to be used
chronology - Chronology to be used
Returns:
the MutableDateTime created from the input and arguments

dateToMutableDateTime

public static final <T extends Date> org.op4j.functions.Function<T,org.joda.time.MutableDateTime> dateToMutableDateTime()

The input Date is converted into a MutableDateTime

Returns:
the MutableDateTime created from the input

dateToMutableDateTime

public static final <T extends Date> org.op4j.functions.Function<T,org.joda.time.MutableDateTime> dateToMutableDateTime(org.joda.time.DateTimeZone dateTimeZone)

The input Date is converted into a MutableDateTime configured with the given DateTimeZone

Parameters:
dateTimeZone - the the time zone (DateTimeZone) to be used
Returns:
the MutableDateTime created from the input and arguments

dateToMutableDateTime

public static final <T extends Date> org.op4j.functions.Function<T,org.joda.time.MutableDateTime> dateToMutableDateTime(org.joda.time.Chronology chronology)

The input Date is converted into a MutableDateTime with the given Chronology

Parameters:
chronology - Chronology to be used
Returns:
the MutableDateTime created from the input and arguments

timestampToMutableDateTime

public static final org.op4j.functions.Function<Timestamp,org.joda.time.MutableDateTime> timestampToMutableDateTime()

The input Timestamp is converted into a MutableDateTime

Returns:
the MutableDateTime created from the input

timestampToMutableDateTime

public static final org.op4j.functions.Function<Timestamp,org.joda.time.MutableDateTime> timestampToMutableDateTime(org.joda.time.DateTimeZone dateTimeZone)

The input Timestamp is converted into a MutableDateTime in the given DateTimeZone

Parameters:
dateTimeZone - the the time zone (DateTimeZone) to be used
Returns:
the MutableDateTime created from the input and arguments

timestampToMutableDateTime

public static final org.op4j.functions.Function<Timestamp,org.joda.time.MutableDateTime> timestampToMutableDateTime(org.joda.time.Chronology chronology)

The input Timestamp is converted into a MutableDateTime with the given Chronology

Parameters:
chronology - Chronology to be used
Returns:
the MutableDateTime created from the input and arguments

longToMutableDateTime

public static final org.op4j.functions.Function<Long,org.joda.time.MutableDateTime> longToMutableDateTime()

The input Long representing the time in milliseconds is converted into a MutableDateTime

Returns:
the MutableDateTime created from the input

longToMutableDateTime

public static final org.op4j.functions.Function<Long,org.joda.time.MutableDateTime> longToMutableDateTime(org.joda.time.DateTimeZone dateTimeZone)

The input Long representing the time in milliseconds is converted into a MutableDateTime in the given DateTimeZone

Parameters:
dateTimeZone - the the time zone (DateTimeZone) to be used
Returns:
the MutableDateTime created from the input and arguments

longToMutableDateTime

public static final org.op4j.functions.Function<Long,org.joda.time.MutableDateTime> longToMutableDateTime(org.joda.time.Chronology chronology)

The input Long representing the time in milliseconds is converted into a MutableDateTime with the given Chronology

Parameters:
chronology - Chronology to be used
Returns:
the MutableDateTime created from the input and arguments

integerFieldCollectionToMutableDateTime

public static final org.op4j.functions.Function<Collection<Integer>,org.joda.time.MutableDateTime> integerFieldCollectionToMutableDateTime()

A MutableDateTime is created from the input Integer Collection.

The valid input Collection<Integer> are:

Returns:
the MutableDateTime created from the input

integerFieldCollectionToMutableDateTime

public static final org.op4j.functions.Function<Collection<Integer>,org.joda.time.MutableDateTime> integerFieldCollectionToMutableDateTime(org.joda.time.Chronology chronology)

A MutableDateTime is created from the input Integer Collection. The result will be created with the given Chronology

The valid input Collection<Integer> are:

Parameters:
chronology - Chronology to be used
Returns:
the MutableDateTime created from the input and arguments

integerFieldArrayToMutableDateTime

public static final org.op4j.functions.Function<Integer[],org.joda.time.MutableDateTime> integerFieldArrayToMutableDateTime()

A MutableDateTime is created from the given Integer array.

The valid input Integer[] are:

Returns:
the MutableDateTime created from the input

integerFieldArrayToMutableDateTime

public static final org.op4j.functions.Function<Integer[],org.joda.time.MutableDateTime> integerFieldArrayToMutableDateTime(org.joda.time.Chronology chronology)

A MutableDateTime is created from the given Integer array. The result will be created with the given Chronology

The valid input Integer[] are:

Parameters:
chronology - Chronology to be used
Returns:
the MutableDateTime created from the input and arguments

strFieldCollectionToMutableDateTime

public static final org.op4j.functions.Function<Collection<String>,org.joda.time.MutableDateTime> strFieldCollectionToMutableDateTime()

A MutableDateTime is created from the given String Collection.

The valid input Collection<String> are:

Returns:
the MutableDateTime created from the input

strFieldCollectionToMutableDateTime

public static final org.op4j.functions.Function<Collection<String>,org.joda.time.MutableDateTime> strFieldCollectionToMutableDateTime(org.joda.time.Chronology chronology)

A MutableDateTime is created from the given String Collection. The result will be created with the given Chronology

The valid input Collection<String> are:

Parameters:
chronology - Chronology to be used
Returns:
the MutableDateTime created from the input and arguments

strFieldArrayToMutableDateTime

public static final org.op4j.functions.Function<String[],org.joda.time.MutableDateTime> strFieldArrayToMutableDateTime()

A MutableDateTime is created from the given String array.

The valid input String[] are:

Returns:
the MutableDateTime created from the input

strFieldArrayToMutableDateTime

public static final org.op4j.functions.Function<String[],org.joda.time.MutableDateTime> strFieldArrayToMutableDateTime(org.joda.time.Chronology chronology)

A MutableDateTime is created from the given String array. The result will be created with the given Chronology

The valid input String[] are:

Parameters:
chronology - Chronology to be used
Returns:
the MutableDateTime created from the input and arguments

calendarToMutableDateTime

public static final <T extends Calendar> org.op4j.functions.Function<T,org.joda.time.MutableDateTime> calendarToMutableDateTime()

It converts a Calendar into a MutableDateTime

Returns:
the MutableDateTime created from the input

calendarToMutableDateTime

public static final <T extends Calendar> org.op4j.functions.Function<T,org.joda.time.MutableDateTime> calendarToMutableDateTime(org.joda.time.DateTimeZone dateTimeZone)

It converts a Calendar into a MutableDateTime in the given DateTimeZone

Parameters:
dateTimeZone - the the time zone (DateTimeZone) to be used
Returns:
the MutableDateTime created from the input and arguments

calendarToMutableDateTime

public static final <T extends Calendar> org.op4j.functions.Function<T,org.joda.time.MutableDateTime> calendarToMutableDateTime(org.joda.time.Chronology chronology)

It converts a Calendar into a MutableDateTime with the given Chronology

Parameters:
chronology - Chronology to be used
Returns:
the MutableDateTime created from the input and arguments


Copyright © 2012 The OP4J team. All Rights Reserved.