Example usage for com.google.common.primitives Floats ensureCapacity

List of usage examples for com.google.common.primitives Floats ensureCapacity

Introduction

In this page you can find the example usage for com.google.common.primitives Floats ensureCapacity.

Prototype

public static float[] ensureCapacity(float[] array, int minLength, int padding) 

Source Link

Document

Returns an array containing the same values as array , but guaranteed to be of a specified minimum length.

Usage

From source file:org.geogit.gwc.GrowableCoordinateSequence.java

private void ensureCapacity(int size) {
    ordinates = Floats.ensureCapacity(ordinates, 2 * size, 100);
}