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()
           
static
<T extends org.joda.time.base.BaseDateTime>
org.op4j.functions.Function<T[],org.joda.time.Period>
fromBaseDateTimeFieldArray(org.joda.time.Chronology chronology)
           
static
<T extends org.joda.time.base.BaseDateTime>
org.op4j.functions.Function<T[],org.joda.time.Period>
fromBaseDateTimeFieldArray(org.joda.time.PeriodType 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)
           
static org.op4j.functions.Function<java.util.Collection<? extends org.joda.time.base.BaseDateTime>,org.joda.time.Period> fromBaseDateTimeFieldCollection()
           
static org.op4j.functions.Function<java.util.Collection<? extends org.joda.time.base.BaseDateTime>,org.joda.time.Period> fromBaseDateTimeFieldCollection(org.joda.time.Chronology 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)
           
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)
           
static
<T extends java.util.Calendar>
org.op4j.functions.Function<T[],org.joda.time.Period>
fromCalendarFieldArray()
           
static
<T extends java.util.Calendar>
org.op4j.functions.Function<T[],org.joda.time.Period>
fromCalendarFieldArray(org.joda.time.Chronology chronology)
           
static
<T extends java.util.Calendar>
org.op4j.functions.Function<T[],org.joda.time.Period>
fromCalendarFieldArray(org.joda.time.PeriodType 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)
           
static org.op4j.functions.Function<java.util.Collection<? extends java.util.Calendar>,org.joda.time.Period> fromCalendarFieldCollection()
           
static org.op4j.functions.Function<java.util.Collection<? extends java.util.Calendar>,org.joda.time.Period> fromCalendarFieldCollection(org.joda.time.Chronology chronology)
           
static org.op4j.functions.Function<java.util.Collection<? extends java.util.Calendar>,org.joda.time.Period> fromCalendarFieldCollection(org.joda.time.PeriodType 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)
           
static
<T extends java.util.Date>
org.op4j.functions.Function<T[],org.joda.time.Period>
fromDateFieldArray()
           
static
<T extends java.util.Date>
org.op4j.functions.Function<T[],org.joda.time.Period>
fromDateFieldArray(org.joda.time.Chronology chronology)
           
static
<T extends java.util.Date>
org.op4j.functions.Function<T[],org.joda.time.Period>
fromDateFieldArray(org.joda.time.PeriodType periodType)
           
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)
           
static org.op4j.functions.Function<java.util.Collection<? extends java.util.Date>,org.joda.time.Period> fromDateFieldCollection()
           
static org.op4j.functions.Function<java.util.Collection<? extends java.util.Date>,org.joda.time.Period> fromDateFieldCollection(org.joda.time.Chronology chronology)
           
static org.op4j.functions.Function<java.util.Collection<? extends java.util.Date>,org.joda.time.Period> fromDateFieldCollection(org.joda.time.PeriodType periodType)
           
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)
           
static org.op4j.functions.Function<java.lang.Integer[],org.joda.time.Period> fromIntegerFieldArray()
           
static org.op4j.functions.Function<java.lang.Integer[],org.joda.time.Period> fromIntegerFieldArray(org.joda.time.PeriodType periodType)
           
static org.op4j.functions.Function<java.util.Collection<java.lang.Integer>,org.joda.time.Period> fromIntegerFieldCollection()
          A Period is created either: From a set of Integer representing the hours, minutes, seconds and milliseconds From a set 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)
           
static org.op4j.functions.Function<java.lang.Long,org.joda.time.Period> fromLong()
           
static org.op4j.functions.Function<java.lang.Long,org.joda.time.Period> fromLong(org.joda.time.Chronology chronology)
           
static org.op4j.functions.Function<java.lang.Long,org.joda.time.Period> fromLong(org.joda.time.PeriodType periodType)
           
static org.op4j.functions.Function<java.lang.Long,org.joda.time.Period> fromLong(org.joda.time.PeriodType periodType, org.joda.time.Chronology chronology)
           
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()
           
static org.op4j.functions.Function<java.lang.String[],org.joda.time.Period> fromStringFieldArray(org.joda.time.PeriodType periodType)
           
static org.op4j.functions.Function<java.util.Collection<java.lang.String>,org.joda.time.Period> fromStringFieldCollection()
          A Period is created either: From a set of String representing the hours, minutes, seconds and milliseconds From a set 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)
           
static org.op4j.functions.Function<java.sql.Timestamp[],org.joda.time.Period> fromTimestampFieldArray()
           
