1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-25 12:08:00 +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); 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); <E extends ExtensionElement> List<E> getExtensions(Class<E> extensionElementClass);
} }