jnr.constants.platform.linux.ProtocolFamily Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jnr-constants Show documentation
Show all versions of jnr-constants Show documentation
A set of platform constants (e.g. errno values)
// WARNING: This file is autogenerated. DO NOT EDIT!
// Generated 2018-09-12 11:05:12 +0200
package jnr.constants.platform.linux;
public enum ProtocolFamily implements jnr.constants.Constant {
PF_UNSPEC(0L),
PF_LOCAL(1L),
PF_UNIX(1L),
PF_INET(2L),
// PF_IMPLINK not defined
// PF_PUP not defined
// PF_CHAOS not defined
// PF_NS not defined
// PF_ISO not defined
// PF_OSI not defined
// PF_ECMA not defined
// PF_DATAKIT not defined
// PF_CCITT not defined
PF_SNA(22L),
PF_DECnet(12L),
// PF_DLI not defined
// PF_LAT not defined
// PF_HYLINK not defined
PF_APPLETALK(5L),
PF_ROUTE(16L),
// PF_LINK not defined
// PF_XTP not defined
// PF_COIP not defined
// PF_CNT not defined
// PF_SIP not defined
PF_IPX(4L),
// PF_RTIP not defined
// PF_PIP not defined
// PF_NDRV not defined
PF_ISDN(34L),
PF_KEY(15L),
PF_INET6(10L),
// PF_NATM not defined
// PF_SYSTEM not defined
// PF_NETBIOS not defined
// PF_PPP not defined
// PF_ATM not defined
// PF_NETGRAPH not defined
PF_MAX(41L);
private final long value;
private ProtocolFamily(long value) { this.value = value; }
public static final long MIN_VALUE = 0L;
public static final long MAX_VALUE = 41L;
static final class StringTable {
public static final java.util.Map descriptions = generateTable();
public static final java.util.Map generateTable() {
java.util.Map map = new java.util.EnumMap(ProtocolFamily.class);
map.put(PF_UNSPEC, "PF_UNSPEC");
map.put(PF_LOCAL, "PF_LOCAL");
map.put(PF_UNIX, "PF_UNIX");
map.put(PF_INET, "PF_INET");
map.put(PF_SNA, "PF_SNA");
map.put(PF_DECnet, "PF_DECnet");
map.put(PF_APPLETALK, "PF_APPLETALK");
map.put(PF_ROUTE, "PF_ROUTE");
map.put(PF_IPX, "PF_IPX");
map.put(PF_ISDN, "PF_ISDN");
map.put(PF_KEY, "PF_KEY");
map.put(PF_INET6, "PF_INET6");
map.put(PF_MAX, "PF_MAX");
return map;
}
}
public final String toString() { return StringTable.descriptions.get(this); }
public final int intValue() { return (int) value; }
public final long longValue() { return value; }
public final boolean defined() { return true; }
}