Class ConstantProvider<T>

  • All Implemented Interfaces:
    Provider<T>

    public final class ConstantProvider<T>
    extends java.lang.Object
    implements Provider<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private T t  
    • 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

      • t

        @NotNull
        private final T t
    • Constructor Detail

      • ConstantProvider

        public ConstantProvider​(@NotNull
                                T t)
    • Method Detail

      • get

        @NotNull
        public T get()
        Specified by:
        get in interface Provider<T>