# FreezableUtils


```
public final class FreezableUtils
```

<br />

*** ** * ** ***

Utilities for working with `https://developers.google.com/android/reference/com/google/android/gms/common/data/Freezable` objects.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/com/google/android/gms/common/data/FreezableUtils#FreezableUtils()()` |

| ### Public methods |
|---|---|
| `static https://developer.android.com/reference/java/util/ArrayList.html<T>` | `<T, E extends https://developers.google.com/android/reference/com/google/android/gms/common/data/Freezable<T>> https://developers.google.com/android/reference/com/google/android/gms/common/data/FreezableUtils#freeze(E[])(E[] array)` Utility helper method to freeze an array of freezable entities into a list of concrete entities. |
| `static https://developer.android.com/reference/java/util/ArrayList.html<T>` | `<T, E extends https://developers.google.com/android/reference/com/google/android/gms/common/data/Freezable<T>> https://developers.google.com/android/reference/com/google/android/gms/common/data/FreezableUtils#freeze(java.util.ArrayList<E>)(https://developer.android.com/reference/java/util/ArrayList.html<E> list)` Utility helper method to freeze a list of freezable entities into a list of concrete entities. |
| `static https://developer.android.com/reference/java/util/ArrayList.html<T>` | `<T, E extends https://developers.google.com/android/reference/com/google/android/gms/common/data/Freezable<T>> https://developers.google.com/android/reference/com/google/android/gms/common/data/FreezableUtils#freezeIterable(java.lang.Iterable<E>)(https://developer.android.com/reference/java/lang/Iterable.html<E> iterable)` Utility helper method to freeze an array of freezable entities into a list of concrete entities. |

## Public constructors

### FreezableUtils

```
public FreezableUtils()
```

## Public methods

### freeze

```
public static ArrayList<T> <T, E extends Freezable<T>> freeze(E[] array)
```

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 `https://developers.google.com/android/reference/com/google/android/gms/common/data/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 `https://developers.google.com/android/reference/com/google/android/gms/common/data/Freezable`.

| Parameters |
|---|---|
| `E[] array` | Array to freeze contents from. |

| Returns |
|---|---|
| `https://developer.android.com/reference/java/util/ArrayList.html<T>` | ArrayList of frozen representations of the object present in the provided array. |

### freeze

```
public static ArrayList<T> <T, E extends Freezable<T>> freeze(ArrayList<E> list)
```

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 `https://developers.google.com/android/reference/com/google/android/gms/common/data/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 `https://developers.google.com/android/reference/com/google/android/gms/common/data/Freezable`.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/util/ArrayList.html<E> list` | `ArrayList` to freeze contents from. |

| Returns |
|---|---|
| `https://developer.android.com/reference/java/util/ArrayList.html<T>` | ArrayList of frozen representations of the object present in the provided list. |

### freezeIterable

```
public static ArrayList<T> <T, E extends Freezable<T>> freezeIterable(Iterable<E> iterable)
```

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 `https://developers.google.com/android/reference/com/google/android/gms/common/data/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 `https://developers.google.com/android/reference/com/google/android/gms/common/data/Freezable`.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/Iterable.html<E> iterable` | Iterable to freeze contents from. |

| Returns |
|---|---|
| `https://developer.android.com/reference/java/util/ArrayList.html<T>` | ArrayList of frozen representations of the object present in the provided array. |