public class MultiBooleanPropertyState extends EmptyPropertyState
| Constructor and Description |
|---|
MultiBooleanPropertyState(String name,
Iterable<Boolean> values) |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.jackrabbit.oak.api.PropertyState |
booleanProperty(String name,
Iterable<Boolean> values)
Create a multi valued
PropertyState from a list of booleans. |
int |
count() |
Conversions.Converter |
getConverter(Boolean 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 booleanProperty(String name, Iterable<Boolean> values)
PropertyState from a list of booleans.name - The name of the property statevalues - The values of the property stateType.BOOLEANSpublic Conversions.Converter getConverter(Boolean 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.IllegalArgumentException - if type is not one of the
values defined in Type or if type.isArray() is false.@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–2019 The Apache Software Foundation. All rights reserved.