CollectionsHelper

A collection of utility abstractions

Functions

Link copied to clipboard
fun <T> appendInNewArray(first: Array<T>, vararg rest: T): Array<T>

Appends objects to an array in a new array.

Link copied to clipboard

Build a String with the values separated by commas and spaces.

Link copied to clipboard

Build a String with the values separated by commas and spaces.

Link copied to clipboard

Build a String with the values separated by commas.

Link copied to clipboard

Build a String with the uids of the objects separated by commas.

Link copied to clipboard

A Null-safe deleted method.

Link copied to clipboard
fun <T> isNull(obj: T?)

Throws an illegal argument exception if an object is null.

Link copied to clipboard

Build a String with the values separated by custom separators.

Link copied to clipboard

A Null-safe safeUnmodifiableList.

Link copied to clipboard

Build a String with the values separated by semicolons.

Link copied to clipboard
fun <T> setPartition(originalSet: Collection<T>, size: Int): List<Set<T>>

Divide a Collection in a List of sets with a maximum size.

Link copied to clipboard

Put in single quotes a value.

Link copied to clipboard

Put in single quotes the string values inside a collection.