1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-21 22:02:06 +01:00

core: add javadoc for StanzaView.getExtensions(Class)

This commit is contained in:
Florian Schmaus 2020-04-18 22:56:10 +02:00
parent dc443bccd4
commit 5e921e6393

View file

@ -106,5 +106,12 @@ public interface StanzaView extends XmlLangElement {
List<ExtensionElement> getExtensions(QName qname);
/**
* Return all extension elements of the given type. Returns the empty list if there a none.
*
* @param <E> the type of extension elements.
* @param extensionElementClass the class of the type of extension elements.
* @return a list of extension elements of that type, which may be empty.
*/
<E extends ExtensionElement> List<E> getExtensions(Class<E> extensionElementClass);
}