Class Memoize<T>


  • public class Memoize<T>
    extends java.lang.Object
    Author:
    Fabrizio Giudici
    • Constructor Summary

      Constructors 
      Constructor Description
      Memoize()  
      Memoize​(java.util.function.Supplier<T> supplier)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T get()  
      T get​(java.util.function.Supplier<T> supplier)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Memoize

        public Memoize()
      • Memoize

        public Memoize​(@Nonnull
                       java.util.function.Supplier<T> supplier)
    • Method Detail

      • get

        @Nonnull
        public T get()
      • get

        @Nonnull
        public T get​(@Nonnull
                     java.util.function.Supplier<T> supplier)