RxJava



rx.operators
Class ChunkedOperation.Chunk<T,C>

java.lang.Object
  extended by rx.operators.ChunkedOperation.Chunk<T,C>
Type Parameters:
T - The type of objects which this ChunkedOperation.Chunk can hold.
C - The type of object being tracked by the ChunkedOperation.Chunk
Direct Known Subclasses:
OperationBuffer.Buffer, OperationWindow.Window
Enclosing class:
ChunkedOperation

protected abstract static class ChunkedOperation.Chunk<T,C>
extends java.lang.Object

This class represents a single chunk: A sequence of recorded values.


Field Summary
protected  java.util.List<T> contents
           
 
Constructor Summary
protected ChunkedOperation.Chunk()
           
 
Method Summary
abstract  C getContents()
           
 void pushValue(T value)
          Appends a specified value to the ChunkedOperation.Chunk.
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contents

protected final java.util.List<T> contents
Constructor Detail

ChunkedOperation.Chunk

protected ChunkedOperation.Chunk()
Method Detail

pushValue

public void pushValue(T value)
Appends a specified value to the ChunkedOperation.Chunk.

Parameters:
value - The value to append to the ChunkedOperation.Chunk.

getContents

public abstract C getContents()
Returns:
The mutable underlying C which contains all the recorded values in this ChunkedOperation.Chunk object.

size

public int size()
Returns:
The size of the underlying List which contains all the recorded values in this ChunkedOperation.Chunk object.