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
1 changed files with 7 additions and 0 deletions

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);
}