com.frostwire.jlibtorrent.PortmapTransport Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jlibtorrent Show documentation
Show all versions of jlibtorrent Show documentation
A swig Java interface for libtorrent by the makers of FrostWire.
package com.frostwire.jlibtorrent;
import com.frostwire.jlibtorrent.swig.portmap_transport;
/**
* @author gubatron
* @author aldenml
*/
public enum PortmapTransport {
NAT_PMP(portmap_transport.natpmp.swigValue()),
UPNP(portmap_transport.upnp.swigValue());
PortmapTransport(int swigValue) {
this.swigValue = swigValue;
}
private final int swigValue;
public int swig() {
return swigValue;
}
public static PortmapTransport fromSwig(int swigValue) {
PortmapTransport[] enumValues = PortmapTransport.class.getEnumConstants();
for (PortmapTransport ev : enumValues) {
if (ev.swig() == swigValue) {
return ev;
}
}
throw new IllegalArgumentException("No enum " + PortmapTransport.class + " with value " + swigValue);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy