Record Components:
T - the return type
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 interface ValueOperation<T>
Operation with a return value, used by ReentrantJavaReadWriteLock and ReadWriteLockedStriped.
  • Method Summary

    Modifier and Type
    Method
    Description
    Execute an arbitrary operation and return the result
  • Method Details

    • execute

      T execute()
      Execute an arbitrary operation and return the result
      Returns:
      the result of the operation