public class Values extends java.lang.Object implements java.io.Closeable, java.lang.Iterable<Value>
This is a set of Value instances, that is there is no duplicated elements.
Use a ValuesIterator to traverse all the elements into the set.
When the Values instance is closed, it closes all existing and non-closed ValuesIterator instances too.
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the Values instance.
|
long |
count()
Gets the number of elements into the collection.
|
boolean |
isClosed()
Gets if Values instance has been closed or not.
|
ValuesIterator |
iterator()
See iterator().
|
ValuesIterator |
iterator(Order order)
Gets a ValuesIterator.
|
public long count()
public boolean isClosed()
close()
public ValuesIterator iterator(Order order)
order
- [in] Ascending or descending order.public ValuesIterator iterator()
Creates an Ascendent iterator.
iterator
in interface java.lang.Iterable<Value>
public void close()
It must be called to ensure the integrity of all data.
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable