Interface OptionalReturn
public interface OptionalReturn
For modeling an optional return value from a method when it is unknown whether that method
returns void or a value (value can be null).
-
Method Summary
-
Method Details
-
isVoid
boolean isVoid()Returnstrue
if this instance represents a void return. -
getValue
Object getValue()Returns the return value. Returns null if this instance represents a void return.
-