org.op4j.jodatime.functions
Class FnDateMidnight

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

public final class FnDateMidnight
extends Object

Since:
1.1
Author:
Soraya Sánchez Labandeira

Method Summary
static
<T extends Calendar>
org.op4j.functions.Function<T,org.joda.time.DateMidnight>
calendarToDateMidnight()
           It converts a Calendar into a DateMidnight
static
<T extends Calendar>
org.op4j.functions.Function<T,org.joda.time.DateMidnight>
calendarToDateMidnight(org.joda.time.Chronology chronology)
           It converts a Calendar into a DateMidnight with the given Chronology
static
<T extends Calendar>
org.op4j.functions.Function<T,org.joda.time.DateMidnight>
calendarToDateMidnight(org.joda.time.DateTimeZone dateTimeZone)
           It converts a Calendar into a DateMidnight in the given DateTimeZone
static
<T extends Date>
org.op4j.functions.Function<T,org.joda.time.DateMidnight>
dateToDateMidnight()
           The input Date is converted into a DateMidnight
static
<T extends Date>
org.op4j.functions.Function<T,org.joda.time.DateMidnight>
dateToDateMidnight(org.joda.time.Chronology chronology)
           The input Date is converted into a DateMidnight with the given Chronology
static
<T extends Date>
org.op4j.functions.Function<T,org.joda.time.DateMidnight>
dateToDateMidnight(org.joda.time.DateTimeZone dateTimeZone)
           The input Date is converted into a DateMidnight configured with the given DateTimeZone
static org.op4j.functions.Function<Integer[],org.joda.time.DateMidnight> integerFieldArrayToDateMidnight()
           A DateMidnight is created from the input Integer array.
static org.op4j.functions.Function<Integer[],org.joda.time.DateMidnight> integerFieldArrayToDateMidnight(org.joda.time.Chronology chronology)
           A DateMidnight is created from the given Integer array.
static org.op4j.functions.Function<Collection<Integer>,org.joda.time.DateMidnight> integerFieldCollectionToDateMidnight()
           A DateMidnight is created from the input Integer Collection.
static org.op4j.functions.Function<Collection<Integer>,org.joda.time.DateMidnight> integerFieldCollectionToDateMidnight(org.joda.time.Chronology chronology)
           A DateMidnight is created from the input Integer Collection.
static org.op4j.functions.Function<Long,org.joda.time.DateMidnight> longToDateMidnight()
           The input Long representing the time in milliseconds is converted into a DateMidnight
static org.op4j.functions.Function<Long,org.joda.time.DateMidnight> longToDateMidnight(org.joda.time.Chronology chronology)
           The input Long representing the time in milliseconds is converted into a DateMidnight with the given Chronology
static org.op4j.functions.Function<Long,org.joda.time.DateMidnight> longToDateMidnight(org.joda.time.DateTimeZone dateTimeZone)
           The input Long representing the time in milliseconds is converted into a DateMidnight in the given DateTimeZone
static org.op4j.functions.Function<String[],org.joda.time.DateMidnight> strFieldArrayToDateMidnight()
           A DateMidnight is created from the given String array.
static org.op4j.functions.Function<String[],org.joda.time.DateMidnight> strFieldArrayToDateMidnight(org.joda.time.Chronology chronology)
           A DateMidnight is created from the input String array.
static org.op4j.functions.Function<Collection<String>,org.joda.time.DateMidnight> strFieldCollectionToDateMidnight()
           A DateMidnight is created from the input String Collection.
static org.op4j.functions.Function<Collection<String>,org.joda.time.DateMidnight> strFieldCollectionToDateMidnight(org.joda.time.Chronology chronology)
           A DateMidnight is created from the input String Collection.
static org.op4j.functions.Function<String,org.joda.time.DateMidnight> strToDateMidnight(String pattern)
           It converts the input String into a DateMidnight using the given pattern parameter.
static org.op4j.functions.Function<String,org.joda.time.DateMidnight> strToDateMidnight(String pattern, org.joda.time.Chronology chronology)
           It converts the input String into a DateMidnight using the given pattern parameter and with the given Chronology.
static org.op4j.functions.Function<String,org.joda.time.DateMidnight> strToDateMidnight(String pattern, org.joda.time.DateTimeZone dateTimeZone)
           It converts the input String into a DateMidnight using the given pattern parameter and with the given DateTimeZone.
static org.op4j.functions.Function<String,org.joda.time.DateMidnight> strToDateMidnight(String pattern, Locale locale)
           It converts the input String into a DateMidnight using the given pattern and Locale parameters
static org.op4j.functions.Function<String,org.joda.time.DateMidnight> strToDateMidnight(String pattern, Locale locale, org.joda.time.Chronology chronology)
           It converts the input String into a DateMidnight using the given pattern and Locale parameters.
