Interface ScopedKeyValues.CallableOp<R, X extends Throwable>

Type Parameters:
R - return type.
X - exception type the operation may throw.
Enclosing class:
ScopedKeyValues
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ScopedKeyValues.CallableOp<R, X extends Throwable>
Like java.lang.ScopedValue.CallableOp but declared here so this API module never has to reference java.lang.ScopedValue itself, keeping it compilable on older JDKs - the real ScopedValue-backed provider (a separate module requiring a newer JDK) bridges the two with a plain method reference, since both interfaces share the same R call() throws X shape.
  • Method Summary

    Modifier and Type
    Method
    Description
    Runs the operation.
  • Method Details

    • call

      R call() throws X
      Runs the operation.
      Returns:
      result.
      Throws:
      X - whatever the operation itself declares.