APIdia Launch Partner
Top Description Fields Methods
com.badlogic.gdx.utils

public Interface ArraySupplier<T>


An interface that is used to create arrays. Even tho not annotated with "FunctionalInterface", it can act as one.
You can use a constructor reference or lambda as a ArraySupplier, such as with MyClass[]::new or (size) -> new MyClass[size].

Field Summary

Modifier and TypeField and Description
public static final ArraySupplier<?>
ANY

A default array supplier that creates an Object[].

Method Summary

Modifier and TypeMethod and Description
public T
get(int size)

public static <T> ArraySupplier<T[]>
object()

Returns a default array supplier that creates an Object[].

Field Detail

ANYback to summary
public static final ArraySupplier<?> ANY

A default array supplier that creates an Object[].

Method Detail

getback to summary
public T get(int size)
objectback to summary
public static <T> ArraySupplier<T[]> object()

Returns a default array supplier that creates an Object[].

Annotations
@SuppressWarnings:unchecked