Package com.airbnb.lottie
Class LottieResult<V>
- java.lang.Object
-
- com.airbnb.lottie.LottieResult<V>
-
public final class LottieResult<V> extends java.lang.ObjectContains 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.ThrowablegetException()VgetValue()inthashCode()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-