public interface IndexedTypedAccess
Modifier and Type | Method and Description |
---|---|
<T> T |
get(int index,
Class<T> valueType,
T defaultValue)
Returns an item value converted to the specified data type.
We currently support the following value types out of the box: String
Integer
Long
Double
DominoDateTime
LocalDate
LocalTime
OffsetDateTime
TemporalAccessor (returned as DominoDateTime )
Additional value types are supported by implementing and registering DocumentValueConverter as Java services . |
<T> List<T> |
getAsList(int index,
Class<T> valueType,
List<T> defaultValue)
Returns a list of item values converted to the specified data type.
We currently support the following value types out of the box: String
Integer
Long
Double
DominoDateTime
LocalDate
LocalTime
OffsetDateTime
TemporalAccessor (returned as DominoDateTime )
Additional value types are supported by implementing and registering DocumentValueConverter as Java services . |
int |
getIndexedValueCount() |
int getIndexedValueCount()
<T> T get(int index, Class<T> valueType, T defaultValue)
String
Integer
Long
Double
DominoDateTime
LocalDate
LocalTime
OffsetDateTime
TemporalAccessor
(returned as DominoDateTime
)DocumentValueConverter
as Java services
.T
- type of return valueindex
- the index of the value to retrievevalueType
- class of return valuedefaultValue
- default value returned of object does not contain propertyIllegalArgumentException
- if the specified value type is unsupported<T> List<T> getAsList(int index, Class<T> valueType, List<T> defaultValue)
String
Integer
Long
Double
DominoDateTime
LocalDate
LocalTime
OffsetDateTime
TemporalAccessor
(returned as DominoDateTime
)DocumentValueConverter
as Java services
.T
- type of return valueindex
- the index of the value to retrievevalueType
- class of return valuedefaultValue
- default value returned of object does not contain propertyIllegalArgumentException
- if the specified value type is unsupportedCopyright © 2019–2021 HCL. All rights reserved.