javax.swing.text.html
Class HTML.UnknownTagjava.lang.Object | +--javax.swing.text.html.HTML.Tag | +--javax.swing.text.html.HTML.UnknownTag
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- HTML
- public static class HTML.UnknownTag
- extends HTML.Tag
- implements Serializable
Field Summary
Fields inherited from class javax.swing.text.html.HTML.Tag
Constructor Summary
HTML.UnknownTag(String id)
Creates a new UnknownTag with the specified id.
Method Summary
boolean equals(Object obj)
Compares this object to the specifed object.int hashCode()
Returns the hash code which corresponds to the string for this tag.
Methods inherited from class javax.swing.text.html.HTML.Tag breaksFlow, isBlock, isPreformatted, toString
Methods inherited from class java.lang.Object clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Constructor Detail
HTML.UnknownTag
public HTML.UnknownTag(String id)
- Creates a new UnknownTag with the specified id.
- Parameters:
- id - the id of the new tag
Method Detail
hashCode
public int hashCode()
- Returns the hash code which corresponds to the string for this tag.
- Overrides:
- hashCode in class Object
- Returns:
- a hash code value for this object.
- See Also:
- Object.equals(java.lang.Object), Hashtable
equals
public boolean equals(Object obj)
- Compares this object to the specifed object. The result is true if and only if the argument is not null and is an UnknownTag object with the same name.
- Overrides:
- equals in class Object
- Parameters:
- obj - the object to compare this tag with
- Returns:
- true if the objects are equal; false otherwise
- See Also:
- Object.hashCode(), Hashtable