Class Providers


  • public final class Providers
    extends java.lang.Object

    Since:
    2.1
    Version:
    2.1
    Author:
    Michael Grove
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> com.google.common.base.Function<com.google.inject.Provider<T>,​T> get()  
      static <T> T or​(com.google.inject.Provider<T> theProvider, T theDefault)  
      static <T> T orNull​(com.google.inject.Provider<T> theProvider)  
      • Methods inherited from class java.lang.Object

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

      • orNull

        public static <T> T orNull​(com.google.inject.Provider<T> theProvider)
      • or

        public static <T> T or​(com.google.inject.Provider<T> theProvider,
                               T theDefault)
      • get

        public static <T> com.google.common.base.Function<com.google.inject.Provider<T>,​T> get()