Package 

Class ValueProvider

  • All Implemented Interfaces:
    com.bugsnag.android.internal.dag.Provider

    
    public final class ValueProvider<T extends Object>
     implements Provider<T>
                        
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Boolean isComplete
    • Constructor Summary

      Constructors 
      Constructor Description
      ValueProvider(T value)
    • Method Summary

      Modifier and Type Method Description
      Boolean getIsComplete()
      T getOrNull() Same as get but will return null instead of throwing an exception if the value could not be computed.
      T get() Return the value sourced from this provider, throwing an exception if the provider failed to calculate a value.
      • Methods inherited from class java.lang.Object

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

      • ValueProvider

        ValueProvider(T value)
    • Method Detail

      • getOrNull

         T getOrNull()

        Same as get but will return null instead of throwing an exception if the value could not be computed.

      • get

         T get()

        Return the value sourced from this provider, throwing an exception if the provider failed to calculate a value. Anything thrown from here will have been captured when attempting to calculate the value.