public class MultiDoublePropertyState extends EmptyPropertyState
| Constructor and Description |
|---|
MultiDoublePropertyState(String name,
Iterable<Double> values) |
| Modifier and Type | Method and Description |
|---|---|
int |
count() |
static org.apache.jackrabbit.oak.api.PropertyState |
doubleProperty(String name,
Iterable<Double> values)
Create a multi valued
PropertyState from a list of doubles. |
Conversions.Converter |
getConverter(Double value)
Create a converter for converting a value to other types.
|
org.apache.jackrabbit.oak.api.Type<?> |
getType() |
<S> S |
getValue(org.apache.jackrabbit.oak.api.Type<S> type) |
<S> S |
getValue(org.apache.jackrabbit.oak.api.Type<S> type,
int index) |
long |
size(int index) |
emptyProperty, getName, isArray, sizepublic static org.apache.jackrabbit.oak.api.PropertyState doubleProperty(String name, Iterable<Double> values)
PropertyState from a list of doubles.name - The name of the property statevalues - The values of the property stateType.DOUBLESpublic Conversions.Converter getConverter(Double value)
value - The value to convertpublic org.apache.jackrabbit.oak.api.Type<?> getType()
@NotNull public <S> S getValue(org.apache.jackrabbit.oak.api.Type<S> type)
getValue in interface org.apache.jackrabbit.oak.api.PropertyStategetValue in class EmptyPropertyStatetype.isArray() is true.IllegalStateException - if type.isArray() is false.IllegalArgumentException - if type is not one of the
values defined in Type@NotNull public <S> S getValue(org.apache.jackrabbit.oak.api.Type<S> type, int index)
getValue in interface org.apache.jackrabbit.oak.api.PropertyStategetValue in class EmptyPropertyStateIllegalArgumentException - if type is not one of the
values defined in Type or if type.isArray() is trueIndexOutOfBoundsException - if index >= count().public final int count()
count in interface org.apache.jackrabbit.oak.api.PropertyStatecount in class EmptyPropertyState0public long size(int index)
size in interface org.apache.jackrabbit.oak.api.PropertyStatesize in class EmptyPropertyStateCopyright © 2012–2020 The Apache Software Foundation. All rights reserved.