org.op4j.jodatime.functions
Class FnToPeriod

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

public final class FnToPeriod
extends java.lang.Object

Since:
1.0
Author:
Soraya Sánchez Labandeira

Method Summary
static
<T extends org.joda.time.base.BaseDateTime>
org.op4j.functions.Function<T[],org.joda.time.Period>
fromBaseDateTimeFieldArray()
           It creates a Period represented by the given start and end instants
static
<T extends org.joda.time.base.BaseDateTime>
org.op4j.functions.Function<T[],org.joda.time.Period>
fromBaseDateTimeFieldArray(org.joda.time.Chronology chronology)
           It creates a Period with the specified Chronology.
static
<T extends org.joda.time.base.BaseDateTime>
org.op4j.functions.Function<T[],org.joda.time.Period>
fromBaseDateTimeFieldArray(org.joda.time.PeriodType periodType)
           It creates a Period with the specified PeriodType.
static
<T extends org.joda.time.base.BaseDateTime>
org.op4j.functions.Function<T[],org.joda.time.Period>
fromBaseDateTimeFieldArray(org.joda.time.PeriodType periodType, org.joda.time.Chronology chronology)
           It creates a Period with the specified PeriodType and Chronology.
static org.op4j.functions.Function<java.util.Collection<? extends org.joda.time.base.BaseDateTime>,org.joda.time.Period> fromBaseDateTimeFieldCollection()
           It creates a Period represented by the given start and end instants
static org.op4j.functions.Function<java.util.Collection<? extends org.joda.time.base.BaseDateTime>,org.joda.time.Period> fromBaseDateTimeFieldCollection(org.joda.time.Chronology chronology)
           It creates a Period with the specified Chronology.
static org.op4j.functions.Function<java.util.Collection<? extends org.joda.time.base.BaseDateTime>,org.joda.time.Period> fromBaseDateTimeFieldCollection(org.joda.time.PeriodType periodType)
           It creates a Period with the specified PeriodType.
static org.op4j.functions.Function<java.util.Collection<? extends org.joda.time.base.BaseDateTime>,org.joda.time.Period> fromBaseDateTimeFieldCollection(org.joda.time.PeriodType periodType, org.joda.time.Chronology chronology)
           It creates a Period with the specified PeriodType and Chronology.
static
<T extends java.util.Calendar>
org.op4j.functions.Function<T[],org.joda.time.Period>
fromCalendarFieldArray()
           It creates a Period represented by the given start and end instants
static
<T extends java.util.Calendar>
org.op4j.functions.Function<T[],org.joda.time.Period>
fromCalendarFieldArray(org.joda.time.Chronology chronology)
           It creates a Period with the specified Chronology.
static
<T extends java.util.Calendar>
org.op4j.functions.Function<T[],org.joda.time.Period>
fromCalendarFieldArray(org.joda.time.PeriodType periodType)
           It creates a Period with the specified PeriodType.
static
<T extends java.util.Calendar>
org.op4j.functions.Function<T[],org.joda.time.Period>
fromCalendarFieldArray(org.joda.time.PeriodType periodType, org.joda.time.Chronology chronology)
           It creates a Period with the specified PeriodType and Chronology.
static org.op4j.functions.Function<java.util.Collection<? extends java.util.Calendar>,org.joda.time.Period> fromCalendarFieldCollection()
           It creates a Period represented by the given start and end instants.
static org.op4j.functions.Function<java.util.Collection<? extends java.util.Calendar>,org.joda.time.Period> fromCalendarFieldCollection(org.joda.time.Chronology chronology)
           It creates a Period with the specified Chronology.
static org.op4j.functions.Function<java.util.Collection<? extends java.util.Calendar>,org.joda.time.Period> fromCalendarFieldCollection(org.joda.time.PeriodType periodType)
           It creates a Period with the specified PeriodType.
static org.op4j.functions.Function<java.util.Collection<? extends java.util.Calendar>,org.joda.time.Period> fromCalendarFieldCollection(org.joda.time.PeriodType periodType, org.joda.time.Chronology chronology)
           It creates a Period with the specified PeriodType and Chronology.
