ArrayUtils

Utility class to covert array of primitive types to the List of Objects.

Functions

Link copied to clipboard
open fun convert(@NonNull arr: Array<Boolean>): List<Boolean>
Convert array of booleans to the list of Boolean objects
open fun convert(@NonNull arr: Array<Byte>): List<Byte>
Convert array of bytes to the list of Byte objects
open fun convert(@NonNull arr: Array<Char>): List<Character>
Convert array of chars to the list of Character objects
open fun convert(@NonNull arr: Array<Double>): List<Double>
Convert array of doubles to the list of Double objects
open fun convert(@NonNull arr: Array<Float>): List<Float>
Convert array of floats to the list of Float objects
open fun convert(@NonNull arr: Array<Int>): List<Integer>
Convert array of ints to the list of Integer objects
open fun convert(@NonNull arr: Array<Any>): List<Any>
Convert array of Objects to the list of Objects
open fun convert(@NonNull arr: Array<Long>): List<Long>
Convert array of longs to the list of Long objects
open fun convert(@NonNull arr: Array<Short>): List<Short>
Convert array of shorts to the list of Short objects
Link copied to clipboard
Convert List of Objects to the array of Objects
Link copied to clipboard
Convert list of Boolean objects to the array of booleans
Link copied to clipboard
open fun toByteArray(@NonNull list: List<Byte>): Array<Byte>
Convert list of Byte objects to the array of bytes
Link copied to clipboard
Convert list of Double objects to the array of doubles
Link copied to clipboard
open fun toFloatArray(@NonNull list: List<Float>): Array<Float>
Convert list of Float objects to the array of floats
Link copied to clipboard
open fun toIntArray(@NonNull list: List<Integer>): Array<Int>
Convert list of Integer objects to the array of ints
Link copied to clipboard
open fun toLongArray(@NonNull list: List<Long>): Array<Long>
Convert list of Long objects to the array of longs
Link copied to clipboard
open fun toShortArray(@NonNull list: List<Short>): Array<Short>
Convert list of Short objects to the array of shorts