Class AbstractPropertyState
- java.lang.Object
 - 
- org.apache.jackrabbit.oak.plugins.memory.AbstractPropertyState
 
 
- 
- All Implemented Interfaces:
 PropertyState
- Direct Known Subclasses:
 EmptyPropertyState
public abstract class AbstractPropertyState extends java.lang.Object implements PropertyState
Abstract base class forPropertyStateimplementations. This class provides default implementations of basicObjectmethods, for consistency across all property states. 
- 
- 
Constructor Summary
Constructors Constructor Description AbstractPropertyState() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanequal(PropertyState a, PropertyState b)Checks whether the given two property states are equal.booleanequals(java.lang.Object other)Checks 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(PropertyState property)java.lang.StringtoString()static java.lang.StringtoString(PropertyState property) 
 - 
 
- 
- 
Method Detail
- 
equal
public static boolean equal(PropertyState a, 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(PropertyState property)
 
- 
toString
public static java.lang.String toString(PropertyState property)
 
- 
equals
public boolean equals(java.lang.Object other)
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.- Overrides:
 equalsin classjava.lang.Object- Parameters:
 other- target of the comparison- Returns:
 trueif the objects are equal,falseotherwise
 
- 
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.- Overrides:
 hashCodein classjava.lang.Object- Returns:
 - hash code
 
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -