public class BoundingBox extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<BoundingBox> |
CREATOR
Parcelable creator for this type.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
BoundingBox(GeoPoint corner1,
GeoPoint corner2)
Initializes a new instance of the
BoundingBox class with corner
locations. |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
GeoPoint |
getCorner1()
Gets the first corner of the bounding box.
|
GeoPoint |
getCorner2()
Gets the second corner of the bounding box, opposite of corner1.
|
int |
hashCode() |
boolean |
isValid()
Checks if current instance is valid.
|
static boolean |
isValid(BoundingBox value)
Checks if the specified bounding box valid.
|
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<BoundingBox> CREATOR
public BoundingBox(@NonNull GeoPoint corner1, @NonNull GeoPoint corner2)
BoundingBox
class with corner
locations.corner1
- The longitude and latitude of the first corner of the box.corner2
- The longitude and latitude of the second corner of the box.public GeoPoint getCorner1()
public GeoPoint getCorner2()
public static boolean isValid(BoundingBox value)
value
- BoundingBox
to validate.public final boolean isValid()
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.