1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 20:12:07 +01:00

core: add hint towards StanzaView.getExtension(Class)

This commit is contained in:
Florian Schmaus 2020-04-12 12:16:36 +02:00
parent d498cd8499
commit 5438fb7b33

View file

@ -352,6 +352,10 @@ public abstract class Stanza implements StanzaView, TopLevelStreamElement {
* Returns the first extension that matches the specified element name and * Returns the first extension that matches the specified element name and
* namespace, or <code>null</code> if it doesn't exist. Extensions are * namespace, or <code>null</code> if it doesn't exist. Extensions are
* are arbitrary XML elements in standard XMPP stanzas. * are arbitrary XML elements in standard XMPP stanzas.
* <p>
* Note that it is recommended to use {@link #getExtension(Class)} instead of this method.
* The {@link #getExtension(Class)} is more robust, as it is type safe.
* </p>
* *
* @param elementName the XML element name of the extension. * @param elementName the XML element name of the extension.
* @param namespace the XML element namespace of the extension. * @param namespace the XML element namespace of the extension.