package saker.build.task.utils
StructuredTaskResult interface for a map.
The interface contains the results mapped to String keys. The keys can contain null
.
public default void | forEach( Performs an action for each entry in this map result. |
public default StructuredTaskResult | Gets the task result for a given key. |
public default int | size() Gets the size of this map result. |
public Iterator< | Gets an iterator for the entries in this structured map result. |
public Map< | toResult( Converts the structured result to plain object. |
From: StructuredTaskResult |
public default void forEach(BiConsumer<? super String, ? super StructuredTaskResult> consumer ) throws NullPointerException
Performs an action for each entry in this map result.
consumerThe action.
NullPointerExceptionIf the action is
null
.Gets the task result for a given key.
keyThe map key. May be
null
.The task result, or
null
if not found.Gets the size of this map result.
The size is constant during the lifetime of this object.
The size.
Gets an iterator for the entries in this structured map result.
The iterator.
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.