public abstract class BookingConstraints extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
BookingConstraints() |
Modifier and Type | Method and Description |
---|---|
static BookingConstraints |
create(int passengerCount,
int suitcaseCount)
Create a new
BookingConstraints instance. |
abstract int |
getPassengerCount()
Number of passengers on the ride.
|
abstract int |
getSuitcaseCount()
Number of suitcases on the ride.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
describeContents, writeToParcel
public abstract int getPassengerCount()
public abstract int getSuitcaseCount()
public static BookingConstraints create(int passengerCount, int suitcaseCount)
BookingConstraints
instance.passengerCount
- number of passengers on the ridesuitcaseCount
- number of suitcases on the ride