Package org.jivesoftware.smack.util
Class PacketUtil
java.lang.Object
org.jivesoftware.smack.util.PacketUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <PE extends XmlElement>
PEextensionElementFrom
(Collection<XmlElement> collection, String element, String namespace) Get a extension element from a collection.
-
Constructor Details
-
PacketUtil
public PacketUtil()
-
-
Method Details
-
extensionElementFrom
public static <PE extends XmlElement> PE extensionElementFrom(Collection<XmlElement> collection, String element, String namespace) Get a extension element from a collection.- Type Parameters:
PE
- Type of the ExtensionElement- Parameters:
collection
- Collection of ExtensionElements.element
- name of the targeted ExtensionElement.namespace
- namespace of the targeted ExtensionElement.- Returns:
- the extension element
-