org.op4j.jodatime.functions
Class FnPeriod

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

public final class FnPeriod
extends Object

Since:
1.1
Author:
Soraya Sánchez Labandeira

Method Summary
static
<T extends org.joda.time.base.BaseDateTime>
org.op4j.functions.Function<T[],org.joda.time.Period>
baseDateTimeFieldArrayToPeriod()
           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>
baseDateTimeFieldArrayToPeriod(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>
baseDateTimeFieldArrayToPeriod(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>
baseDateTimeFieldArrayToPeriod(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<Collection<? extends org.joda.time.base.BaseDateTime>,org.joda.time.Period> baseDateTimeFieldCollectionToPeriod()
           It creates a Period represented by the given start and end instants
static org.op4j.functions.Function<Collection<? extends org.joda.time.base.BaseDateTime>,org.joda.time.Period> baseDateTimeFieldCollectionToPeriod(org.joda.time.Chronology chronology)
           It creates a Period with the specified Chronology.
static org.op4j.functions.Function<Collection<? extends org.joda.time.base.BaseDateTime>,org.joda.time.Period> baseDateTimeFieldCollectionToPeriod(org.joda.time.PeriodType periodType)
           It creates a Period with the specified PeriodType.
static org.op4j.functions.Function<Collection<? extends org.joda.time.base.BaseDateTime>,org.joda.time.Period> baseDateTimeFieldCollectionToPeriod(org.joda.time.PeriodType periodType, org.joda.time.Chronology chronology)
           It creates a Period with the specified PeriodType and Chronology.
static
<T extends Calendar>
org.op4j.functions.Function<T[],org.joda.time.Period>
calendarFieldArrayToPeriod()
           It creates a Period represented by the given start and end instants
static
<T extends Calendar>
org.op4j.functions.Function<T[],org.joda.time.Period>
calendarFieldArrayToPeriod(org.joda.time.Chronology chronology)
           It creates a Period with the specified Chronology.
static
<T extends Calendar>
org.op4j.functions.Function<T[],org.joda.time.Period>
calendarFieldArrayToPeriod(org.joda.time.PeriodType periodType)
           It creates a Period with the specified PeriodType.
static
<T extends Calendar>
org.op4j.functions.Function<T[],org.joda.time.Period>
calendarFieldArrayToPeriod(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<Collection<? extends Calendar>,org.joda.time.Period> calendarFieldCollectionToPeriod()
           It creates a Period represented by the given start and end instants.
static org.op4j.functions.Function<Collection<? extends Calendar>,org.joda.time.Period> calendarFieldCollectionToPeriod(org.joda.time.Chronology chronology)
           It creates a Period with the specified Chronology.
static org.op4j.functions.Function<Collection<? extends Calendar>,org.joda.time.Period> calendarFieldCollectionToPeriod(org.joda.time.PeriodType periodType)
           It creates a Period with the specified PeriodType.
static org.op4j.functions.Function<Collection<? extends Calendar>,org.joda.time.Period> calendarFieldCollectionToPeriod(org.joda.time.PeriodType periodType, org.joda.time.Chronology chronology)
           It creates a Period with the specified PeriodType and Chronology.
static
<T extends Date>
org.op4j.functions.Function<T[],org.joda.time.Period>
dateFieldArrayToPeriod()
           The function receives an Array of two Date elements used as the start and end of the Period it creates
static
<T extends Date>
org.op4j.functions.Function<T[],org.joda.time.Period>
dateFieldArrayToPeriod(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 Date>
org.op4j.functions.Function<T[],org.joda.time.Period>
dateFieldArrayToPeriod(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 Date>
org.op4j.functions.Function<T[],org.joda.time.Period>
dateFieldArrayToPeriod(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<Collection<? extends Date>,org.joda.time.Period> dateFieldCollectionToPeriod()
           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<Collection<? extends Date>,org.joda.time.Period> dateFieldCollectionToPeriod(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<Collection<? extends Date>,org.joda.time.Period> dateFieldCollectionToPeriod(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<Collection<? extends Date>,org.joda.time.Period> dateFieldCollectionToPeriod(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<Integer[],org.joda.time.Period> integerFieldArrayToPeriod()
           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<Integer[],org.joda.time.Period> integerFieldArrayToPeriod(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<Collection<Integer>,org.joda.time.Period> integerFieldCollectionToPeriod()
           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<Collection<Integer>,org.joda.time.Period> integerFieldCollectionToPeriod(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<Long[],org.joda.time.Period> longFieldArrayToPeriod()
           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<Long[],org.joda.time.Period> longFieldArrayToPeriod(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<Long[],org.joda.time.Period> longFieldArrayToPeriod(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<Long[],org.joda.time.Period> longFieldArrayToPeriod(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<Collection<Long>,org.joda.time.Period> longFieldCollectionToPeriod()
           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<Collection<Long>,org.joda.time.Period> longFieldCollectionToPeriod(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<Collection<Long>,org.joda.time.Period> longFieldCollectionToPeriod(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<Collection<Long>,org.joda.time.Period> longFieldCollectionToPeriod(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<Long,org.joda.time.Period> longToPeriod()
           The function receives a Long representing the Period duration in milliseconds and creates a Period with such duration
static org.op4j.functions.Function<Long,org.joda.time.Period> longToPeriod(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<Long,org.joda.time.Period> longToPeriod(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<Long,org.joda.time.Period> longToPeriod(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<String[],org.joda.time.Period> strFieldArrayToPeriod()
           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<String[],org.joda.time.Period> strFieldArrayToPeriod(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<Collection<String>,org.joda.time.Period> strFieldCollectionToPeriod()
           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<Collection<String>,org.joda.time.Period> strFieldCollectionToPeriod(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<Timestamp[],org.joda.time.Period> timestampFieldArrayToPeriod()
           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<Timestamp[],org.joda.time.Period> timestampFieldArrayToPeriod(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<Timestamp[],org.joda.time.Period> timestampFieldArrayToPeriod(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<Timestamp[],org.joda.time.Period> timestampFieldArrayToPeriod(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<Collection<Timestamp>,org.joda.time.Period> timestampFieldCollectionToPeriod()
           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<Collection<Timestamp>,org.joda.time.Period> timestampFieldCollectionToPeriod(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<Collection<Timestamp>,org.joda.time.Period> timestampFieldCollectionToPeriod(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<Collection<Timestamp>,org.joda.time.Period> timestampFieldCollectionToPeriod(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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

dateFieldCollectionToPeriod

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

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

dateFieldCollectionToPeriod

public static final org.op4j.functions.Function<Collection<? extends Date>,org.joda.time.Period> dateFieldCollectionToPeriod(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

dateFieldCollectionToPeriod

public static final org.op4j.functions.Function<Collection<? extends Date>,org.joda.time.Period> dateFieldCollectionToPeriod(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

dateFieldCollectionToPeriod

public static final org.op4j.functions.Function<Collection<? extends Date>,org.joda.time.Period> dateFieldCollectionToPeriod(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

dateFieldArrayToPeriod

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

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

dateFieldArrayToPeriod

public static final <T extends Date> org.op4j.functions.Function<T[],org.joda.time.Period> dateFieldArrayToPeriod(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

dateFieldArrayToPeriod

public static final <T extends Date> org.op4j.functions.Function<T[],org.joda.time.Period> dateFieldArrayToPeriod(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

dateFieldArrayToPeriod

public static final <T extends Date> org.op4j.functions.Function<T[],org.joda.time.Period> dateFieldArrayToPeriod(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

timestampFieldCollectionToPeriod

public static final org.op4j.functions.Function<Collection<Timestamp>,org.joda.time.Period> timestampFieldCollectionToPeriod()

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

timestampFieldCollectionToPeriod

public static final org.op4j.functions.Function<Collection<Timestamp>,org.joda.time.Period> timestampFieldCollectionToPeriod(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

timestampFieldCollectionToPeriod

public static final org.op4j.functions.Function<Collection<Timestamp>,org.joda.time.Period> timestampFieldCollectionToPeriod(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

timestampFieldCollectionToPeriod

public static final org.op4j.functions.Function<Collection<Timestamp>,org.joda.time.Period> timestampFieldCollectionToPeriod(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

timestampFieldArrayToPeriod

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

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

timestampFieldArrayToPeriod

public static final org.op4j.functions.Function<Timestamp[],org.joda.time.Period> timestampFieldArrayToPeriod(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

timestampFieldArrayToPeriod

public static final org.op4j.functions.Function<Timestamp[],org.joda.time.Period> timestampFieldArrayToPeriod(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

timestampFieldArrayToPeriod

public static final org.op4j.functions.Function<Timestamp[],org.joda.time.Period> timestampFieldArrayToPeriod(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

longToPeriod

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

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

longToPeriod

public static final org.op4j.functions.Function<Long,org.joda.time.Period> longToPeriod(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

longToPeriod

public static final org.op4j.functions.Function<Long,org.joda.time.Period> longToPeriod(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

longToPeriod

public static final org.op4j.functions.Function<Long,org.joda.time.Period> longToPeriod(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

longFieldCollectionToPeriod

public static final org.op4j.functions.Function<Collection<Long>,org.joda.time.Period> longFieldCollectionToPeriod()

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

longFieldCollectionToPeriod

public static final org.op4j.functions.Function<Collection<Long>,org.joda.time.Period> longFieldCollectionToPeriod(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

longFieldCollectionToPeriod

public static final org.op4j.functions.Function<Collection<Long>,org.joda.time.Period> longFieldCollectionToPeriod(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

longFieldCollectionToPeriod

public static final org.op4j.functions.Function<Collection<Long>,org.joda.time.Period> longFieldCollectionToPeriod(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

longFieldArrayToPeriod

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

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

longFieldArrayToPeriod

public static final org.op4j.functions.Function<Long[],org.joda.time.Period> longFieldArrayToPeriod(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

longFieldArrayToPeriod

public static final org.op4j.functions.Function<Long[],org.joda.time.Period> longFieldArrayToPeriod(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

longFieldArrayToPeriod

public static final org.op4j.functions.Function<Long[],org.joda.time.Period> longFieldArrayToPeriod(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

calendarFieldCollectionToPeriod

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

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

calendarFieldCollectionToPeriod

public static final org.op4j.functions.Function<Collection<? extends Calendar>,org.joda.time.Period> calendarFieldCollectionToPeriod(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

calendarFieldCollectionToPeriod

public static final org.op4j.functions.Function<Collection<? extends Calendar>,org.joda.time.Period> calendarFieldCollectionToPeriod(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

calendarFieldCollectionToPeriod

public static final org.op4j.functions.Function<Collection<? extends Calendar>,org.joda.time.Period> calendarFieldCollectionToPeriod(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

calendarFieldArrayToPeriod

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

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

Returns:
the Period created from the input

calendarFieldArrayToPeriod

public static final <T extends Calendar> org.op4j.functions.Function<T[],org.joda.time.Period> calendarFieldArrayToPeriod(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

calendarFieldArrayToPeriod

public static final <T extends Calendar> org.op4j.functions.Function<T[],org.joda.time.Period> calendarFieldArrayToPeriod(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

calendarFieldArrayToPeriod

public static final <T extends Calendar> org.op4j.functions.Function<T[],org.joda.time.Period> calendarFieldArrayToPeriod(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

baseDateTimeFieldCollectionToPeriod

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

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

Returns:
the Period created from the input

baseDateTimeFieldCollectionToPeriod

public static final org.op4j.functions.Function<Collection<? extends org.joda.time.base.BaseDateTime>,org.joda.time.Period> baseDateTimeFieldCollectionToPeriod(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

baseDateTimeFieldCollectionToPeriod

public static final org.op4j.functions.Function<Collection<? extends org.joda.time.base.BaseDateTime>,org.joda.time.Period> baseDateTimeFieldCollectionToPeriod(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

baseDateTimeFieldCollectionToPeriod

public static final org.op4j.functions.Function<Collection<? extends org.joda.time.base.BaseDateTime>,org.joda.time.Period> baseDateTimeFieldCollectionToPeriod(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

baseDateTimeFieldArrayToPeriod

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

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

Returns:
the Period created from the input

baseDateTimeFieldArrayToPeriod

public static final <T extends org.joda.time.base.BaseDateTime> org.op4j.functions.Function<T[],org.joda.time.Period> baseDateTimeFieldArrayToPeriod(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

baseDateTimeFieldArrayToPeriod

public static final <T extends org.joda.time.base.BaseDateTime> org.op4j.functions.Function<T[],org.joda.time.Period> baseDateTimeFieldArrayToPeriod(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

baseDateTimeFieldArrayToPeriod

public static final <T extends org.joda.time.base.BaseDateTime> org.op4j.functions.Function<T[],org.joda.time.Period> baseDateTimeFieldArrayToPeriod(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

integerFieldCollectionToPeriod

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

It creates a Period either:

Returns:
the Period created from the input

integerFieldCollectionToPeriod

public static final org.op4j.functions.Function<Collection<Integer>,org.joda.time.Period> integerFieldCollectionToPeriod(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

integerFieldArrayToPeriod

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

It creates a Period either:

Returns:
the Period created from the input

integerFieldArrayToPeriod

public static final org.op4j.functions.Function<Integer[],org.joda.time.Period> integerFieldArrayToPeriod(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

strFieldCollectionToPeriod

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

A Period is created either:

Returns:
the Period created from the input

strFieldCollectionToPeriod

public static final org.op4j.functions.Function<Collection<String>,org.joda.time.Period> strFieldCollectionToPeriod(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

strFieldArrayToPeriod

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

A Period is created either:

Returns:
the Period created from the input

strFieldArrayToPeriod

public static final org.op4j.functions.Function<String[],org.joda.time.Period> strFieldArrayToPeriod(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 © 2012 The OP4J team. All Rights Reserved.