List of usage examples for com.badlogic.gdx.utils LongArray LongArray
public LongArray()
From source file:net.onedaybeard.keyflection.BoundCommand.java
License:Apache License
BoundCommand(Method method, CommandController instance) {
if (!method.isAnnotationPresent(Command.class))
throw new RuntimeException("No @Command on " + method.getName());
command = method.getAnnotation(Command.class);
this.method = method;
this.instance = instance;
shortcuts = new LongArray();
for (Shortcut shortcut : command.bindings()) {
shortcuts.add(KeyPacker.pack(shortcut.value()));
}//from ww w.j ava2 s . c om
}