public abstract class AbstractPropertyState extends java.lang.Object implements PropertyState
PropertyState
implementations. This
class provides default implementations of basic Object
methods,
for consistency across all property states.Constructor and Description |
---|
AbstractPropertyState() |
Modifier and Type | Method and Description |
---|---|
static boolean |
equal(PropertyState a,
PropertyState b)
Checks whether the given two property states are equal.
|
boolean |
equals(java.lang.Object other)
Checks whether the given object is equal to this one.
|
int |
hashCode()
Returns a hash code that's compatible with how the
equals(Object) method is implemented. |
static int |
hashCode(PropertyState property) |
java.lang.String |
toString() |
static java.lang.String |
toString(PropertyState property) |
public static boolean equal(PropertyState a, PropertyState b)
a
- first property stateb
- second property statetrue
if the properties are equal, false
otherwisepublic static int hashCode(PropertyState property)
public static java.lang.String toString(PropertyState property)
public boolean equals(java.lang.Object other)
equal(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.equals
in class java.lang.Object
other
- target of the comparisontrue
if the objects are equal, false
otherwisepublic int hashCode()
equals(Object)
method is implemented. The current
implementation simply returns the hash code of the property name
since PropertyState
instances are not intended for use as
hash keys.hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved