|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrx.Notification<T>
public class Notification<T>
An object representing a notification sent to an Observable
.
For the Microsoft Rx equivalent see: http://msdn.microsoft.com/en-us/library/hh229462(v=vs.103).aspx
Nested Class Summary | |
---|---|
static class |
Notification.Kind
|
Constructor Summary | |
---|---|
Notification()
A constructor used to represent an onCompleted notification. |
|
Notification(T value)
A constructor used to represent an onNext notification. |
|
Notification(java.lang.Throwable exception)
A constructor used to represent an onError notification. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
Notification.Kind |
getKind()
Retrieves the kind of the notification: OnNext, OnError, OnCompleted |
java.lang.Throwable |
getThrowable()
Retrieves the exception associated with an onError notification. |
T |
getValue()
Retrieves the data associated with an onNext notification. |
int |
hashCode()
|
boolean |
hasThrowable()
Retrieves a value indicating whether this notification has an exception. |
boolean |
hasValue()
Retrieves a value indicating whether this notification has a value. |
boolean |
isOnCompleted()
|
boolean |
isOnError()
|
boolean |
isOnNext()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Notification(T value)
value
- The data passed to the onNext method.public Notification(java.lang.Throwable exception)
exception
- The exception passed to the onError notification.public Notification()
Method Detail |
---|
public java.lang.Throwable getThrowable()
public T getValue()
public boolean hasValue()
public boolean hasThrowable()
public Notification.Kind getKind()
public boolean isOnError()
public boolean isOnCompleted()
public boolean isOnNext()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |