public class Attribute extends Object implements Serializable
| Constructor and Description |
|---|
Attribute(String name,
Object value)
Create the attribute with the given name and value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Compares the attribute with another attribute.
|
String |
getName()
Returns the attribute name.
|
Object |
getValue()
Returns the attribute value.
|
int |
hashCode()
Need to override as
equals(java.lang.Object) is overridden. |
public boolean equals(Object other)
equals in class Objectother - the other object to compare withObject.hashCode()public int hashCode()
equals(java.lang.Object) is overridden.hashCode in class ObjectObject.equals(Object),
System.identityHashCode(Object)