E - public class Accumulator<E>
extends java.lang.Object
implements java.lang.Iterable<E>
| Constructor and Description | 
|---|
| Accumulator(int size) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(E item)Adds an item to the collection. | 
| int | capacity() | 
| E | get(int i) | 
| boolean | isEmpty() | 
| java.util.Iterator<E> | iterator() | 
| int | size() | 
public void add(E item)
item - add to collectionpublic boolean isEmpty()
public int size()
public int capacity()
public java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<E>public E get(int i)
Copyright © 2018 The Apache Software Foundation