LogLevel.java
Go to the documentation of this file.
1 
25 package org.openkinect.freenect;
26 
27 import java.util.HashMap;
28 import java.util.Map;
29 
30 public enum LogLevel {
31  FATAL(0),
32  ERROR(1),
33  WARNING(2),
34  NOTICE(3),
35  INFO(4),
36  DEBUG(5),
37  SPEW(6),
38  FLOOD(7);
39 
40  private final int value;
41  private static final Map<Integer, LogLevel> MAP = new HashMap<Integer, LogLevel>(8);
42  static {
43  for(LogLevel v : LogLevel.values()) {
44  MAP.put(v.intValue(), v);
45  }
46  }
47 
48  private LogLevel(int value) {
49  this.value = value;
50  }
51 
52  public int intValue() {
53  return value;
54  }
55 
56  public static LogLevel fromInt(int value) {
57  return MAP.get(value);
58  }
59 }
static LogLevel fromInt(int value)
Definition: LogLevel.java:56


libfreenect
Author(s): Hector Martin, Josh Blake, Kyle Machulis, OpenKinect community
autogenerated on Mon Jun 10 2019 13:46:42