Example usage for com.badlogic.gdx.utils LongArray LongArray

List of usage examples for com.badlogic.gdx.utils LongArray LongArray

Introduction

In this page you can find the example usage for com.badlogic.gdx.utils LongArray LongArray.

Prototype

public LongArray() 

Source Link

Document

Creates an ordered array with a capacity of 16.

Usage

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
}