Class Outcome

  • All Implemented Interfaces:
    Serializable, AutoCloseable
    Direct Known Subclasses:
    AggregationOutcome

    public class Outcome
    extends Object
    implements AutoCloseable, Serializable
    A generic class to represent (and perhaps log) some operation outcome.

    It contains fields for generic start/stop tracking, as well as fields for a slew of output and logging indicators.

    This class is not intended to be used in any particular way. It is used for various purposes throughout Instrumental ID’s codebase.

    This class implements AutoCloseable so that it can be used in the following sort of structure:

    Outcome outcome;
    
    try(outcome = Outcome.start()) {
        // Do things, recording the outcome
    }
    
    // Your outcome will have a proper start/stop time for that block here
    
    See Also:
    Serialized Form