Hole

public class Hole implements Parcelable


A hole in a polygon defined by a list of vertices.

Summary

Constants

static final Parcelable.Creator<Hole>

Public constructors

Constructor for Hole with parameters for required fields.

Public methods

List<LatLngAltitude>

The vertices of the hole.

void

Sets the vertices of the hole.

void
writeToParcel(Parcel dest, int flags)

Extension functions

final void

Validates that the given Hole is correct.

Inherited Constants

From android.os.Parcelable
static final int
static final int

Inherited methods

From android.os.Parcelable
abstract int

Constants

CREATOR

public static final Parcelable.Creator<HoleCREATOR

Public constructors

Hole

public Hole(List<LatLngAltitude> vertices)

Constructor for Hole with parameters for required fields.

Parameters
List<LatLngAltitude> vertices

The vertices of the hole.

Public methods

getVertices

public List<LatLngAltitudegetVertices()

The vertices of the hole.

setVertices

public void setVertices(List<LatLngAltitude> vertices)

Sets the vertices of the hole.

writeToParcel

public void writeToParcel(Parcel dest, int flags)

Extension functions

ValidatorsKt.validate

public final void ValidatorsKt.validate(@NonNull Hole receiver)

Validates that the given Hole is correct.

Throws
java.lang.IllegalArgumentException

If the Hole is not valid.