Package net.groboclown.retval
Interface ValuedProblemContainer<T>
-
- Type Parameters:
T- type of the underlying value.
- All Superinterfaces:
ProblemContainer
- All Known Subinterfaces:
RetNullable<T>,RetVal<T>
- All Known Implementing Classes:
MonitoredReturnProblem,MonitoredReturnValue,SimpleReturnProblem,SimpleReturnValue,WarningVal
public interface ValuedProblemContainer<T> extends ProblemContainer
A generic type that contains a value and possible problems. Useful for user that need to take eitherRetNullable,RetVal, orWarningVal, without needing to create implementations for each one.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TgetValue()Get the underlying value object, regardless of the problem state of the container.-
Methods inherited from interface net.groboclown.retval.ProblemContainer
anyProblems, debugProblems, hasProblems, isOk, isProblem, joinProblemsWith, validProblems
-
-
-
-
Method Detail
-
getValue
@Nullable T getValue()
Get the underlying value object, regardless of the problem state of the container.- Returns:
- the value associated with this container.
-
-