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

    Modifier and Type
    Method
    Description
    Returns the return value.
    boolean
    Returns true if this instance represents a void return.
  • Method Details

    • isVoid

      boolean isVoid()
      Returns true if this instance represents a void return.
    • getValue

      Object getValue()
      Returns the return value. Returns null if this instance represents a void return.