Package org.jivesoftware.smack.util
Class PacketUtil
- java.lang.Object
-
- org.jivesoftware.smack.util.PacketUtil
-
public class PacketUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PacketUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <PE extends ExtensionElement>
PEextensionElementFrom(java.util.Collection<ExtensionElement> collection, java.lang.String element, java.lang.String namespace)
Get a extension element from a collection.
-
-
-
Constructor Detail
-
PacketUtil
public PacketUtil()
-
-
Method Detail
-
extensionElementFrom
public static <PE extends ExtensionElement> PE extensionElementFrom(java.util.Collection<ExtensionElement> collection, java.lang.String element, java.lang.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
-
-