Class LottieResult<V>


  • public final class LottieResult<V>
    extends 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 Detail

      • LottieResult

        public LottieResult​(V value)
      • LottieResult

        public LottieResult​(Throwable exception)
    • Method Detail

      • getValue

        @Nullable
        public V getValue()
      • getException

        @Nullable
        public Throwable getException()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object