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.ObjectA 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 booleanequals(java.lang.Object o)Checks whether the given object is an attribute entry with the same name.java.lang.StringgetName()Returns the attribute name.java.lang.StringgetValue()Returns the value of this attribute entry.inthashCode()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:
equalsin classjava.lang.Object- Parameters:
o- the suspected other attribute entry.- Returns:
trueif the given object is equal,falseotherwise.
-
hashCode
public int hashCode()
Computes an hashcode for this entry.- Overrides:
hashCodein classjava.lang.Object- Returns:
- the hashcode.
-
-