E - public class Accumulator<E>
extends java.lang.Object
| Constructor and Description |
|---|
Accumulator(int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(E item)
Adds an item to the collection.
|
int |
capacity() |
void |
clearUnsafe(int i)
Removes element at the speficied index from this accumulator.
|
E |
get(int i) |
boolean |
isEmpty() |
int |
size() |
java.util.Collection<E> |
snapshot() |
public void add(E item)
item - add to collectionpublic boolean isEmpty()
public int size()
public int capacity()
public E get(int i)
public java.util.Collection<E> snapshot()
public void clearUnsafe(int i)
add(Object).Copyright © 2009-2020 The Apache Software Foundation