Example usage for com.badlogic.gdx.utils IntArray first

List of usage examples for com.badlogic.gdx.utils IntArray first

Introduction

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

Prototype

public int first() 

Source Link

Document

Returns the first item.

Usage

From source file:com.kotcrab.vis.ui.building.TableBuilder.java

License:Apache License

/**
 * @param values cannot be empty or null.
 * @return lowest common multiple for the given values.
 *///from   w w w  . j  a va  2s .  com
public static int getLowestCommonMultiple(final IntArray values) {
    int lowestCommonMultiple = values.first();
    for (int index = 1; index < values.size; index++) {
        lowestCommonMultiple = getLowestCommonMultiple(lowestCommonMultiple, values.get(index));
    }
    return lowestCommonMultiple;
}