Package net.groboclown.retval.impl
Behind-the-scenes implementations for the top-level interfaces. These can change arbitrarily
between versions, even patch versions, so do not rely upon these for library stability.
The code here attempts to optimize memory and performance based on usage patterns. The primary motivation around the break-down is for optimizing memory, especially since these objects are expected to have a short life-cycle and potentially large numbers of objects created.
-
Interface Summary Interface Description ReturnTypeFactory An abstract factory pattern for creating the return type objects. -
Class Summary Class Description CollectionUtil Internal helper class for working with collections.MonitoredFactory Generates monitored versions of the return types.MonitoredReturnProblem<T> A shared implementation of the Ret* interfaces, which only contains problems.MonitoredReturnValue<T> Intended to be a version of the Ret* classes, with no error and a value.MonitoredRetVoidOk Monitored version of RetVal with an ok state (no problems).RetGenerator Central handler for creating Ret* instances.SimpleFactory Generates unmonitored, streamlined implementations.SimpleReturnProblem<T> A shared implementation of the Ret* interfaces, which only contains problems and is not monitored.SimpleReturnValue<T> Intended to be a version of the Ret* classes, with no error and a value, and has no monitor.SimpleRetVoidOk Unmonitored version of RetVoid with an OK state.