
jnr.constants.platform.solaris.ErrnoAddressInfo 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 2020-09-03 01:49:51 +0200
package jnr.constants.platform.solaris;
public enum ErrnoAddressInfo implements jnr.constants.Constant {
EAI_ADDRFAMILY(1L),
EAI_AGAIN(2L),
EAI_BADFLAGS(3L),
EAI_FAIL(4L),
EAI_FAMILY(5L),
EAI_MEMORY(6L),
EAI_NODATA(7L),
EAI_NONAME(8L),
EAI_OVERFLOW(12L),
EAI_SERVICE(9L),
EAI_SOCKTYPE(10L),
EAI_SYSTEM(11L),
// EAI_BADHINTS not defined
EAI_PROTOCOL(13L),
EAI_MAX(14L);
private final long value;
private ErrnoAddressInfo(long value) { this.value = value; }
public static final long MIN_VALUE = 1L;
public static final long MAX_VALUE = 14L;
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(ErrnoAddressInfo.class);
map.put(EAI_ADDRFAMILY, "EAI_ADDRFAMILY");
map.put(EAI_AGAIN, "EAI_AGAIN");
map.put(EAI_BADFLAGS, "EAI_BADFLAGS");
map.put(EAI_FAIL, "EAI_FAIL");
map.put(EAI_FAMILY, "EAI_FAMILY");
map.put(EAI_MEMORY, "EAI_MEMORY");
map.put(EAI_NODATA, "EAI_NODATA");
map.put(EAI_NONAME, "EAI_NONAME");
map.put(EAI_OVERFLOW, "EAI_OVERFLOW");
map.put(EAI_SERVICE, "EAI_SERVICE");
map.put(EAI_SOCKTYPE, "EAI_SOCKTYPE");
map.put(EAI_SYSTEM, "EAI_SYSTEM");
map.put(EAI_PROTOCOL, "EAI_PROTOCOL");
map.put(EAI_MAX, "EAI_MAX");
return map;
}
}
public final String toString() { return StringTable.descriptions.get(this); }
public final int value() { return (int) value; }
public final int intValue() { return (int) value; }
public final long longValue() { return value; }
public final boolean defined() { return true; }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy