org.op4j.jodatime.functions
Class FnToDateMidnight

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

public final class FnToDateMidnight
extends java.lang.Object

Since:
1.0
Author:
Soraya Sánchez Labandeira

Method Summary
static
<T extends java.util.Calendar>
org.op4j.functions.Function<T,org.joda.time.DateMidnight>
fromCalendar()
          It converts a Calendar into a DateMidnight
static
<T extends java.util.Calendar>
org.op4j.functions.Function<T,org.joda.time.DateMidnight>
fromCalendar(org.joda.time.Chronology chronology)
          It converts a Calendar into a DateMidnight with the given Chronology
static
<T extends java.util.Calendar>
org.op4j.functions.Function<T,org.joda.time.DateMidnight>
fromCalendar(org.joda.time.DateTimeZone dateTimeZone)
          It converts a Calendar into a DateMidnight in the given DateTimeZone
static
<T extends java.util.Date>
org.op4j.functions.Function<T,org.joda.time.DateMidnight>
fromDate()
          The given Date is converted into a DateMidnight
static
<T extends java.util.Date>
org.op4j.functions.Function<T,org.joda.time.DateMidnight>
fromDate(org.joda.time.Chronology chronology)
          The given Date is converted into a DateMidnight with the given Chronology
static
<T extends java.util.Date>
org.op4j.functions.Function<T,org.joda.time.DateMidnight>
fromDate(org.joda.time.DateTimeZone dateTimeZone)
          The given Date is converted into a DateMidnight configured with the given DateTimeZone
static org.op4j.functions.Function<java.lang.Integer[],org.joda.time.DateMidnight> fromIntegerFieldArray()
          A DateMidnight is created from the given Integer array.
static org.op4j.functions.Function<java.lang.Integer[],org.joda.time.DateMidnight> fromIntegerFieldArray(org.joda.time.Chronology chronology)
          A DateMidnight is created from the given Integer array.
static org.op4j.functions.Function<java.util.Collection<java.lang.Integer>,org.joda.time.DateMidnight> fromIntegerFieldCollection()
          A DateMidnight is created from the given Integer Collection.
static org.op4j.functions.Function<java.util.Collection<java.lang.Integer>,org.joda.time.DateMidnight> fromIntegerFieldCollection(org.joda.time.Chronology chronology)
          A DateMidnight is created from the given Integer Collection.
static org.op4j.functions.Function<java.lang.Long,org.joda.time.DateMidnight> fromLong()
          The given long representing the time in milliseconds is converted into a DateMidnight
static org.op4j.functions.Function<java.lang.Long,org.joda.time.DateMidnight> fromLong(org.joda.time.Chronology chronology)
          The given long representing the time in milliseconds is converted into a DateMidnight with the given Chronology
static org.op4j.functions.Function<java.lang.Long,org.joda.time.DateMidnight> fromLong(org.joda.time.DateTimeZone dateTimeZone)
          The given long representing the time in milliseconds is converted into a DateMidnight in the given DateTimeZone
static org.op4j.functions.Function<java.lang.String,org.joda.time.DateMidnight> fromString(java.lang.String pattern)
          It converts the given String into a DateMidnight using the given pattern parameter.
static org.op4j.functions.Function<java.lang.String,org.joda.time.DateMidnight> fromString(java.lang.String pattern, org.joda.time.Chronology chronology)
          It converts the given String into a DateMidnight using the given pattern parameter and with the given Chronology.
static org.op4j.functions.Function<java.lang.String,org.joda.time.DateMidnight> fromString(java.lang.String pattern, org.joda.time.DateTimeZone dateTimeZone)
          It converts the given String into a DateMidnight using the given pattern parameter and with the given DateTimeZone.
static org.op4j.functions.Function<java.lang.String,org.joda.time.DateMidnight> fromString(java.lang.String pattern, java.util.Locale locale)
          It converts the given String into a DateMidnight using the given pattern and Locale parameters
static org.op4j.functions.Function<java.lang.String,org.joda.time.DateMidnight> fromString(java.lang.String pattern, java.util.Locale locale, org.joda.time.Chronology chronology)
          It converts the given String into a DateMidnight using the given pattern and Locale parameters.
static org.op4j.functions.Function<java.lang.String,org.joda.time.DateMidnight> fromString(java.lang.String pattern, java.util.Locale locale, org.joda.time.DateTimeZone dateTimeZone)
          It converts the given String into a DateMidnight using the given pattern and Locale parameters.
static org.op4j.functions.Function<java.lang.String,org.joda.time.DateMidnight> fromString(java.lang.String pattern, java.lang.String locale)
          It converts the given String into a DateMidnight using the given pattern and Locale parameters
static org.op4j.functions.Function<java.lang.String,org.joda.time.DateMidnight> fromString(java.lang.String pattern, java.lang.String locale, org.joda.time.Chronology chronology)
          It converts the given String into a DateMidnight using the given pattern and Locale parameters.
static org.op4j.functions.Function<java.lang.String,org.joda.time.DateMidnight> fromString(java.lang.String pattern, java.lang.String locale, org.joda.time.DateTimeZone dateTimeZone)
          It converts the given String into a DateMidnight using the given pattern and Locale parameters.
static org.op4j.functions.Function<java.lang.String[],org.joda.time.DateMidnight> fromStringFieldArray()
          A DateMidnight is created from the given String array.
static org.op4j.functions.Function<java.lang.String[],org.joda.time.DateMidnight> fromStringFieldArray(org.joda.time.Chronology chronology)
          A DateMidnight is created from the given String array.
static org.op4j.functions.Function<java.util.Collection<java.lang.String>,org.joda.time.DateMidnight> fromStringFieldCollection()
          A DateMidnight is created from the given String Collection.
static org.op4j.functions.Function<java.util.Collection<java.lang.String>,org.joda.time.DateMidnight> fromStringFieldCollection(org.joda.time.Chronology chronology)
          A DateMidnight is created from the given String Collection.
static org.op4j.functions.Function<java.sql.Timestamp,org.joda.time.DateMidnight> fromTimestamp()
          The given Timestamp is converted into a DateMidnight
static org.op4j.functions.Function<java.sql.Timestamp,org.joda.time.DateMidnight> fromTimestamp(org.joda.time.Chronology chronology)
          The given Timestamp is converted into a DateMidnight with the given Chronology
static org.op4j.functions.Function<java.sql.Timestamp,org.joda.time.DateMidnight> fromTimestamp(org.joda.time.DateTimeZone dateTimeZone)
          The given Timestamp is converted into a DateMidnight in the given DateTimeZone
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fromString

public static final org.op4j.functions.Function<java.lang.String,org.joda.time.DateMidnight> fromString(java.lang.String pattern)
It converts the given 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 -

fromString

public static final org.op4j.functions.Function<java.lang.String,org.joda.time.DateMidnight> fromString(java.lang.String pattern,
                                                                                                        org.joda.time.DateTimeZone dateTimeZone)
It converts the given 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 -
dateTimeZone -

fromString

public static final org.op4j.functions.Function<java.lang.String,org.joda.time.DateMidnight> fromString(java.lang.String pattern,
                                                                                                        org.joda.time.Chronology chronology)
It converts the given 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 -
chronology -

fromString

public static final org.op4j.functions.Function<java.lang.String,org.joda.time.DateMidnight> fromString(java.lang.String pattern,
                                                                                                        java.util.Locale locale)
It converts the given String into a DateMidnight using the given pattern and Locale parameters

Parameters:
pattern -
locale -

fromString

public static final org.op4j.functions.Function<java.lang.String,org.joda.time.DateMidnight> fromString(java.lang.String pattern,
                                                                                                        java.lang.String locale)
It converts the given String into a DateMidnight using the given pattern and Locale parameters

Parameters:
pattern -
locale -

fromString

public static final org.op4j.functions.Function<java.lang.String,org.joda.time.DateMidnight> fromString(java.lang.String pattern,
                                                                                                        java.util.Locale locale,
                                                                                                        org.joda.time.DateTimeZone dateTimeZone)
It converts the given String into a DateMidnight using the given pattern and Locale parameters. The DateMidnight is configured with the given DateTimeZone

Parameters:
pattern -
locale -
dateTimeZone -

fromString

public static final org.op4j.functions.Function<java.lang.String,org.joda.time.DateMidnight> fromString(java.lang.String pattern,
                                                                                                        java.lang.String locale,
                                                                                                        org.joda.time.DateTimeZone dateTimeZone)
It converts the given String into a DateMidnight using the given pattern and Locale parameters. The DateMidnight is configured with the given DateTimeZone

Parameters:
pattern -
locale -
dateTimeZone -

fromString

public static final org.op4j.functions.Function<java.lang.String,org.joda.time.DateMidnight> fromString(java.lang.String pattern,
                                                                                                        java.util.Locale locale,
                                                                                                        org.joda.time.Chronology chronology)
It converts the given String into a DateMidnight using the given pattern and Locale parameters. The DateMidnight will be created with the given Chronology

Parameters:
pattern -
locale -
chronology -

fromString

public static final org.op4j.functions.Function<java.lang.String,org.joda.time.DateMidnight> fromString(java.lang.String pattern,
                                                                                                        java.lang.String locale,
                                                                                                        org.joda.time.Chronology chronology)
It converts the given String into a DateMidnight using the given pattern and Locale parameters. The DateMidnight will be created with the given Chronology

Parameters:
pattern -
locale -
chronology -

fromDate

public static final <T extends java.util.Date> org.op4j.functions.Function<T,org.joda.time.DateMidnight> fromDate()
The given Date is converted into a DateMidnight


fromDate

public static final <T extends java.util.Date> org.op4j.functions.Function<T,org.joda.time.DateMidnight> fromDate(org.joda.time.DateTimeZone dateTimeZone)
The given Date is converted into a DateMidnight configured with the given DateTimeZone

Parameters:
dateTimeZone -

