Java com.badlogic.gdx.utils IntArray fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.utils IntArray fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.utils IntArray.

The text is from its open source code.

Constructor

IntArray()
Creates an ordered array with a capacity of 16.
IntArray(int capacity)
Creates an ordered array with the specified capacity.
IntArray(IntArray array)
Creates a new array containing the elements in the specific array.
IntArray(int[] array)
Creates a new ordered array containing the elements in the specified array.
IntArray(boolean ordered, int capacity)

Method

voidadd(int value)
booleancontains(int value)
int[]ensureCapacity(int additionalCapacity)
Increases the size of the backing array to accommodate the specified number of additional items.
intfirst()
Returns the first item.
intget(int index)
intindexOf(int value)
voidinsert(int index, int value)
intpeek()
Returns the last item.
voidremoveRange(int start, int end)
Removes the items between the specified indices, inclusive.
booleanremoveValue(int value)
int[]shrink()
Reduces the size of the backing array to the size of the actual items.
int[]toArray()