Class StatisticsManager.ReflectionSupplier<T>

  • All Implemented Interfaces:
    java.util.function.Supplier<T>
    Enclosing class:
    StatisticsManager

    static class StatisticsManager.ReflectionSupplier<T>
    extends java.lang.Object
    implements java.util.function.Supplier<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.reflect.Method method  
      private java.lang.ref.WeakReference<java.lang.Object> targetRef  
    • Constructor Summary

      Constructors 
      Constructor Description
      ReflectionSupplier​(java.lang.Object target, java.lang.reflect.Method method)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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
    • Field Detail

      • targetRef

        private final java.lang.ref.WeakReference<java.lang.Object> targetRef
      • method

        private final java.lang.reflect.Method method
    • Constructor Detail

      • ReflectionSupplier

        ReflectionSupplier​(java.lang.Object target,
                           java.lang.reflect.Method method)
    • Method Detail

      • get

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