Class FunctionAdapter<F,​I,​O>

java.lang.Object
io.github.toolfactory.jvm.util.FunctionAdapter<F,​I,​O>
Direct Known Subclasses:
ConsulterSupplyFunction, DeepConsulterSupplyFunction

public abstract class FunctionAdapter<F,​I,​O>
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected F function  
  • Constructor Summary

    Constructors
    Constructor Description
    FunctionAdapter()  
    FunctionAdapter​(F function)  
  • Method Summary

    Modifier and Type Method Description
    abstract O apply​(I input)  
    F getFunction()  
    FunctionAdapter<F,​I,​O> setFunction​(F function)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • function

      protected F function
  • Constructor Details

    • FunctionAdapter

      public FunctionAdapter()
    • FunctionAdapter

      public FunctionAdapter​(F function)
  • Method Details

    • setFunction

      public FunctionAdapter<F,​I,​O> setFunction​(F function)
    • getFunction

      public F getFunction()
    • apply

      public abstract O apply​(I input)