Class PacketUtil

    • Method Detail

      • extensionElementFrom

        public static <PE extends ExtensionElement> PE extensionElementFrom​(Collection<ExtensionElement> 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