Class LottieResult<V>


  • public final class LottieResult<V>
    extends java.lang.Object
    Contains class to hold the resulting value of an async task or an exception if it failed. Either value or exception will be non-null.
    • Constructor Summary

      Constructors 
      Constructor Description
      LottieResult​(java.lang.Throwable exception)  
      LottieResult​(V value)  
    • Constructor Detail

      • LottieResult

        public LottieResult​(V value)
      • LottieResult

        public LottieResult​(java.lang.Throwable exception)
    • Method Detail

      • getValue

        @Nullable
        public V getValue()
      • getException

        @Nullable
        public java.lang.Throwable getException()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object