Class AbstractPropertyState
java.lang.Object
org.apache.jackrabbit.oak.plugins.memory.AbstractPropertyState
- All Implemented Interfaces:
org.apache.jackrabbit.oak.api.PropertyState
- Direct Known Subclasses:
EmptyPropertyState
public abstract class AbstractPropertyState
extends Object
implements org.apache.jackrabbit.oak.api.PropertyState
Abstract base class for
PropertyState implementations. This
class provides default implementations of basic Object methods,
for consistency across all property states.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanequal(org.apache.jackrabbit.oak.api.PropertyState a, org.apache.jackrabbit.oak.api.PropertyState b) Checks whether the given two property states are equal.booleanChecks whether the given object is equal to this one.inthashCode()Returns a hash code that's compatible with how theequals(Object)method is implemented.static inthashCode(org.apache.jackrabbit.oak.api.PropertyState property) toString()static StringtoString(org.apache.jackrabbit.oak.api.PropertyState property) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.jackrabbit.oak.api.PropertyState
count, getName, getType, getValue, getValue, isArray, size, size
-
Constructor Details
-
AbstractPropertyState
public AbstractPropertyState()
-
-
Method Details
-
equal
public static boolean equal(org.apache.jackrabbit.oak.api.PropertyState a, org.apache.jackrabbit.oak.api.PropertyState b) Checks whether the given two property states are equal. They are considered equal if their names and types match, they have an equal number of values, and each of the values is equal with the corresponding value in the other property.- Parameters:
a- first property stateb- second property state- Returns:
trueif the properties are equal,falseotherwise
-
hashCode
public static int hashCode(org.apache.jackrabbit.oak.api.PropertyState property) -
toString
-
equals
Checks whether the given object is equal to this one. See theequal(PropertyState, PropertyState)method for the definition of property state equality. Subclasses may override this method with a more efficient equality check if one is available. -
hashCode
public int hashCode()Returns a hash code that's compatible with how theequals(Object)method is implemented. The current implementation simply returns the hash code of the property name sincePropertyStateinstances are not intended for use as hash keys. -
toString
-