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