public abstract class FareItem extends Object implements Parcelable
Fare
. Required for generating receipts and invoices.Modifier and Type | Class and Description |
---|---|
static class |
FareItem.FareItemType
The
FareItem 's type |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
FareItem() |
Modifier and Type | Method and Description |
---|---|
static FareItem |
create(long amountInCents,
FareItem.FareItemType fareItemType)
Create a new FareItem object.
|
abstract long |
getAmountInCents()
Amount in cents
|
abstract FareItem.FareItemType |
getFareItemType()
Type of fare item
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
describeContents, writeToParcel
public abstract long getAmountInCents()
public abstract FareItem.FareItemType getFareItemType()
public static FareItem create(long amountInCents, FareItem.FareItemType fareItemType)
amountInCents
- The amount in centsfareItemType
- The type of the FareItem