Package space.arim.dazzleconf.backend
Interface DataRoot.Operation<R,U>
- Type Parameters:
R- the result typeU- 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 TypeMethodDescriptiondefault booleanInstructs the caller that this implementation handles its own buffering to the utility inoperateUsing(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 inoperateUsing(Object)- Returns:
- whether this implementation buffers of its own accord
-
operateUsing
Performs the operation- Parameters:
utility- the utility with which it happens- Returns:
- the return value
- Throws:
IOException- upon failure
-