public abstract class RideOffer extends Object implements Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
RideOffer.TransitType
The type of the transit (taxi or public transport).
|
static interface |
RideOffer.Visitor<T>
Visitor for the RideOffer object.
|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
RideOffer() |
Modifier and Type | Method and Description |
---|---|
abstract <T> T |
accept(RideOffer.Visitor<T> visitor)
The accept-visitor pattern to distinguish between the different RideOffer types.
|
abstract RideOffer.TransitType |
getType()
The type of the offer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
describeContents, writeToParcel
public abstract RideOffer.TransitType getType()
public abstract <T> T accept(RideOffer.Visitor<T> visitor)
T
- The return type of the visitorvisitor
- The operation to perform on each type of RideOffer