T - Type of items added to this BufferStrategy.Accumulator.B - Type of item created when an accumulation is finished.public static interface BufferStrategy.Accumulator<T,B>
finished.
None of the methods on an instance of an BufferStrategy.Accumulator will be invoked concurrently and no other method
will be called after finish() returns.
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(T item)
Adds the passed
item to this BufferStrategy.Accumulator. |
B |
finish()
Finishes accumulation and returns the accumulated value.
|
void accumulate(@Nullable
T item)
item to this BufferStrategy.Accumulator.item - to add to this BufferStrategy.Accumulator.B finish()