Main Page
Namespaces
Classes
Files
File List
File Members
wrappers
java
src
main
java
org
openkinect
freenect
LedStatus.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
LedStatus
{
31
OFF
(0),
32
GREEN
(1),
33
RED
(2),
34
YELLOW
(3),
35
BLINK_YELLOW
(4),
36
BLINK_GREEN
(5),
37
BLINK_RED_YELLOW
(6);
38
39
private
final
int
value
;
40
private
static
final
Map<Integer, LedStatus> MAP =
new
HashMap<Integer, LedStatus>(7);
41
static
{
42
for
(
LedStatus
v :
LedStatus
.values()) {
43
MAP.put(v.intValue(), v);
44
}
45
}
46
47
private
LedStatus
(
int
value) {
48
this.value = value;
49
}
50
51
public
int
intValue
() {
52
return
value;
53
}
54
55
public
static
LedStatus
fromInt
(
int
value) {
56
return
MAP.get(value);
57
}
58
}
org.openkinect.freenect.LedStatus.LedStatus
LedStatus(int value)
Definition:
LedStatus.java:47
org.openkinect.freenect.LedStatus.fromInt
static LedStatus fromInt(int value)
Definition:
LedStatus.java:55
org.openkinect.freenect.LedStatus
Definition:
LedStatus.java:30
org.openkinect.freenect.LedStatus.BLINK_GREEN
BLINK_GREEN
Definition:
LedStatus.java:36
org.openkinect.freenect.LedStatus.BLINK_YELLOW
BLINK_YELLOW
Definition:
LedStatus.java:35
org.openkinect.freenect.LedStatus.YELLOW
YELLOW
Definition:
LedStatus.java:34
org.openkinect.freenect.LedStatus.RED
RED
Definition:
LedStatus.java:33
org.openkinect.freenect.LedStatus.intValue
int intValue()
Definition:
LedStatus.java:51
org.openkinect.freenect.LedStatus.value
final int value
Definition:
LedStatus.java:39
org.openkinect.freenect.LedStatus.GREEN
GREEN
Definition:
LedStatus.java:32
org.openkinect.freenect.LedStatus.OFF
OFF
Definition:
LedStatus.java:31
org.openkinect.freenect.LedStatus.BLINK_RED_YELLOW
BLINK_RED_YELLOW
Definition:
LedStatus.java:37
libfreenect
Author(s): Hector Martin, Josh Blake, Kyle Machulis, OpenKinect community
autogenerated on Mon Jun 10 2019 13:46:42