static
<T extends java.util.Date>
org.op4j.functions.Function<T[],org.joda.time.Period>
fromDateFieldArray()
           The function receives an Array of two Date elements used as the start and end of the Period it creates
static
<T extends java.util.Date>
org.op4j.functions.Function<T[],org.joda.time.Period>
fromDateFieldArray(org.joda.time.Chronology chronology)
           The function receives an Array of two Date elements used as the start and end of the Period it creates.
static
<T extends java.util.Date>
org.op4j.functions.Function<T[],org.joda.time.Period>
fromDateFieldArray(org.joda.time.PeriodType periodType)
           The function receives an Array of two Date elements used as the start and end of the Period it creates.
static
<T extends java.util.Date>
org.op4j.functions.Function<T[],org.joda.time.Period>
fromDateFieldArray(org.joda.time.PeriodType periodType, org.joda.time.Chronology chronology)
           The function receives an Array of two Date elements used as the start and end of the Period it creates.
static org.op4j.functions.Function<java.util.Collection<? extends java.util.Date>,org.joda.time.Period> fromDateFieldCollection()
           The function receives a Collection of two Date elements used as the start and end of the Period it creates
static org.op4j.functions.Function<java.util.Collection<? extends java.util.Date>,org.joda.time.Period> fromDateFieldCollection(org.joda.time.Chronology chronology)
           The function receives a Collection of two Date elements used as the start and end of the Period it creates.
static org.op4j.functions.Function<java.util.Collection<? extends java.util.Date>,org.joda.time.Period> fromDateFieldCollection(org.joda.time.PeriodType periodType)
           The function receives a Collection of two Date elements used as the start and end of the Period it creates.
static org.op4j.functions.Function<java.util.Collection<? extends java.util.Date>,org.joda.time.Period> fromDateFieldCollection(org.joda.time.PeriodType periodType, org.joda.time.Chronology chronology)
           The function receives a Collection of two Date elements used as the start and end of the Period it creates.
static org.op4j.functions.Function<java.lang.Integer[],org.joda.time.Period> fromIntegerFieldArray()
           It creates a Period either: From an Integer[] representing the hours, minutes, seconds and milliseconds From an Integer[] representing the years, months, weeks, days, hours, minutes, seconds and milliseconds
static org.op4j.functions.Function<java.lang.Integer[],org.joda.time.Period> fromIntegerFieldArray(org.joda.time.PeriodType periodType)
           It creates a Period with the specified PeriodType either: From an Integer[] representing the hours, minutes, seconds and milliseconds From an Integer[] representing the years, months, weeks, days, hours, minutes, seconds and milliseconds
static org.op4j.functions.Function<java.util.Collection<java.lang.Integer>,org.joda.time.Period> fromIntegerFieldCollection()
           It creates a Period either: From a Collection of Integer representing the hours, minutes, seconds and milliseconds From a Collection of Integer representing the years, months, weeks, days, hours, minutes, seconds and milliseconds
static org.op4j.functions.Function<java.util.Collection<java.lang.Integer>,org.joda.time.Period> fromIntegerFieldCollection(org.joda.time.PeriodType periodType)
           It creates a Period with the specified PeriodType either: From a Collection of Integer representing the hours, minutes, seconds and milliseconds From a Collection of Integer representing the years, months, weeks, days, hours, minutes, seconds and milliseconds
static org.op4j.functions.Function<java.lang.Long,org.joda.time.Period> fromLong()
           The function receives a Long representing the Period duration in milliseconds and creates a Period with such duration
static org.op4j.functions.Function<java.lang.Long,org.joda.time.Period> fromLong(org.joda.time.Chronology chronology)
           Creates a Period with the specified Chronology and, as the duration, the input received by this function (in milliseconds)
static org.op4j.functions.Function<java.lang.Long,org.joda.time.Period> fromLong(org.joda.time.PeriodType periodType)
           Creates a Period with the specified PeriodType and, as the duration, the input received by this function (in milliseconds)
