Class 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>
      PE
      extensionElementFrom​(java.util.Collection<ExtensionElement> collection, java.lang.String element, java.lang.String namespace)
      Get a extension element from a collection.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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