package saker.build.task.utils
StructuredTaskResult interface of an ordered collection.
Instances of this interface contains a fixed number of task results represented in an ordered manner.
public default void | forEach( Performs an action for each task result element in this list. |
public default StructuredTaskResult | getResult( Gets the result at the given index. |
public Iterator< | Gets an iterator for the task results in this list. |
public default int | size() Gets the size of this list result. |
public default List< | toResult( Converts the structured result to plain object. |
From: StructuredTaskResult |
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.
Gets the result at the given index.
indexThe index.
The result at the given index.
IndexOutOfBoundsExceptionIf the index is out of range.
Gets an iterator for the task results in this list.
The iterator.
Gets the size of this list result.
The size is constant during the lifetime of this object.
The size.
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.