Spec-Zone.ru › OpenJDK 25

Class HTML.UnknownTag

java.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
Class represents unknown HTML tag.

Field Summary

Fields declared in class HTML.Tag

A, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BR, CAPTION, CENTER, CITE, CODE, COMMENT, CONTENT, DD, DFN, DIR, DIV, DL, DT, EM, FONT, FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, HEAD, HR, HTML, I, IMG, IMPLIED, INPUT, ISINDEX, KBD, LI, LINK, MAP, MENU, META, NOFRAMES, OBJECT, OL, OPTION, P, PARAM, PRE, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, STYLE, SUB, SUP, TABLE, TD, TEXTAREA, TH, TITLE, TR, TT, U, UL, VAR

Constructor Summary

Constructor Description
UnknownTag(String id)
Creates a new UnknownTag with the specified id.

Method Summary

Modifier and Type Method Description
boolean equals(Object obj)
Compares this object to the specified object.
int hashCode()
Returns the hash code which corresponds to the string for this tag.

Methods declared in class HTML.Tag

breaksFlow, isBlock, isPreformatted, toString

Methods declared in class Object

clone, finalize, getClass, notify, notifyAll, wait, wait, wait

Constructor Details

UnknownTag

public UnknownTag(String id)
Creates a new UnknownTag with the specified id.
Parameters:
id - the id of the new tag

Method Details

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)
  • System.identityHashCode(Object)

equals

public boolean equals(Object obj)
Compares this object to the specified 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()
  • HashMap

Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Other versions.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2025, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.

© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/javax/swing/text/html/HTML.UnknownTag.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API