Package de.srsoftware.tools
Klasse Payload<T>
java.lang.Object
de.srsoftware.tools.Payload<T>
- Typparameter:
T- the type of the expected payload
- Alle implementierten Schnittstellen:
Result<T>
A wrapper for results that carry an actual payload
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
-
Konstruktordetails
-
Payload
Wrap a payload as a successful instance of Result- Parameter:
object- the payload object
-
-
Methodendetails
-
of
wrap a payload- Typparameter:
T- the type of the payload- Parameter:
object- the payload to pack- Gibt zurück:
- the wrapped payload object
-
isError
public boolean isError()Beschreibung aus Schnittstelle kopiert:ResultIndicate, whether a given result is an error. -
get
get the payload- Gibt zurück:
- the payload object
-