Interface PacketFactoryBinder

    • Method Detail

      • getPacketFactory

        <T,​N extends NamedNumber<?,​?>> PacketFactory<T,​N> getPacketFactory​(java.lang.Class<T> targetClass,
                                                                                             java.lang.Class<N> numberClass)
        Provides a PacketFactory to build the received packets.
        Type Parameters:
        T - the type of object the factory method returns.
        N - the type of object that is given to the factory method.
        Parameters:
        targetClass - targetClass
        numberClass - numberClass
        Returns:
        the factory