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

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

Introduction

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

The text is from its open source code.

Constructor

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

Method

voidadd(int value)
Casts the specified value to short and adds it.
voidadd(short value)
voidclear()
short[]ensureCapacity(int additionalCapacity)
Increases the size of the backing array to accommodate the specified number of additional items.
shortget(int index)
shortremoveIndex(int index)
Removes and returns the item at the specified index.
short[]toArray()