Class Result<Success,Failure>

java.lang.Object
gov.nasa.jpl.aerie.merlin.framework.Result<Success,Failure>
Type Parameters:
Success - The type of the success variant of the Result.
Failure - The type of the failure variant of the Result.

public abstract class Result<Success,Failure> extends Object
This class is the equivalent of the type `Result L R = Success L | Failure R` in a language with algebraic data types, but adapted to the vagaries of the Java platform. The sum alternatives are represented as a closed family of classes implementing a common interface. Case evaluation is represented by the visitor pattern.