MCPcopy Create free account
hub / github.com/BoltsFramework/Bolts-Java / cast

Method cast

Bolts/src/bolts/Task.java:196–200  ·  view source on GitHub ↗

Makes a fluent cast of a Task's result possible, avoiding an extra continuation just to cast the type of the result.

()

Source from the content-addressed store, hash-verified

194 * the type of the result.
195 */
196 public <TOut> Task<TOut> cast() {
197 @SuppressWarnings("unchecked")
198 Task<TOut> task = (Task<TOut>) this;
199 return task;
200 }
201
202 /**
203 * Turns a Task<T> into a Task<Void>, dropping any result.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected