public class PacketUtil extends Object
Constructor and Description |
---|
PacketUtil() |
Modifier and Type | Method and Description |
---|---|
static <PE extends ExtensionElement> |
extensionElementFrom(Collection<ExtensionElement> collection,
String element,
String namespace)
Get a extension element from a collection.
|
static <PE extends ExtensionElement> |
packetExtensionfromCollection(Collection<ExtensionElement> collection,
String element,
String namespace)
Deprecated.
use
extensionElementFrom(Collection, String, String) instead. |
static <PE extends ExtensionElement> |
packetExtensionFromCollection(Collection<ExtensionElement> collection,
String element,
String namespace)
Deprecated.
use
extensionElementFrom(Collection, String, String) instead |
public PacketUtil()
@Deprecated public static <PE extends ExtensionElement> PE packetExtensionfromCollection(Collection<ExtensionElement> collection, String element, String namespace)
extensionElementFrom(Collection, String, String)
instead.PE
- collection
- element
- namespace
- @Deprecated public static <PE extends ExtensionElement> PE packetExtensionFromCollection(Collection<ExtensionElement> collection, String element, String namespace)
extensionElementFrom(Collection, String, String)
insteadPE
- Type of the ExtensionElementcollection
- Collection of ExtensionElements.element
- name of the targeted ExtensionElement.namespace
- namespace of the targeted ExtensionElement.public static <PE extends ExtensionElement> PE extensionElementFrom(Collection<ExtensionElement> collection, String element, String namespace)
PE
- Type of the ExtensionElementcollection
- Collection of ExtensionElements.element
- name of the targeted ExtensionElement.namespace
- namespace of the targeted ExtensionElement.