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