Package org.jfree.xml.writer
Class AttributeList.AttributeEntry
- java.lang.Object
-
- org.jfree.xml.writer.AttributeList.AttributeEntry
-
- Enclosing class:
- AttributeList
private static class AttributeList.AttributeEntry extends java.lang.Object
A name/value pair of the attribute list.
-
-
Constructor Summary
Constructors Constructor Description AttributeEntry(java.lang.String name, java.lang.String value)
Creates a new attribute entry for the given name and value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the attribute name.- Returns:
- the name.
-
getValue
public java.lang.String getValue()
Returns the value of this attribute entry.- Returns:
- the value of the entry.
-
equals
public boolean equals(java.lang.Object o)
Checks whether the given object is an attribute entry with the same name.- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- the suspected other attribute entry.- Returns:
true
if the given object is equal,false
otherwise.
-
hashCode
public int hashCode()
Computes an hashcode for this entry.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- the hashcode.
-
-