static org.op4j.functions.Function<java.lang.Long,org.joda.time.Period> fromLong(org.joda.time.PeriodType periodType, org.joda.time.Chronology chronology)
           Creates a Period with the specified PeriodType and Chronology and, as the duration, the input received by this function (in milliseconds)
static org.op4j.functions.Function<java.lang.Long[],org.joda.time.Period> fromLongFieldArray()
           The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned
static org.op4j.functions.Function<java.lang.Long[],org.joda.time.Period> fromLongFieldArray(org.joda.time.Chronology chronology)
           The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned
static org.op4j.functions.Function<java.lang.Long[],org.joda.time.Period> fromLongFieldArray(org.joda.time.PeriodType periodType)
           The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned
static org.op4j.functions.Function<java.lang.Long[],org.joda.time.Period> fromLongFieldArray(org.joda.time.PeriodType periodType, org.joda.time.Chronology chronology)
           The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned
static org.op4j.functions.Function<java.util.Collection<java.lang.Long>,org.joda.time.Period> fromLongFieldCollection()
           The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned
static org.op4j.functions.Function<java.util.Collection<java.lang.Long>,org.joda.time.Period> fromLongFieldCollection(org.joda.time.Chronology chronology)
           The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned
static org.op4j.functions.Function<java.util.Collection<java.lang.Long>,org.joda.time.Period> fromLongFieldCollection(org.joda.time.PeriodType periodType)
           The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned
static org.op4j.functions.Function<java.util.Collection<java.lang.Long>,org.joda.time.Period> fromLongFieldCollection(org.joda.time.PeriodType periodType, org.joda.time.Chronology chronology)
           The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned
static org.op4j.functions.Function<java.lang.String[],org.joda.time.Period> fromStringFieldArray()
           A Period is created either: From a String[] representing the hours, minutes, seconds and milliseconds From a String[] representing the years, months, weeks, days, hours, minutes, seconds and milliseconds
static org.op4j.functions.Function<java.lang.String[],org.joda.time.Period> fromStringFieldArray(org.joda.time.PeriodType periodType)
           A Period is created with the specified PeriodType either: From a String[] representing the hours, minutes, seconds and milliseconds From a String[] representing the years, months, weeks, days, hours, minutes, seconds and milliseconds
static org.op4j.functions.Function<java.util.Collection<java.lang.String>,org.joda.time.Period> fromStringFieldCollection()
           A Period is created either: From a Collection of String representing the hours, minutes, seconds and milliseconds From a Collection of String representing the years, months, weeks, days, hours, minutes, seconds and milliseconds
static org.op4j.functions.Function<java.util.Collection<java.lang.String>,org.joda.time.Period> fromStringFieldCollection(org.joda.time.PeriodType periodType)
           A Period is created with the specified PeriodType either: From a Collection of String representing the hours, minutes, seconds and milliseconds From a Collection of String representing the years, months, weeks, days, hours, minutes, seconds and milliseconds
static org.op4j.functions.Function<java.sql.Timestamp[],org.joda.time.Period> fromTimestampFieldArray()
           The function receives an Array of two Timestamp elements used as the start and end of the Period it creates
static org.op4j.functions.Function<java.sql.Timestamp[],org.joda.time.Period> fromTimestampFieldArray(org.joda.time.Chronology chronology)
           The function receives an Array of two Timestamp elements used as the start and end of the Period it creates.
static org.op4j.functions.Function<java.sql.Timestamp[],org.joda.time.Period> fromTimestampFieldArray(org.joda.time.PeriodType periodType)
           The function receives an Array of two Timestamp elements used as the start and end of the Period it creates.
static org.op4j.functions.Function<java.sql.Timestamp[],org.joda.time.Period> fromTimestampFieldArray(org.joda.time.PeriodType periodType, org.joda.time.Chronology chronology)
           The function receives an Array of two Timestamp elements used as the start and end of the Period it creates.
static org.op4j.functions.Function<java.util.Collection<java.sql.Timestamp>,org.joda.time.Period> fromTimestampFieldCollection()
           The function receives a Collection of two Timestamp elements used as the start and end of the Period it creates
