FreezableUtils

class FreezableUtils


Utilities for working with Freezable objects.

Summary

Public constructors

Public functions

java-static ArrayList<T!>!
<T, E : Freezable<T!>?> freeze(array: Array<E!>!)

Utility helper method to freeze an array of freezable entities into a list of concrete entities.

java-static ArrayList<T!>!
<T, E : Freezable<T!>?> freeze(list: ArrayList<E!>!)

Utility helper method to freeze a list of freezable entities into a list of concrete entities.

java-static ArrayList<T!>!
<T, E : Freezable<T!>?> freezeIterable(iterable: (Mutable)Iterable<E!>!)

Utility helper method to freeze an array of freezable entities into a list of concrete entities.

Public constructors

FreezableUtils

FreezableUtils()

Public functions

freeze

java-static fun <T, E : Freezable<T!>?> freeze(array: Array<E!>!): ArrayList<T!>!

Utility helper method to freeze an array of freezable entities into a list of concrete entities. The array provided here must contain elements that implement the Freezable interface.

Type T is the type of object returned by freezing an element of the array. In most cases, this will be the same as E.

Type E is the type of object contained in the array. Must implement Freezable.

Parameters
array: Array<E!>!

Array to freeze contents from.

Returns
ArrayList<T!>!

ArrayList of frozen representations of the object present in the provided array.

freeze

java-static fun <T, E : Freezable<T!>?> freeze(list: ArrayList<E!>!): ArrayList<T!>!

Utility helper method to freeze a list of freezable entities into a list of concrete entities. The list provided here must contain elements that implement the Freezable interface.

Type T is the type of object returned by freezing an element of the list. In most cases, this will be the same as E.

Type E is the type of object contained in the list. Must implement Freezable.

Parameters
list: ArrayList<E!>!

ArrayList to freeze contents from.

Returns
ArrayList<T!>!

ArrayList of frozen representations of the object present in the provided list.

freezeIterable

java-static fun <T, E : Freezable<T!>?> freezeIterable(iterable: (Mutable)Iterable<E!>!): ArrayList<T!>!

Utility helper method to freeze an array of freezable entities into a list of concrete entities. The array provided here must contain elements that implement the Freezable interface.

Type T is the type of object returned by freezing an element of the array. In most cases, this will be the same as E.

Type E is the type of object contained in the array. Must implement Freezable.

Parameters
iterable: (Mutable)Iterable<E!>!

Iterable to freeze contents from.

Returns
ArrayList<T!>!

ArrayList of frozen representations of the object present in the provided array.