org.op4j.jodatime.functions
Class FnLocalTime

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

public final class FnLocalTime
extends Object

Since:
1.1
Author:
Soraya Sánchez Labandeira

Method Summary
static
<T extends Calendar>
org.op4j.functions.Function<T,org.joda.time.LocalTime>
calendarToLocalTime()
           It converts a Calendar into a LocalTime
static
<T extends Calendar>
org.op4j.functions.Function<T,org.joda.time.LocalTime>
calendarToLocalTime(org.joda.time.Chronology chronology)
           It converts a Calendar into a LocalTime with the given Chronology
static
<T extends Calendar>
org.op4j.functions.Function<T,org.joda.time.LocalTime>
calendarToLocalTime(org.joda.time.DateTimeZone dateTimeZone)
           It converts a Calendar into a LocalTime in the given DateTimeZone
static
<T extends Date>
org.op4j.functions.Function<T,org.joda.time.LocalTime>
dateToLocalTime()
           The given Date is converted into a LocalTime
static
<T extends Date>
org.op4j.functions.Function<T,org.joda.time.LocalTime>
dateToLocalTime(org.joda.time.Chronology chronology)
           The given Date is converted into a LocalTime with the given Chronology
static
<T extends Date>
org.op4j.functions.Function<T,org.joda.time.LocalTime>
dateToLocalTime(org.joda.time.DateTimeZone dateTimeZone)
           The given Date is converted into a LocalTime configured with the given DateTimeZone
static org.op4j.functions.Function<Integer[],org.joda.time.LocalTime> integerFieldArrayToLocalTime()
           A LocalTime is created from the given Integer Array.
static org.op4j.functions.Function<Integer[],org.joda.time.LocalTime> integerFieldArrayToLocalTime(org.joda.time.Chronology chronology)
           A LocalTime is created from the given Integer array with the specified Chronology.
static org.op4j.functions.Function<Collection<Integer>,org.joda.time.LocalTime> integerFieldCollectionToLocalTime()
           A LocalTime is created from the given Integer Collection.
static org.op4j.functions.Function<Collection<Integer>,org.joda.time.LocalTime> integerFieldCollectionToLocalTime(org.joda.time.Chronology chronology)
           A LocalTime is created from the given Integer Collection with the specified Chronology.
static org.op4j.functions.Function<Long,org.joda.time.LocalTime> longToLocalTime()
           The given long representing the time in milliseconds is converted into a LocalTime
static org.op4j.functions.Function<Long,org.joda.time.LocalTime> longToLocalTime(org.joda.time.Chronology chronology)
           The given long representing the time in milliseconds is converted into a LocalTime with the given Chronology
static org.op4j.functions.Function<Long,org.joda.time.LocalTime> longToLocalTime(org.joda.time.DateTimeZone dateTimeZone)
           The given long representing the time in milliseconds is converted into a LocalTime in the given DateTimeZone
static org.op4j.functions.Function<String[],org.joda.time.LocalTime> strFieldArrayToLocalTime()
           A LocalTime is created from the given String array.
static org.op4j.functions.Function<String[],org.joda.time.LocalTime> strFieldArrayToLocalTime(org.joda.time.Chronology chronology)
           A LocalTime is created from the given String array with the specified Chronology The valid input String[] represent: hour (minute, second and millisecond will be set to 0 in the output LocalTime) hour, minute (second and millisecond will be set to 0 in the output LocalTime) hour, minute, second (millisecond will be set to 0 in the output LocalTime) hour, minute, second, millisecond
static org.op4j.functions.Function<Collection<String>,org.joda.time.LocalTime> strFieldCollectionToLocalTime()
           A LocalTime is created from the given String Collection.
static org.op4j.functions.Function<Collection<String>,org.joda.time.LocalTime> strFieldCollectionToLocalTime(org.joda.time.Chronology chronology)
           A LocalTime is created from the given String Collection with the specified Chronology The valid input Collection<String> represent: hour (minute, second and millisecond will be set to 0 in the output LocalTime) hour, minute (second and millisecond will be set to 0 in the output LocalTime) hour, minute, second (millisecond will be set to 0 in the output LocalTime) hour, minute, second, millisecond
static org.op4j.functions.Function<String,org.joda.time.LocalTime> strToLocalTime(String pattern)
           It converts the given String into a LocalTime using the given pattern parameter.
static org.op4j.functions.Function<String,org.joda.time.LocalTime> strToLocalTime(String pattern, org.joda.time.Chronology chronology)
           It converts the given String into a LocalTime using the given pattern parameter with the specified Chronology.
static org.op4j.functions.Function<String,org.joda.time.LocalTime> strToLocalTime(String pattern, org.joda.time.DateTimeZone dateTimeZone)
           It converts the given String into a LocalTime using the given pattern parameter and with the specified DateTimeZone.
static org.op4j.functions.Function<String,org.joda.time.LocalTime> strToLocalTime(String pattern, Locale locale)
           It converts the given String into a LocalTime using the given pattern and Locale parameters
static org.op4j.functions.Function<String,org.joda.time.LocalTime> strToLocalTime(String pattern, Locale locale, org.joda.time.Chronology chronology)
           It converts the given String into a LocalTime using the given pattern and Locale parameters.
static org.op4j.functions.Function<String,org.joda.time.LocalTime> strToLocalTime(String pattern, Locale locale, org.joda.time.DateTimeZone dateTimeZone)
           It converts the given String into a LocalTime using the given pattern and Locale parameters.
static org.op4j.functions.Function<String,org.joda.time.LocalTime> strToLocalTime(String pattern, String locale)
           It converts the given String into a LocalTime using the given pattern and Locale parameters
static org.op4j.functions.Function<String,org.joda.time.LocalTime> strToLocalTime(String pattern, String locale, org.joda.time.Chronology chronology)
           It converts the given String into a LocalTime using the given pattern and Locale parameters.
static org.op4j.functions.Function<String,org.joda.time.LocalTime> strToLocalTime(String pattern, String locale, org.joda.time.DateTimeZone dateTimeZone)
           It converts the given String into a LocalTime using the given pattern and Locale parameters.
static org.op4j.functions.Function<Timestamp,org.joda.time.LocalTime> timestampToLocalTime()
           The given Timestamp is converted into a LocalTime
static org.op4j.functions.Function<Timestamp,org.joda.time.LocalTime> timestampToLocalTime(org.joda.time.Chronology chronology)
           The given Timestamp is converted into a LocalTime with the given Chronology
static org.op4j.functions.Function<Timestamp,org.joda.time.LocalTime> timestampToLocalTime(org.joda.time.DateTimeZone dateTimeZone)
           The given Timestamp is converted into a LocalTime in the given DateTimeZone
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

strToLocalTime

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

It converts the given String into a LocalTime using the given pattern parameter. If the pattern includes either, the name of the month or day of week, a conversion accepting a Locale must be used instead

Parameters:
pattern - string with the format of the input String
Returns:
the LocalTime created from the input and arguments

strToLocalTime

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

It converts the given String into a LocalTime using the given pattern parameter and with the specified DateTimeZone. If the pattern includes either, the name of the month or day of week, a conversion accepting a Locale must be used instead

Parameters:
pattern - string with the format of the input String
dateTimeZone - the the time zone (DateTimeZone) to be used
Returns:
the LocalTime created from the input and arguments

strToLocalTime

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

It converts the given String into a LocalTime using the given pattern parameter with the specified Chronology. If the pattern includes either, the name of the month or day of week, a conversion accepting a Locale must be used instead

Parameters:
pattern - string with the format of the input String
chronology - Chronology to be used
Returns:
the LocalTime created from the input and arguments

strToLocalTime

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

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

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

strToLocalTime

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

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

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

strToLocalTime

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

It converts the given String into a LocalTime using the given pattern and Locale parameters. The DateTime is configured with the given DateTimeZone

Parameters:
pattern - string with the format of the input String
locale - Locale to be used
dateTimeZone - the the time zone (DateTimeZone) to be used
Returns:
the LocalTime created from the input and arguments

strToLocalTime

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

It converts the given String into a LocalTime using the given pattern and Locale parameters. The DateTime is configured with the given DateTimeZone

Parameters:
pattern - string with the format of the input String
locale - Locale to be used
dateTimeZone - the the time zone (DateTimeZone) to be used
Returns:
the LocalTime created from the input and arguments

strToLocalTime

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

It converts the given String into a LocalTime using the given pattern and Locale parameters. The DateTime will be created with the specified Chronology

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

strToLocalTime

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

It converts the given String into a LocalTime using the given pattern and Locale parameters. The DateTime will be created with the specified Chronology

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

dateToLocalTime

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

The given Date is converted into a LocalTime

Returns:
the LocalTime created from the input

dateToLocalTime

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

The given Date is converted into a LocalTime configured with the given DateTimeZone

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

dateToLocalTime

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

The given Date is converted into a LocalTime with the given Chronology

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

timestampToLocalTime

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

The given Timestamp is converted into a LocalTime

Returns:
the LocalTime created from the input

timestampToLocalTime

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

The given Timestamp is converted into a LocalTime in the given DateTimeZone

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

timestampToLocalTime

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

The given Timestamp is converted into a LocalTime with the given Chronology

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

longToLocalTime

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

The given long representing the time in milliseconds is converted into a LocalTime

Returns:
the LocalTime created from the input

longToLocalTime

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

The given long representing the time in milliseconds is converted into a LocalTime in the given DateTimeZone

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

longToLocalTime

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

The given long representing the time in milliseconds is converted into a LocalTime with the given Chronology

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

integerFieldCollectionToLocalTime

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

A LocalTime is created from the given Integer Collection.

The valid input Collection<Integer> represent:

Returns:
the LocalTime created from the input

integerFieldCollectionToLocalTime

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

A LocalTime is created from the given Integer Collection with the specified Chronology.

The valid input Collection<Integer> represent:

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

integerFieldArrayToLocalTime

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

A LocalTime is created from the given Integer Array.

The valid input Integer[] represent:

Returns:
the LocalTime created from the input

integerFieldArrayToLocalTime

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

A LocalTime is created from the given Integer array with the specified Chronology.

The valid input Integer[] represent:

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

strFieldCollectionToLocalTime

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

A LocalTime is created from the given String Collection.

The valid input Collection<String> represent:

Returns:
the LocalTime created from the input

strFieldCollectionToLocalTime

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

A LocalTime is created from the given String Collection with the specified Chronology

The valid input Collection<String> represent:

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

strFieldArrayToLocalTime

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

A LocalTime is created from the given String array.

The valid input String[] represent:

Returns:
the LocalTime created from the input

strFieldArrayToLocalTime

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

A LocalTime is created from the given String array with the specified Chronology

The valid input String[] represent:

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

calendarToLocalTime

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

It converts a Calendar into a LocalTime

Returns:
the LocalTime created from the input

calendarToLocalTime

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

It converts a Calendar into a LocalTime in the given DateTimeZone

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

calendarToLocalTime

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

It converts a Calendar into a LocalTime with the given Chronology

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


Copyright © 2012 The OP4J team. All Rights Reserved.