static org.op4j.functions.Function<String,org.joda.time.DateMidnight> strToDateMidnight(String pattern, Locale locale, org.joda.time.DateTimeZone dateTimeZone)
           It converts the input String into a DateMidnight using the given pattern and Locale parameters.
static org.op4j.functions.Function<String,org.joda.time.DateMidnight> strToDateMidnight(String pattern, String locale)
           It converts the input String into a DateMidnight using the given pattern and Locale parameters
static org.op4j.functions.Function<String,org.joda.time.DateMidnight> strToDateMidnight(String pattern, String locale, org.joda.time.Chronology chronology)
           It converts the input String into a DateMidnight using the given pattern and Locale parameters.
static org.op4j.functions.Function<String,org.joda.time.DateMidnight> strToDateMidnight(String pattern, String locale, org.joda.time.DateTimeZone dateTimeZone)
           It converts the input String into a DateMidnight using the given pattern and Locale parameters.
static org.op4j.functions.Function<Timestamp,org.joda.time.DateMidnight> timestampToDateMidnight()
           The input Timestamp is converted into a DateMidnight
static org.op4j.functions.Function<Timestamp,org.joda.time.DateMidnight> timestampToDateMidnight(org.joda.time.Chronology chronology)
           The input Timestamp is converted into a DateMidnight with the given Chronology
static org.op4j.functions.Function<Timestamp,org.joda.time.DateMidnight> timestampToDateMidnight(org.joda.time.DateTimeZone dateTimeZone)
           The input Timestamp is converted into a DateMidnight in the given DateTimeZone
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

strToDateMidnight

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

It converts the input String into a DateMidnight 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 DateMidnight created from the input and arguments

strToDateMidnight

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

It converts the input String into a DateMidnight 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 DateMidnight created from the input and arguments

strToDateMidnight

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

It converts the input String into a DateMidnight 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 DateMidnight created from the input and arguments

strToDateMidnight

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

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

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

strToDateMidnight

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

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

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

strToDateMidnight

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

It converts the input String into a DateMidnight using the given pattern and Locale parameters. The DateMidnight 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 DateMidnight created from the input and arguments

strToDateMidnight

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

It converts the input String into a DateMidnight using the given pattern and Locale parameters. The DateMidnight 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 DateMidnight created from the input and arguments

strToDateMidnight

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

It converts the input String into a DateMidnight using the given pattern and Locale parameters. The DateMidnight 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 DateMidnight created from the input and arguments

strToDateMidnight

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

It converts the input String into a DateMidnight using the given pattern and Locale parameters. The DateMidnight 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 DateMidnight created from the input and arguments

dateToDateMidnight

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

The input Date is converted into a DateMidnight

Returns:
the DateMidnight created from the input

dateToDateMidnight

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

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

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

dateToDateMidnight

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

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

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

timestampToDateMidnight

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

The input Timestamp is converted into a DateMidnight

Returns:
the DateMidnight created from the input

timestampToDateMidnight

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

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

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

timestampToDateMidnight

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

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

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

longToDateMidnight

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

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

Returns:
the DateMidnight created from the input

longToDateMidnight

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

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

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

longToDateMidnight

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

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

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

integerFieldCollectionToDateMidnight

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

A DateMidnight is created from the input Integer Collection.

The valid input Collection<Integer> are:

Returns:
the DateMidnight created from the input

integerFieldCollectionToDateMidnight

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

A DateMidnight 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 DateMidnight created from the input and arguments

integerFieldArrayToDateMidnight

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

A DateMidnight is created from the input Integer array.

The valid input Integer[] are:

Returns:
the DateMidnight created from the input

integerFieldArrayToDateMidnight

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

A DateMidnight 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 DateMidnight created from the input and arguments

strFieldCollectionToDateMidnight

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

A DateMidnight is created from the input String Collection.

The valid input Collection<String> are:

Returns:
the DateMidnight created from the input

strFieldCollectionToDateMidnight

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

A DateMidnight is created from the input 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 DateMidnight created from the input and arguments

strFieldArrayToDateMidnight

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

A DateMidnight is created from the given String array.

The valid input String[] are:

Returns:
the DateMidnight created from the input

strFieldArrayToDateMidnight

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

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

The valid input String[] are:

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

calendarToDateMidnight

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

It converts a Calendar into a DateMidnight

Returns:
the DateMidnight created from the input

calendarToDateMidnight

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

It converts a Calendar into a DateMidnight in the given DateTimeZone

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

calendarToDateMidnight

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

It converts a Calendar into a DateMidnight with the given Chronology

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


Copyright © 2012 The OP4J team. All Rights Reserved.