static org.op4j.functions.Function<java.sql.Timestamp[],org.joda.time.Period> fromTimestampFieldArray(org.joda.time.Chronology chronology)
           
static org.op4j.functions.Function<java.sql.Timestamp[],org.joda.time.Period> fromTimestampFieldArray(org.joda.time.PeriodType periodType)
           
static org.op4j.functions.Function<java.sql.Timestamp[],org.joda.time.Period> fromTimestampFieldArray(org.joda.time.PeriodType periodType, org.joda.time.Chronology chronology)
           
static org.op4j.functions.Function<java.util.Collection<java.sql.Timestamp>,org.joda.time.Period> fromTimestampFieldCollection()
           
static org.op4j.functions.Function<java.util.Collection<java.sql.Timestamp>,org.joda.time.Period> fromTimestampFieldCollection(org.joda.time.Chronology chronology)
           
static org.op4j.functions.Function<java.util.Collection<java.sql.Timestamp>,org.joda.time.Period> fromTimestampFieldCollection(org.joda.time.PeriodType periodType)
           
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)
           
 
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()
Returns:
the Period created from the Date target elements given as the start and end of such Period

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)
Parameters:
chronology - Chronology the Period is being created with
Returns:
the Period created from the Date target elements given as the start and end of such Period

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)

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)

fromDateFieldArray

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

fromDateFieldArray

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

fromDateFieldArray

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

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)

fromTimestampFieldCollection

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

fromTimestampFieldCollection

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

fromTimestampFieldCollection

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

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)

fromTimestampFieldArray

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

fromTimestampFieldArray

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

fromTimestampFieldArray

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

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)

fromLong

public static final org.op4j.functions.Function<java.lang.Long,org.joda.time.Period> fromLong()
Returns:
a Period with the given Duration in milliseconds

fromLong

public static final org.op4j.functions.Function<java.lang.Long,org.joda.time.Period> fromLong(org.joda.time.Chronology chronology)
Parameters:
chronology - the Chronology the returned Period will be created with
Returns:
a Period with the given Duration in milliseconds

fromLong

public static final org.op4j.functions.Function<java.lang.Long,org.joda.time.Period> fromLong(org.joda.time.PeriodType periodType)
Parameters:
periodType - the PeriodType the returned Period will be created with
Returns:
a Period with the given Duration in milliseconds

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)
Parameters:
periodType - the PeriodType the returned Period will be created with
chronology - the Chronology the returned Period will be created with
Returns:
a Period with the given Duration in milliseconds

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 represented by the given start and end instants

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 the Period will be created with
Returns:
the Period represented by the given start and end instants

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 - PeriodType the Period will be created with
Returns:
the Period represented by the given start and end instants

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 - PeriodType the Period will be created with
chronology - Chronology the Period will be created with
Returns:
the Period represented by the given start and end instants

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 represented by the given start and end instants

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 the Period will be created with
Returns:
the Period represented by the given start and end instants

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 - PeriodType the Period will be created with
Returns:
the Period represented by the given start and end instants

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 - PeriodType the Period will be created with
chronology - Chronology the Period will be created with
Returns:
the Period represented by the given start and end instants

fromCalendarFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<? extends java.util.Calendar>,org.joda.time.Period> fromCalendarFieldCollection()
Returns:
the Period represented by the given start and end instants

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)

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)

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)

fromCalendarFieldArray

public static final <T extends java.util.Calendar> org.op4j.functions.Function<T[],org.joda.time.Period> fromCalendarFieldArray()
Returns:
the Period represented by the given start and end instants

fromCalendarFieldArray

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

fromCalendarFieldArray

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

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)

fromBaseDateTimeFieldCollection

public static final org.op4j.functions.Function<java.util.Collection<? extends org.joda.time.base.BaseDateTime>,org.joda.time.Period> fromBaseDateTimeFieldCollection()
Returns:
the Period represented by the given start and end BaseDateTime elements

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)

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)

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)

fromBaseDateTimeFieldArray

public static final <T extends org.joda.time.base.BaseDateTime> org.op4j.functions.Function<T[],org.joda.time.Period> fromBaseDateTimeFieldArray()
Returns:
the Period represented by the given start and end BaseDateTime elements

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)

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)

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)

fromIntegerFieldCollection

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

Returns:
the Period

fromIntegerFieldCollection

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

fromIntegerFieldArray

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

fromIntegerFieldArray

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

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

fromStringFieldCollection

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

fromStringFieldArray

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

fromStringFieldArray

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


Copyright © 2010 The OP4J team. All Rights Reserved.