static org.op4j.functions.Function<java.util.Collection<java.sql.Timestamp>,org.joda.time.Period> fromTimestampFieldCollection(org.joda.time.Chronology chronology)
           The function receives a Collection of two Timestamp elements used as the start and end of the Period it creates.
static org.op4j.functions.Function<java.util.Collection<java.sql.Timestamp>,org.joda.time.Period> fromTimestampFieldCollection(org.joda.time.PeriodType periodType)
           The function receives a Collection of two Timestamp elements used as the start and end of the Period it creates.
static org.op4j.functions.Function<java.util.Collection<java.sql.Timestamp>,org.joda.time.Period> fromTimestampFieldCollection(org.joda.time.PeriodType periodType, org.joda.time.Chronology chronology)
           The function receives a Collection of two Timestamp elements used as the start and end of the Period it creates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fromDateFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<? extends java.util.Date>,org.joda.time.Period> fromDateFieldCollection()

The function receives a Collection of two Date elements used as the start and end of the Period it creates

Returns:
the Period created from the input

fromDateFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<? extends java.util.Date>,org.joda.time.Period> fromDateFieldCollection(org.joda.time.Chronology chronology)

The function receives a Collection of two Date elements used as the start and end of the Period it creates. The Period will be created using the specified Chronology

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

fromDateFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<? extends java.util.Date>,org.joda.time.Period> fromDateFieldCollection(org.joda.time.PeriodType periodType)

The function receives a Collection of two Date elements used as the start and end of the Period it creates. The Period will be created using the specified PeriodType

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
Returns:
the Period created from the input and arguments

fromDateFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<? extends java.util.Date>,org.joda.time.Period> fromDateFieldCollection(org.joda.time.PeriodType periodType,
                                                                                                                                             org.joda.time.Chronology chronology)

The function receives a Collection of two Date elements used as the start and end of the Period it creates. The Period will be created using the specified PeriodType and Chronology

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
chronology - Chronology to be used
Returns:
the Period created from the input and arguments

fromDateFieldArray

public static final <T extends java.util.Date> org.op4j.functions.Function<T[],org.joda.time.Period> fromDateFieldArray()

The function receives an Array of two Date elements used as the start and end of the Period it creates

Returns:
the Period created from the input

fromDateFieldArray

public static final <T extends java.util.Date> org.op4j.functions.Function<T[],org.joda.time.Period> fromDateFieldArray(org.joda.time.Chronology chronology)

The function receives an Array of two Date elements used as the start and end of the Period it creates. The Period will be created using the specified Chronology

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

fromDateFieldArray

public static final <T extends java.util.Date> org.op4j.functions.Function<T[],org.joda.time.Period> fromDateFieldArray(org.joda.time.PeriodType periodType)

The function receives an Array of two Date elements used as the start and end of the Period it creates. The Period will be created using the specified PeriodType

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
Returns:
the Period created from the input and arguments

fromDateFieldArray

public static final <T extends java.util.Date> org.op4j.functions.Function<T[],org.joda.time.Period> fromDateFieldArray(org.joda.time.PeriodType periodType,
                                                                                                                        org.joda.time.Chronology chronology)

The function receives an Array of two Date elements used as the start and end of the Period it creates. The Period will be created using the specified PeriodType and Chronology

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
chronology - Chronology to be used
Returns:
the Period created from the input and arguments

fromTimestampFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<java.sql.Timestamp>,org.joda.time.Period> fromTimestampFieldCollection()

The function receives a Collection of two Timestamp elements used as the start and end of the Period it creates

Returns:
the Period created from the input

fromTimestampFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<java.sql.Timestamp>,org.joda.time.Period> fromTimestampFieldCollection(org.joda.time.Chronology chronology)

The function receives a Collection of two Timestamp elements used as the start and end of the Period it creates. The Period will be created using the specified Chronology

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

fromTimestampFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<java.sql.Timestamp>,org.joda.time.Period> fromTimestampFieldCollection(org.joda.time.PeriodType periodType)

