protected final class BufferManager.CloseableDistinctBuffer<T> extends BufferManager.CloseableBuffer implements BufferManager.DistinctBuffer<T>
name, onHeap| Modifier | Constructor and Description |
|---|---|
protected |
CloseableDistinctBuffer(String name,
boolean onHeap,
Set<T> buffer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addIfAbsent(T value)
Add the value to the buffer only if the buffer does not yet contain the value.
|
boolean |
isEmpty()
Determine if this buffer is empty.
|
Iterator<T> |
iterator()
Get an iterator over all of the records.
|
long |
size()
Get the size of the buffer.
|
String |
toString() |
closeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcloseforEach, spliteratorpublic boolean isEmpty()
BufferManager.BufferBufferManager.Buffer.size().isEmpty in interface BufferManager.Bufferpublic long size()
BufferManager.Buffersize in interface BufferManager.Bufferpublic boolean addIfAbsent(T value)
BufferManager.PredicateaddIfAbsent in interface BufferManager.Predicate<T>value - the valuepublic Iterator<T> iterator()
BufferManager.DistinctBufferCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.