Debian Codegraph @

src/main/java/jnr/constants/platform/freebsd/aarch64/Shutdown.java

raw
1 // WARNING: This file is autogenerated. DO NOT EDIT!
2 // Generated 2021-10-08 17:37:35 +0200
3 package jnr.constants.platform.freebsd.aarch64;
4 public enum Shutdown implements jnr.constants.Constant {
5 SHUT_RD(0L),
6 SHUT_WR(1L),
7 SHUT_RDWR(2L);
8 private final long value;
9 private Shutdown(long value) { this.value = value; }
10 public static final long MIN_VALUE = 0L;
11 public static final long MAX_VALUE = 2L;
12
13 static final class StringTable {
14 public static final java.util.Map<Shutdown, String> descriptions = generateTable();
15 public static final java.util.Map<Shutdown, String> generateTable() {
16 java.util.Map<Shutdown, String> map = new java.util.EnumMap<Shutdown, String>(Shutdown.class);
17 map.put(SHUT_RD, "SHUT_RD");
18 map.put(SHUT_WR, "SHUT_WR");
19 map.put(SHUT_RDWR, "SHUT_RDWR");
20 return map;
21 }
22 }
23 public final String toString() { return StringTable.descriptions.get(this); }
24 public final int value() { return (int) value; }
25 public final int intValue() { return (int) value; }
26 public final long longValue() { return value; }
27 public final boolean defined() { return true; }
28 }