fromDate

public static final <T extends java.util.Date> org.op4j.functions.Function<T,org.joda.time.DateMidnight> fromDate(org.joda.time.Chronology chronology)
The given Date is converted into a DateMidnight with the given Chronology

Parameters:
chronology -

fromTimestamp

public static final org.op4j.functions.Function<java.sql.Timestamp,org.joda.time.DateMidnight> fromTimestamp()
The given Timestamp is converted into a DateMidnight


fromTimestamp

public static final org.op4j.functions.Function<java.sql.Timestamp,org.joda.time.DateMidnight> fromTimestamp(org.joda.time.DateTimeZone dateTimeZone)
The given Timestamp is converted into a DateMidnight in the given DateTimeZone

Parameters:
dateTimeZone -

fromTimestamp

public static final org.op4j.functions.Function<java.sql.Timestamp,org.joda.time.DateMidnight> fromTimestamp(org.joda.time.Chronology chronology)
The given Timestamp is converted into a DateMidnight with the given Chronology

Parameters:
chronology -

fromLong

public static final org.op4j.functions.Function<java.lang.Long,org.joda.time.DateMidnight> fromLong()
The given long representing the time in milliseconds is converted into a DateMidnight


fromLong

public static final org.op4j.functions.Function<java.lang.Long,org.joda.time.DateMidnight> fromLong(org.joda.time.DateTimeZone dateTimeZone)
The given long representing the time in milliseconds is converted into a DateMidnight in the given DateTimeZone

Parameters:
dateTimeZone -

fromLong

public static final org.op4j.functions.Function<java.lang.Long,org.joda.time.DateMidnight> fromLong(org.joda.time.Chronology chronology)
The given long representing the time in milliseconds is converted into a DateMidnight with the given Chronology

Parameters:
chronology -

fromIntegerFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<java.lang.Integer>,org.joda.time.DateMidnight> fromIntegerFieldCollection()
A DateMidnight is created from the given Integer Collection. Year, month, day can be used. If not all of them set, the last ones will be set to 1.


fromIntegerFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<java.lang.Integer>,org.joda.time.DateMidnight> fromIntegerFieldCollection(org.joda.time.Chronology chronology)
A DateMidnight is created from the given Integer Collection. Year, month, day can be used. If not all of them set, the last ones will be set to 1 The result will be created with the given Chronology

Parameters:
chronology -

fromIntegerFieldArray

public static final org.op4j.functions.Function<java.lang.Integer[],org.joda.time.DateMidnight> fromIntegerFieldArray()
A DateMidnight is created from the given Integer array. Year, month, day can be used. If not all of them set, the last ones will be set to 1.


fromIntegerFieldArray

public static final org.op4j.functions.Function<java.lang.Integer[],org.joda.time.DateMidnight> fromIntegerFieldArray(org.joda.time.Chronology chronology)
A DateMidnight is created from the given Integer array. Year, month, day can be used. If not all of them set, the last ones will be set to 1 The result will be created with the given Chronology

Parameters:
chronology -

fromStringFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<java.lang.String>,org.joda.time.DateMidnight> fromStringFieldCollection()
A DateMidnight is created from the given String Collection. Year, month, day can be used. If not all of them set, the last ones will be set to 1.


fromStringFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<java.lang.String>,org.joda.time.DateMidnight> fromStringFieldCollection(org.joda.time.Chronology chronology)
A DateMidnight is created from the given String Collection. Year, month, day can be used. If not all of them set, the last ones will be set to 1 The result will be created with the given Chronology

Parameters:
chronology -

fromStringFieldArray

public static final org.op4j.functions.Function<java.lang.String[],org.joda.time.DateMidnight> fromStringFieldArray()
A DateMidnight is created from the given String array. Year, month, day can be used. If not all of them set, the last ones will be set to 1.


fromStringFieldArray

public static final org.op4j.functions.Function<java.lang.String[],org.joda.time.DateMidnight> fromStringFieldArray(org.joda.time.Chronology chronology)
A DateMidnight is created from the given String array. Year, month, day can be used. If not all of them set, the last ones will be set to 1 The result will be created with the given Chronology

Parameters:
chronology -

fromCalendar

public static final <T extends java.util.Calendar> org.op4j.functions.Function<T,org.joda.time.DateMidnight> fromCalendar()
It converts a Calendar into a DateMidnight


fromCalendar

public static final <T extends java.util.Calendar> org.op4j.functions.Function<T,org.joda.time.DateMidnight> fromCalendar(org.joda.time.DateTimeZone dateTimeZone)
It converts a Calendar into a DateMidnight in the given DateTimeZone

Parameters:
dateTimeZone -

fromCalendar

public static final <T extends java.util.Calendar> org.op4j.functions.Function<T,org.joda.time.DateMidnight> fromCalendar(org.joda.time.Chronology chronology)
It converts a Calendar into a DateMidnight with the given Chronology

Parameters:
chronology -


Copyright © 2010 The OP4J team. All Rights Reserved.