Package de.srsoftware.tools
Klasse Payload<P>
java.lang.Object
de.srsoftware.tools.Payload<P>
- Typparameter:
P- the type of the expected payload
- Alle implementierten Schnittstellen:
Result<P>
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:
P- the type of the payload- Parameter:
object- the payload to pack- Gibt zurück:
- the wrapped payload object
-
get
get the payload- Gibt zurück:
- the payload object
-
map
Beschreibung aus Schnittstelle kopiert:ResultTransform this Result object to another via a mapping function. -
optional
Beschreibung aus Schnittstelle kopiert:ResultCreate an Optional from a Result. -
stream
Beschreibung aus Schnittstelle kopiert:ResultCreate a stream of the Payload. This may be suitable, if the payload is a collection. -
toString
-