Class MemoizedSupplier<T>

java.lang.Object
org.elasticsearch.common.MemoizedSupplier<T>
All Implemented Interfaces:
java.util.function.Supplier<T>

public class MemoizedSupplier<T>
extends java.lang.Object
implements java.util.function.Supplier<T>
  • Constructor Summary

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

    Modifier and Type Method Description
    T get()  

    Methods inherited from class java.lang.Object

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

    • MemoizedSupplier

      public MemoizedSupplier​(java.util.function.Supplier<T> supplier)
  • Method Details

    • get

      public T get()
      Specified by:
      get in interface java.util.function.Supplier<T>