Class StatementResultSet
- java.lang.Object
-
- com.mrivanplays.sqlhelper.statement.result.StatementResultSet
-
- All Implemented Interfaces:
Iterable<StatementResult>
public final class StatementResultSet extends Object implements Iterable<StatementResult>
Represents a SELECT statement's result set.
-
-
Constructor Summary
Constructors Constructor Description StatementResultSet(List<StatementResult> results)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forEach(Consumer<? super StatementResult> action)
List<StatementResult>
getResults()
Returns a unmodifiable list of the results queried.Iterator<StatementResult>
iterator()
Spliterator<StatementResult>
spliterator()
-
-
-
Constructor Detail
-
StatementResultSet
public StatementResultSet(List<StatementResult> results)
-
-
Method Detail
-
getResults
public List<StatementResult> getResults()
Returns a unmodifiable list of the results queried.- Returns:
- results
-
iterator
public Iterator<StatementResult> iterator()
- Specified by:
iterator
in interfaceIterable<StatementResult>
-
forEach
public void forEach(Consumer<? super StatementResult> action)
- Specified by:
forEach
in interfaceIterable<StatementResult>
-
spliterator
public Spliterator<StatementResult> spliterator()
- Specified by:
spliterator
in interfaceIterable<StatementResult>
-
-