public final class RubyDateTimeParsedElementsQuery<T> extends Object implements TemporalQuery<Map<T,Object>>
Map of parsed elements.
The Map of parsed elements is analogous to a hash returned from Ruby's Date._strptime like below.
{:year=>2001, :mon=>2, :mday=>3}
| Modifier and Type | Class and Description |
|---|---|
static interface |
RubyDateTimeParsedElementsQuery.DecimalFractionConverter
A converter for a decimal fraction to be stored as the required type in the result
Map. |
static interface |
RubyDateTimeParsedElementsQuery.MapKeyConverter<T>
|
| Modifier and Type | Method and Description |
|---|---|
Map<T,Object> |
queryFrom(TemporalAccessor temporal)
Queries the specified temporal object.
|
static RubyDateTimeParsedElementsQuery<String> |
with(RubyDateTimeParsedElementsQuery.DecimalFractionConverter decimalFractionConverter)
Creates a query with seconds converted by the
decimalFractionConverter. |
static <U> RubyDateTimeParsedElementsQuery<U> |
with(RubyDateTimeParsedElementsQuery.DecimalFractionConverter decimalFractionConverter,
RubyDateTimeParsedElementsQuery.MapKeyConverter<U> mapKeyConverter)
Creates a query with seconds converted by the
decimalFractionConverter, and map keys converted by the mapKeyConverter. |
static RubyDateTimeParsedElementsQuery<String> |
withDecimalFractionInBigDecimal()
Creates a query with seconds represented in
BigDecimal. |
public static RubyDateTimeParsedElementsQuery<String> withDecimalFractionInBigDecimal()
BigDecimal.public static RubyDateTimeParsedElementsQuery<String> with(RubyDateTimeParsedElementsQuery.DecimalFractionConverter decimalFractionConverter)
decimalFractionConverter.decimalFractionConverter - the converter to convert decimal fractions, not nullpublic static <U> RubyDateTimeParsedElementsQuery<U> with(RubyDateTimeParsedElementsQuery.DecimalFractionConverter decimalFractionConverter, RubyDateTimeParsedElementsQuery.MapKeyConverter<U> mapKeyConverter)
decimalFractionConverter, and map keys converted by the mapKeyConverter.U - the key type of the result MapdecimalFractionConverter - the converter to convert decimal fractions, not nullmapKeyConverter - the converter to convert map keys, not nullpublic Map<T,Object> queryFrom(TemporalAccessor temporal)