AutocompletePredictionBufferResponse | Doclava
public class

AutocompletePredictionBufferResponse

extends Response<R extends AbstractDataBuffer<T> & Result>
implements DataBuffer<AutocompletePrediction>
java.lang.Object
   ↳ com.google.android.gms.common.api.Response<R extends com.google.android.gms.common.data.AbstractDataBuffer<T> & com.google.android.gms.common.api.Result>
     ↳ com.google.android.gms.location.places.AutocompletePredictionBufferResponse

Class Overview

A DataBuffer that represents a list of AutocompletePredictions.

NOTE: The calling application must release() this object after it is done with it to prevent a memory leak. Refer to the developer's guide for more information about handling buffers.

Summary

Public Methods
void close()
AutocompletePrediction get(int position)
Returns an element on specified position.
int getCount()
Bundle getMetadata()
boolean isClosed()
Iterator<AutocompletePrediction> iterator()
void release()
Releases resources used by the buffer.
Iterator<AutocompletePrediction> singleRefIterator()
In order to use this iterator it should be supported by particular DataBuffer.
[Expand]
Inherited Methods
From class com.google.android.gms.common.api.Response
From class java.lang.Object
From interface com.google.android.gms.common.data.DataBuffer
From interface java.lang.Iterable
From interface com.google.android.gms.common.api.Releasable

Public Methods

public void close ()

public AutocompletePrediction get (int position)

Returns an element on specified position.

Parameters
position int

Returns
AutocompletePrediction

public int getCount ()

Returns
int

public Bundle getMetadata ()

Returns
Bundle

public boolean isClosed ()

Returns
boolean

public Iterator<AutocompletePrediction> iterator ()

Returns
Iterator<AutocompletePrediction>

public void release ()

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

public Iterator<AutocompletePrediction> 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.

Returns
Iterator<AutocompletePrediction>