Package ste.lloop

Class ReturnValue<R>

java.lang.Object
ste.lloop.ReturnValue<R>
Type Parameters:
R - the type of the return value

public class ReturnValue<R> extends Object
A holder for a return value that can be used in a lambda expression.
  • Field Details

    • value

      public R value
      The value of the return value.
  • Constructor Details

    • ReturnValue

      public ReturnValue(R value)
      Constructs a new ReturnValue instance with the given value.
      Parameters:
      value - the initial value
    • ReturnValue

      public ReturnValue()
      Constructs a new ReturnValue instance with a null value.
  • Method Details