public class MultiBooleanPropertyState extends EmptyPropertyState
| Constructor and Description |
|---|
MultiBooleanPropertyState(java.lang.String name,
java.lang.Iterable<java.lang.Boolean> values) |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.jackrabbit.oak.api.PropertyState |
booleanProperty(java.lang.String name,
java.lang.Iterable<java.lang.Boolean> values)
Create a multi valued
PropertyState from a list of booleans. |
int |
count() |
Conversions.Converter |
getConverter(java.lang.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, sizeprotected final java.util.List<T> values
public MultiBooleanPropertyState(java.lang.String name,
java.lang.Iterable<java.lang.Boolean> values)
public static org.apache.jackrabbit.oak.api.PropertyState booleanProperty(java.lang.String name, java.lang.Iterable<java.lang.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(java.lang.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.java.lang.IllegalStateException - if type.isArray() is false.java.lang.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 EmptyPropertyStatejava.lang.IllegalArgumentException - if type is not one of the
values defined in Type or if type.isArray() is truejava.lang.IndexOutOfBoundsException - 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–2022 The Apache Software Foundation. All rights reserved.