Class PropertyStateValue
- java.lang.Object
 - 
- org.apache.jackrabbit.oak.plugins.memory.PropertyStateValue
 
 
- 
- All Implemented Interfaces:
 java.lang.Comparable<PropertyValue>,PropertyValue
public class PropertyStateValue extends java.lang.Object implements PropertyValue
APropertyValueimplementation that wraps aPropertyState 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(@NotNull PropertyValue p2)intcount()The number of values of this object.booleanequals(java.lang.Object o)@NotNull Type<?>getType()Determine the type of this value<T> TgetValue(Type<T> type)Value of this object.<T> TgetValue(Type<T> type, int index)Value at the givenindex.inthashCode()booleanisArray()Determine whether the value is an array of atomslongsize()The size of the value of this object.longsize(int index)The size of the value at the givenindex.java.lang.StringtoString()@Nullable PropertyStateunwrap() 
 - 
 
- 
- 
Method Detail
- 
isArray
public boolean isArray()
Description copied from interface:PropertyValueDetermine whether the value is an array of atoms- Specified by:
 isArrayin interfacePropertyValue- Returns:
 trueif and only if the value is an array of atoms.
 
- 
getType
@NotNull public @NotNull Type<?> getType()
Description copied from interface:PropertyValueDetermine the type of this value- Specified by:
 getTypein interfacePropertyValue- Returns:
 - the type of this value
 
 
- 
getValue
@NotNull public <T> T getValue(Type<T> type)
Description copied from interface:PropertyValueValue of this object. The type of the return value is determined by the targettypeargument. Iftype.isArray()is true, this method returns anIterableof thebase typeoftypecontaining all values of this property. If the target type is not the same as the type of this property an attempt is made to convert the value to the target type. If the conversion fails an exception is thrown.- Specified by:
 getValuein interfacePropertyValue- Parameters:
 type- target type- Returns:
 - the value of this property
 
 
- 
getValue
@NotNull public <T> T getValue(Type<T> type, int index)
Description copied from interface:PropertyValueValue at the givenindex. The type of the return value is determined by the targettypeargument. If the target type is not the same as the type of this property an attempt is made to convert the value to the target type. If the conversion fails an exception is thrown.- Specified by:
 getValuein interfacePropertyValue- Parameters:
 type- target type- Returns:
 - the value of this object at the given 
index 
 
- 
size
public long size()
Description copied from interface:PropertyValueThe size of the value of this object.- Specified by:
 sizein interfacePropertyValue- Returns:
 - size of the value of this property
 
 
- 
size
public long size(int index)
Description copied from interface:PropertyValueThe size of the value at the givenindex.- Specified by:
 sizein interfacePropertyValue- Returns:
 - size of the value at the given 
index. 
 
- 
count
public int count()
Description copied from interface:PropertyValueThe number of values of this object.1for atoms.- Specified by:
 countin interfacePropertyValue- Returns:
 - number of values
 
 
- 
unwrap
@Nullable public @Nullable PropertyState unwrap()
 
- 
compareTo
public int compareTo(@NotNull @NotNull PropertyValue p2)- Specified by:
 compareToin interfacejava.lang.Comparable<PropertyValue>
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object o)
- Overrides:
 equalsin classjava.lang.Object
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -