Interface OutputFactory<T,E extends Exception>

Type Parameters:
T - the output type
E - the exception type that can be thrown on creation.
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 OutputFactory<T,E extends Exception>
Creates output like objects with a buffer size. Some consumers of this factory may have different semantics on the buffer size parameter but in general -1 means the buffer size is unknown.
Author:
agent
  • Method Summary

    Modifier and Type
    Method
    Description
    create(int bufferSize)
    Create the output type
  • Method Details

    • create

      T create(int bufferSize) throws E
      Create the output type
      Parameters:
      bufferSize - buffer size if unknown maybe -1
      Returns:
      created output
      Throws:
      E - if any error creating output