Package org.godot.utilities.utils
Class ListUtils
- java.lang.Object
-
- org.godot.utilities.utils.ListUtils
-
public final class ListUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> voidforeach(@NotNull List<T> list, IAnyUtilsCallbacks.IForeach<T> callback)Foreach methodstatic <T> @NotNull List<T>of(T... elements)Generate list from arguments
-
-
-
Method Detail
-
of
@Contract("_ -> new") @SafeVarargs @NotNull public static <T> @NotNull List<T> of(T... elements)
Generate list from arguments- Type Parameters:
T- Generic list type- Parameters:
elements- All initial elements- Returns:
- Returns an instance of list with all data
-
foreach
public static <T> void foreach(@NotNull @NotNull List<T> list, IAnyUtilsCallbacks.IForeach<T> callback)
Foreach method- Type Parameters:
T- Generic type- Parameters:
list- Target listcallback- Target execution callback
-
-