saker.build Documentation TaskDoc JavaDoc Packages
public interface StructuredListTaskResult extends StructuredTaskResult
StructuredTaskResult interface of an ordered collection.

Instances of this interface contains a fixed number of task results represented in an ordered manner.

Methods
public default void
Performs an action for each task result element in this list.
public default StructuredTaskResult
getResult(int index)
Gets the result at the given index.
public Iterator<extends StructuredTaskResult>
Gets an iterator for the task results in this list.
public default int
Gets the size of this list result.
public default List<?>
Converts the structured result to plain object.
public default void forEach(Consumer<super StructuredTaskResult> consumer) throws NullPointerException
Performs an action for each task result element in this list.
consumerThe action to perform.
NullPointerExceptionIf the action is null.
public default StructuredTaskResult getResult(int index) throws IndexOutOfBoundsException
Gets the result at the given index.
indexThe index.
The result at the given index.
IndexOutOfBoundsExceptionIf the index is out of range.
public abstract Iterator<extends StructuredTaskResult> resultIterator()
Gets an iterator for the task results in this list.
The iterator.
public default int size()
Gets the size of this list result.

The size is constant during the lifetime of this object.

The size.
public default List<?> toResult(TaskResultResolver results)
Overridden from: StructuredTaskResult
Converts the structured result to plain object.

Calling this method will ensure that the return value will not have any structured task result related fields in it.

resultsThe results to resolve the task identifiers against.
The objectified structured result represented by this instance.