public class CircularListOutput<T> extends ListOutput<T>
| Modifier and Type | Field and Description |
|---|---|
protected int |
capacity |
protected int |
i |
items| Constructor and Description |
|---|
CircularListOutput(java.util.List<T> itemList,
int capacity) |
| Modifier and Type | Method and Description |
|---|---|
CircularListInput<T> |
getInput()
Make a
Input instance from this. |
int |
put(java.util.List<T> buffer,
int from,
int to)
Bulk circular put method
|
boolean |
put(T item)
Write the data item
|
java.lang.String |
toString() |
close, putpublic CircularListOutput(java.util.List<T> itemList, int capacity) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic boolean put(T item) throws java.io.IOException
Outputpublic int put(java.util.List<T> buffer, int from, int to) throws java.io.IOException
public CircularListInput<T> getInput() throws java.io.IOException
OutputInput instance from this.public final java.lang.String toString()
toString in class ListOutput<T>