| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private static final long | |
| private Object |
| Access | Constructor and Description |
|---|---|
| public | Attribute(String
A String containing the name of the attribute to be created. Cannot be null. name, Object The Object which is assigned to the attribute. This object must be of the same type as the attribute. value)Constructs an Attribute object which associates the given attribute name with the given value. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: True if the two Attribute objects are equal, otherwise false.The Attribute that the current Attribute is to be compared with. object)Overrides java. Compares the current Attribute Object with another Attribute Object. |
| public String | |
| public Object | Returns: the value of the attribute.Returns an Object that is the value of this attribute. |
| public int | Returns: a hash code value for this attribute.Overrides java. Returns a hash code value for this attribute. |
| public String | toString()
Overrides java. Returns a String object representing this Attribute's value. |
| name | back to summary |
|---|---|
| private String name | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| value | back to summary |
|---|---|
private Object value
| |
| Attribute | back to summary |
|---|---|
| public Attribute(String name, Object value) Constructs an Attribute object which associates the given attribute name with the given value. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Compares the current Attribute Object with another Attribute Object.
| |
| getName | back to summary |
|---|---|
| public String getName() Returns a String containing the name of the attribute.
| |
| getValue | back to summary |
|---|---|
| public Object getValue() Returns an Object that is the value of this attribute.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code value for this attribute.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a String object representing this Attribute's value. The format of this string is not specified, but users can expect that two Attributes return the same string if and only if they are equal. | |