saker.build Documentation TaskDoc JavaDoc Packages
public interface StructuredMapTaskResult extends StructuredTaskResult
StructuredTaskResult interface for a map.

The interface contains the results mapped to String keys. The keys can contain null.

Methods
public default void
forEach(BiConsumer<super String, ? super StructuredTaskResult> consumer)
Performs an action for each entry in this map result.
public default StructuredTaskResult
Gets the task result for a given key.
public default int
Gets the size of this map result.
public Iterator<extends Entry<String, ? extends StructuredTaskResult>>
Gets an iterator for the entries in this structured map result.
public Map<String, ?>
Converts the structured result to plain object.
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.
public default StructuredTaskResult getTask(String key)
Gets the task result for a given key.
keyThe map key. May be null.
The task result, or null if not found.
public default int size()
Gets the size of this map result.

The size is constant during the lifetime of this object.

The size.
public abstract Iterator<extends Entry<String, ? extends StructuredTaskResult>> taskIterator()
Gets an iterator for the entries in this structured map result.
The iterator.
public abstract Map<String, ?> 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.