The function receives a Collection of two Timestamp elements used as the start and end of the Period it creates. The Period will be created using the specified PeriodType

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
Returns:
the Period created from the input and arguments

fromTimestampFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<java.sql.Timestamp>,org.joda.time.Period> fromTimestampFieldCollection(org.joda.time.PeriodType periodType,
                                                                                                                                            org.joda.time.Chronology chronology)

The function receives a Collection of two Timestamp elements used as the start and end of the Period it creates. The Period will be created using the specified specified PeriodType and Chronology

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
chronology - Chronology to be used
Returns:
the Period created from the input and arguments

fromTimestampFieldArray

public static final org.op4j.functions.Function<java.sql.Timestamp[],org.joda.time.Period> fromTimestampFieldArray()

The function receives an Array of two Timestamp elements used as the start and end of the Period it creates

Returns:
the Period created from the input

fromTimestampFieldArray

public static final org.op4j.functions.Function<java.sql.Timestamp[],org.joda.time.Period> fromTimestampFieldArray(org.joda.time.Chronology chronology)

The function receives an Array of two Timestamp elements used as the start and end of the Period it creates. The Period will be created using the specified Chronology

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

fromTimestampFieldArray

public static final org.op4j.functions.Function<java.sql.Timestamp[],org.joda.time.Period> fromTimestampFieldArray(org.joda.time.PeriodType periodType)

The function receives an Array of two Timestamp elements used as the start and end of the Period it creates. The Period will be created using the specified PeriodType

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
Returns:
the Period created from the input and arguments

fromTimestampFieldArray

public static final org.op4j.functions.Function<java.sql.Timestamp[],org.joda.time.Period> fromTimestampFieldArray(org.joda.time.PeriodType periodType,
                                                                                                                   org.joda.time.Chronology chronology)

The function receives an Array of two Timestamp elements used as the start and end of the Period it creates. The Period will be created using the specified specified PeriodType and Chronology

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
chronology - Chronology to be used
Returns:
the Period created from the input and arguments

fromLong

public static final org.op4j.functions.Function<java.lang.Long,org.joda.time.Period> fromLong()

The function receives a Long representing the Period duration in milliseconds and creates a Period with such duration

Returns:
the Period created from the input

fromLong

public static final org.op4j.functions.Function<java.lang.Long,org.joda.time.Period> fromLong(org.joda.time.Chronology chronology)

Creates a Period with the specified Chronology and, as the duration, the input received by this function (in milliseconds)

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

fromLong

public static final org.op4j.functions.Function<java.lang.Long,org.joda.time.Period> fromLong(org.joda.time.PeriodType periodType)

Creates a Period with the specified PeriodType and, as the duration, the input received by this function (in milliseconds)

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
Returns:
the Period created from the input and arguments

fromLong

public static final org.op4j.functions.Function<java.lang.Long,org.joda.time.Period> fromLong(org.joda.time.PeriodType periodType,
                                                                                              org.joda.time.Chronology chronology)

Creates a Period with the specified PeriodType and Chronology and, as the duration, the input received by this function (in milliseconds)

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
chronology - Chronology to be used
Returns:
the Period created from the input and arguments

fromLongFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<java.lang.Long>,org.joda.time.Period> fromLongFieldCollection()

The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned

Returns:
the Period created from the input

fromLongFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<java.lang.Long>,org.joda.time.Period> fromLongFieldCollection(org.joda.time.Chronology chronology)

The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned

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

fromLongFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<java.lang.Long>,org.joda.time.Period> fromLongFieldCollection(org.joda.time.PeriodType periodType)

The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
Returns:
the Period created from the input and arguments

fromLongFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<java.lang.Long>,org.joda.time.Period> fromLongFieldCollection(org.joda.time.PeriodType periodType,
                                                                                                                                   org.joda.time.Chronology chronology)

The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
chronology - Chronology to be used
Returns:
the Period created from the input and arguments

fromLongFieldArray

public static final org.op4j.functions.Function<java.lang.Long[],org.joda.time.Period> fromLongFieldArray()

The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned

Returns:
the Period created from the input

