public final class

DataBufferUtils

extends Object
java.lang.Object
   ↳ com.google.android.gms.common.data.DataBufferUtils

Class Overview

Utilities for working with DataBuffer objects.

Summary

Public Methods
static <T, E extends Freezable<T>> ArrayList<T> freezeAndClose(DataBuffer<E> buffer)
Utility helper method to freeze a DataBuffer into a list of concrete entities.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static ArrayList<T> freezeAndClose (DataBuffer<E> buffer)

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

Note that this will close the buffer, so do not attempt to use it afterwards.

Parameters
buffer DataBuffer to freeze contents from.
Returns
  • ArrayList of objects represented by the buffer.