Class MemoizeFunction<F,​T>

  • All Implemented Interfaces:
    java.util.function.Function<F,​T>

    public abstract class MemoizeFunction<F,​T>
    extends java.lang.Object
    implements java.util.function.Function<F,​T>
    • Constructor Summary

      Constructors 
      Constructor Description
      MemoizeFunction()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      T apply​(F key)  
      abstract T calc​(F n)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • MemoizeFunction

        public MemoizeFunction()
    • Method Detail

      • calc

        public abstract T calc​(F n)
      • apply

        public T apply​(F key)
        Specified by:
        apply in interface java.util.function.Function<F,​T>