fromLongFieldArray

public static final org.op4j.functions.Function<java.lang.Long[],org.joda.time.Period> fromLongFieldArray(org.joda.time.Chronology chronology)

The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned

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

fromLongFieldArray

public static final org.op4j.functions.Function<java.lang.Long[],org.joda.time.Period> fromLongFieldArray(org.joda.time.PeriodType periodType)

The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
Returns:
the Period created from the input and arguments

fromLongFieldArray

public static final org.op4j.functions.Function<java.lang.Long[],org.joda.time.Period> fromLongFieldArray(org.joda.time.PeriodType periodType,
                                                                                                          org.joda.time.Chronology chronology)

The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
chronology - Chronology to be used
Returns:
the Period created from the input and arguments

fromCalendarFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<? extends java.util.Calendar>,org.joda.time.Period> fromCalendarFieldCollection()

It creates a Period represented by the given start and end instants. The input received by the Function must have size 2

Returns:
the Period created from the input

fromCalendarFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<? extends java.util.Calendar>,org.joda.time.Period> fromCalendarFieldCollection(org.joda.time.Chronology chronology)

It creates a Period with the specified Chronology. The input received by the Function must have size 2 and represents the start and end instants of the Period

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

fromCalendarFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<? extends java.util.Calendar>,org.joda.time.Period> fromCalendarFieldCollection(org.joda.time.PeriodType periodType)

It creates a Period with the specified PeriodType. The input received by the Function must have size 2 and represents the start and end instants of the Period

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
Returns:
the Period created from the input and arguments

fromCalendarFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<? extends java.util.Calendar>,org.joda.time.Period> fromCalendarFieldCollection(org.joda.time.PeriodType periodType,
                                                                                                                                                     org.joda.time.Chronology chronology)

It creates a Period with the specified PeriodType and Chronology. The input received by the Function must have size 2 and represents the start and end instants of the Period

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
chronology - Chronology to be used
Returns:
the Period created from the input and arguments

fromCalendarFieldArray

public static final <T extends java.util.Calendar> org.op4j.functions.Function<T[],org.joda.time.Period> fromCalendarFieldArray()

It creates a Period represented by the given start and end instants

Returns:
the Period created from the input

fromCalendarFieldArray

public static final <T extends java.util.Calendar> org.op4j.functions.Function<T[],org.joda.time.Period> fromCalendarFieldArray(org.joda.time.Chronology chronology)

It creates a Period with the specified Chronology. The input received by the Function must have size 2 and represents the start and end instants of the Period

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

fromCalendarFieldArray

public static final <T extends java.util.Calendar> org.op4j.functions.Function<T[],org.joda.time.Period> fromCalendarFieldArray(org.joda.time.PeriodType periodType)

It creates a Period with the specified PeriodType. The input received by the Function must have size 2 and represents the start and end instants of the Period

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
Returns:
the Period created from the input and arguments

fromCalendarFieldArray

public static final <T extends java.util.Calendar> org.op4j.functions.Function<T[],org.joda.time.Period> fromCalendarFieldArray(org.joda.time.PeriodType periodType,
                                                                                                                                org.joda.time.Chronology chronology)

It creates a Period with the specified PeriodType and Chronology. The input received by the Function must have size 2 and represents the start and end instants of the Period

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
chronology - Chronology to be used
Returns:
the Period created from the input and arguments

fromBaseDateTimeFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<? extends org.joda.time.base.BaseDateTime>,org.joda.time.Period> fromBaseDateTimeFieldCollection()

It creates a Period represented by the given start and end instants

Returns:
the Period created from the input

fromBaseDateTimeFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<? extends org.joda.time.base.BaseDateTime>,org.joda.time.Period> fromBaseDateTimeFieldCollection(org.joda.time.Chronology chronology)

It creates a Period with the specified Chronology. The input received by the Function must have size 2 and represents the start and end instants of the Period

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

fromBaseDateTimeFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<? extends org.joda.time.base.BaseDateTime>,org.joda.time.Period> fromBaseDateTimeFieldCollection(org.joda.time.PeriodType periodType)

