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() |
close
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close
forEach, spliterator
public boolean isEmpty()
BufferManager.Buffer
BufferManager.Buffer.size()
.isEmpty
in interface BufferManager.Buffer
public long size()
BufferManager.Buffer
size
in interface BufferManager.Buffer
public boolean addIfAbsent(T value)
BufferManager.Predicate
addIfAbsent
in interface BufferManager.Predicate<T>
value
- the valuepublic Iterator<T> iterator()
BufferManager.DistinctBuffer
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.