private static class AttributeList.AttributeEntry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
The name of the attribute entry.
|
private java.lang.String |
value
The value of the attribute entry.
|
Constructor and Description |
---|
AttributeEntry(java.lang.String name,
java.lang.String value)
Creates a new attribute entry for the given name and value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Checks whether the given object is an attribute entry with the same name.
|
java.lang.String |
getName()
Returns the attribute name.
|
java.lang.String |
getValue()
Returns the value of this attribute entry.
|
int |
hashCode()
Computes an hashcode for this entry.
|
private java.lang.String name
private java.lang.String value
public AttributeEntry(java.lang.String name, java.lang.String value)
name
- the attribute name (null
not permitted).value
- the attribute value (null
not permitted).public java.lang.String getName()
public java.lang.String getValue()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the suspected other attribute entry.true
if the given object is equal, false
otherwise.public int hashCode()
hashCode
in class java.lang.Object