Example usage for org.apache.commons.collections4 ListUtils union

List of usage examples for org.apache.commons.collections4 ListUtils union

Introduction

In this page you can find the example usage for org.apache.commons.collections4 ListUtils union.

Prototype

public static <E> List<E> union(final List<? extends E> list1, final List<? extends E> list2) 

Source Link

Document

Returns a new list containing the second list appended to the first list.

Usage

From source file:spypunk.tetris.ui.controller.input.TetrisControllerInputHandlerImpl.java

@Override
public List<TetrisControllerCommand> handleInputs() {
    return ListUtils.union(getCommandsFromKeys(pressedKeysBitSet, pressedKeyCodesHandlers),
            getCommandsFromKeys(releasedKeysBitSet, releasedKeyCodesHandlers));
}