public class ParkingInfo extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<ParkingInfo> |
CREATOR
Parcelable creator for this type.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
ParkingInfo(List<ParkingLot> lots,
List<ParkingBlock> blocks)
Initializes a new instance of
ParkingInfo . |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
List<ParkingBlock> |
getParkingBlocks()
Gets the list of parking blocks.
|
List<ParkingLot> |
getParkingLots()
Gets the list of parking lots.
|
boolean |
hasAvailableParking()
Check if there are parking lots / blocks in this set that are available for parking.
|
int |
hashCode() |
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<ParkingInfo> CREATOR
public ParkingInfo(List<ParkingLot> lots, List<ParkingBlock> blocks)
ParkingInfo
.lots
- List of parking lots.blocks
- List of parking blocks.@NonNull public List<ParkingLot> getParkingLots()
@NonNull public List<ParkingBlock> getParkingBlocks()
public boolean hasAvailableParking()
true
if there's at least one parking lot and/or block that is available.public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.