Class SupplierUtil.ConstructorSupplier<T>

  • All Implemented Interfaces:
    java.io.Serializable, java.util.function.Supplier<T>
    Enclosing class:
    SupplierUtil

    private static class SupplierUtil.ConstructorSupplier<T>
    extends java.lang.Object
    implements java.util.function.Supplier<T>, java.io.Serializable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.reflect.Constructor<? extends T> constructor  
    • Constructor Summary

      Constructors 
      Constructor Description
      ConstructorSupplier​(java.lang.reflect.Constructor<? extends T> constructor)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T get()  
      (package private) java.lang.Object writeReplace()  
      • Methods inherited from class java.lang.Object

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

      • constructor

        private final java.lang.reflect.Constructor<? extends T> constructor
    • Constructor Detail

      • ConstructorSupplier

        public ConstructorSupplier​(java.lang.reflect.Constructor<? extends T> constructor)
    • Method Detail

      • get

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

        java.lang.Object writeReplace()
                               throws java.io.ObjectStreamException
        Throws:
        java.io.ObjectStreamException