Interface DataRoot.Operation<R,U>

Type Parameters:
R - the result type
U - the utility type
Enclosing interface:
DataRoot

public static interface DataRoot.Operation<R,U>
IO proof, functional interface for use with reader/writer methods
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Instructs the caller that this implementation handles its own buffering to the utility in operateUsing(Object)
    operateUsing(U utility)
    Performs the operation
  • Method Details

    • handlesBuffering

      default boolean handlesBuffering()
      Instructs the caller that this implementation handles its own buffering to the utility in operateUsing(Object)
      Returns:
      whether this implementation buffers of its own accord
    • operateUsing

      R operateUsing(U utility) throws IOException
      Performs the operation
      Parameters:
      utility - the utility with which it happens
      Returns:
      the return value
      Throws:
      IOException - upon failure