It creates a Period with the specified PeriodType. The input received by the Function must have size 2 and represents the start and end instants of the Period

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
Returns:
the Period created from the input and arguments

fromBaseDateTimeFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<? extends org.joda.time.base.BaseDateTime>,org.joda.time.Period> fromBaseDateTimeFieldCollection(org.joda.time.PeriodType periodType,
                                                                                                                                                                      org.joda.time.Chronology chronology)

It creates a Period with the specified PeriodType and Chronology. The input received by the Function must have size 2 and represents the start and end instants of the Period

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
chronology - Chronology to be used
Returns:
the Period created from the input and arguments

fromBaseDateTimeFieldArray

public static final <T extends org.joda.time.base.BaseDateTime> org.op4j.functions.Function<T[],org.joda.time.Period> fromBaseDateTimeFieldArray()

It creates a Period represented by the given start and end instants

Returns:
the Period created from the input

fromBaseDateTimeFieldArray

public static final <T extends org.joda.time.base.BaseDateTime> org.op4j.functions.Function<T[],org.joda.time.Period> fromBaseDateTimeFieldArray(org.joda.time.Chronology chronology)

It creates a Period with the specified Chronology. The input received by the Function must have size 2 and represents the start and end instants of the Period

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

fromBaseDateTimeFieldArray

public static final <T extends org.joda.time.base.BaseDateTime> org.op4j.functions.Function<T[],org.joda.time.Period> fromBaseDateTimeFieldArray(org.joda.time.PeriodType periodType)

It creates a Period with the specified PeriodType. The input received by the Function must have size 2 and represents the start and end instants of the Period

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
Returns:
the Period created from the input and arguments

fromBaseDateTimeFieldArray

public static final <T extends org.joda.time.base.BaseDateTime> org.op4j.functions.Function<T[],org.joda.time.Period> fromBaseDateTimeFieldArray(org.joda.time.PeriodType periodType,
                                                                                                                                                 org.joda.time.Chronology chronology)

It creates a Period with the specified PeriodType and Chronology. The input received by the Function must have size 2 and represents the start and end instants of the Period

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
chronology - Chronology to be used
Returns:
the Period created from the input and arguments

fromIntegerFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<java.lang.Integer>,org.joda.time.Period> fromIntegerFieldCollection()

It creates a Period either:

Returns:
the Period created from the input

fromIntegerFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<java.lang.Integer>,org.joda.time.Period> fromIntegerFieldCollection(org.joda.time.PeriodType periodType)

It creates a Period with the specified PeriodType either:

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
Returns:
the Period created from the input and arguments

fromIntegerFieldArray

public static final org.op4j.functions.Function<java.lang.Integer[],org.joda.time.Period> fromIntegerFieldArray()

It creates a Period either:

Returns:
the Period created from the input

fromIntegerFieldArray

public static final org.op4j.functions.Function<java.lang.Integer[],org.joda.time.Period> fromIntegerFieldArray(org.joda.time.PeriodType periodType)

It creates a Period with the specified PeriodType either:

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
Returns:
the Period created from the input and arguments

fromStringFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<java.lang.String>,org.joda.time.Period> fromStringFieldCollection()

A Period is created either:

Returns:
the Period created from the input

fromStringFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<java.lang.String>,org.joda.time.Period> fromStringFieldCollection(org.joda.time.PeriodType periodType)

A Period is created with the specified PeriodType either:

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
Returns:
the Period created from the input and arguments

fromStringFieldArray

public static final org.op4j.functions.Function<java.lang.String[],org.joda.time.Period> fromStringFieldArray()

A Period is created either:

Returns:
the Period created from the input

fromStringFieldArray

public static final org.op4j.functions.Function<java.lang.String[],org.joda.time.Period> fromStringFieldArray(org.joda.time.PeriodType periodType)

A Period is created with the specified PeriodType either:

Parameters:
periodType - the PeriodType to be created. It specifies which duration fields are to be used
Returns:
the Period created from the input and arguments


Copyright © 2010 The OP4J team. All Rights Reserved.