Package dev.dokimos.core
Class OutputType<T>
java.lang.Object
dev.dokimos.core.OutputType<T>
- Type Parameters:
T- the captured output type
A super-type token that captures a full generic type
T (including its type arguments) at
compile time so it survives erasure at runtime.
It lets the typed output accessors convert a stored value into a generic target such as
List<Whisky>, which a plain Class<T> cannot express.
Always instantiate it as an anonymous subclass so the type argument is recorded in the class's generic supertype:
OutputType<List<Whisky>> type = new OutputType<>() {};
List<Whisky> whiskies = testCase.actualOutputAs(type);
For a non-generic target, use a plain Class<T> accessor instead.
-
Method Summary