Initial version -- added millennium read funcionality
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package com.google.maps.android.data;
|
||||
|
||||
import com.google.android.gms.maps.model.LatLng;
|
||||
import java.util.List;
|
||||
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public class LineString implements Geometry<List<LatLng>> {
|
||||
private static final String GEOMETRY_TYPE = "LineString";
|
||||
private final List<LatLng> mCoordinates;
|
||||
|
||||
public LineString(List<LatLng> list) {
|
||||
if (list == null) {
|
||||
throw new IllegalArgumentException("Coordinates cannot be null");
|
||||
}
|
||||
this.mCoordinates = list;
|
||||
}
|
||||
|
||||
@Override // com.google.maps.android.data.Geometry
|
||||
public String getGeometryType() {
|
||||
return GEOMETRY_TYPE;
|
||||
}
|
||||
|
||||
@Override // com.google.maps.android.data.Geometry
|
||||
public List<LatLng> getGeometryObject() {
|
||||
return this.mCoordinates;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "LineString{\n coordinates=" + this.mCoordinates + "\n}\n";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user