public class ResultsVectorList extends Object implements Iterable<ResultsVector>
ResultsVector
.Constructor and Description |
---|
ResultsVectorList() |
ResultsVectorList(ResultsVector results)
Creates with the list containing a single item.
|
Modifier and Type | Method and Description |
---|---|
void |
add(ResultsVector results)
Add a
ResultsVector to the list in the final position. |
ResultsVector |
get(int index)
Gets a
ResultsVector at a particular position i nthe list. |
boolean |
isEmpty()
Returns
true if the list contains no elements. |
Iterator<ResultsVector> |
iterator() |
int |
size()
The number of
ResultsVector s in the list. |
java.util.stream.Stream<ResultsVector> |
stream()
A stream of
ResultsVector s. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ResultsVectorList(ResultsVector results)
results
- the single item for the list.public ResultsVectorList()
public void add(ResultsVector results)
ResultsVector
to the list in the final position.results
- the results to add.public int size()
ResultsVector
s in the list.public ResultsVector get(int index)
ResultsVector
at a particular position i nthe list.index
- the position (zero-indexed).public Iterator<ResultsVector> iterator()
iterator
in interface Iterable<ResultsVector>
public java.util.stream.Stream<ResultsVector> stream()
ResultsVector
s.public boolean isEmpty()
true
if the list contains no elements.true
if the list contains no elementsCopyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.