Any

data class Any(val obj: Any?) : StageResult

StageResult indicating that the stage emits/accepts an object of a arbitrary type.

Note that other stage result types cannot be implicitly converted into this type. A stage which performs type conversion (such as dev.ust.zinc.grader.pipeline.local.Barrier) is needed to convert this type from/to other result types.

This stage result type is a can of worms. Do not use this unless you know what you are doing, and prefer to add a new StageResult type instead of using this type.

Constructors

Link copied to clipboard
constructor(obj: Any?)

Properties

Link copied to clipboard
val obj: Any?

Functions

Link copied to clipboard
open override fun asAnyResult(): StageResult.Any

Converts this into a StageResult.Any instance.

Link copied to clipboard

Casts this into the stage result type of OutT, or throws IllegalArgumentException if the conversion is not possible.

Link copied to clipboard

Casts this into the stage result type of outClazz.