AutocompletePredictionBufferResponse

public class AutocompletePredictionBufferResponse extends Response<R extends AbstractDataBuffer<T> & Result>
implements DataBuffer<AutocompletePrediction>

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.

Public Method Summary

void
AutocompletePrediction
get(int position)
Returns an element on specified position.
int
Bundle
boolean
Iterator<AutocompletePrediction>
void
release()
Releases resources used by the buffer.
Iterator<AutocompletePrediction>
singleRefIterator()
In order to use this iterator it should be supported by particular DataBuffer.

Inherited Method Summary

Public Methods

public void close ()

public AutocompletePrediction get (int position)

Returns an element on specified position.

public int getCount ()

public Bundle getMetadata ()

public boolean isClosed ()

public Iterator<AutocompletePrediction> iterator ()

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.