public interface

DataBuffer

implements Iterable<T> Releasable
com.google.android.gms.common.data.DataBuffer<T>
Known Indirect Subclasses

Class Overview

Interface for a buffer of typed data.

Summary

Public Methods
abstract void close()
This method is deprecated. use release() instead
abstract T get(int position)
Returns an element on specified position.
abstract int getCount()
abstract boolean isClosed()
This method is deprecated. release() is idempotent, and so is safe to call multiple times
abstract Iterator<T> iterator()
abstract void release()
Releases resources used by the buffer.
abstract Iterator<T> singleRefIterator()
In order to use this iterator it should be supported by particular DataBuffer.
[Expand]
Inherited Methods
From interface java.lang.Iterable
From interface com.google.android.gms.common.api.Releasable

Public Methods

public abstract void close ()

This method is deprecated.
use release() instead

public abstract T get (int position)

Returns an element on specified position.

public abstract int getCount ()

public abstract boolean isClosed ()

This method is deprecated.
release() is idempotent, and so is safe to call multiple times

public abstract Iterator<T> iterator ()

public abstract void release ()

Releases resources used by the buffer. This method is idempotent.

public abstract Iterator<T> singleRefIterator ()

In order to use this iterator it should be supported by particular DataBuffer. Be careful: there will be single reference while iterating. If you are not sure - DO NOT USE this iterator.