Package buzz.getcoco.media
Class MediaSession.Response<T>
- java.lang.Object
-
- buzz.getcoco.media.MediaSession.Response<T>
-
- Type Parameters:
T
- The capture of the args to each command response.
- Enclosing class:
- MediaSession
public static class MediaSession.Response<T> extends java.lang.Object
A data class with error and value for each command.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Throwable
getError()
T
getValue()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Response
protected Response(T value)
-
Response
protected Response(java.lang.Throwable error)
-
-
Method Detail
-
getValue
public final T getValue()
-
getError
public final java.lang.Throwable getError()
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-