Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] remove ILatLng and IProjectedMeteres (#13176)
Browse files Browse the repository at this point in the history
  • Loading branch information
osana authored and tobrun committed Oct 31, 2018
1 parent a1f1899 commit f236cc6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 60 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* data automatically, so all data enters in the WGS84 datum.
* </p>
*/
public class LatLng implements ILatLng, Parcelable {
public class LatLng implements Parcelable {

/**
* Inner class responsible for recreating Parcels into objects.
Expand Down Expand Up @@ -139,7 +139,6 @@ public void setLatitude(
* @see GeometryConstants#MIN_LATITUDE
* @see GeometryConstants#MAX_LATITUDE
*/
@Override
public double getLatitude() {
return latitude;
}
Expand Down Expand Up @@ -177,7 +176,6 @@ public void setLongitude(@FloatRange(from = GeometryConstants.MIN_LONGITUDE, to
* @see GeometryConstants#MIN_LONGITUDE
* @see GeometryConstants#MAX_LONGITUDE
*/
@Override
public double getLongitude() {
return longitude;
}
Expand All @@ -196,7 +194,6 @@ public void setAltitude(double altitude) {
*
* @return the altitude value in meters
*/
@Override
public double getAltitude() {
return altitude;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public String toString() {
* @param latLngs List of LatLng objects
* @return LatLngBounds
*/
static LatLngBounds fromLatLngs(final List<? extends ILatLng> latLngs) {
static LatLngBounds fromLatLngs(final List<? extends LatLng> latLngs) {
double minLat = GeometryConstants.MAX_LATITUDE;
double maxLat = GeometryConstants.MIN_LATITUDE;

Expand All @@ -251,7 +251,7 @@ static LatLngBounds fromLatLngs(final List<? extends ILatLng> latLngs) {
}
}

for (final ILatLng gp : latLngs) {
for (final LatLng gp : latLngs) {
final double latitude = gp.getLatitude();
minLat = Math.min(minLat, latitude);
maxLat = Math.max(maxLat, latitude);
Expand Down Expand Up @@ -418,7 +418,7 @@ static boolean containsLongitude(final double eastLon, final double westLon, fin
* @param latLng the point which may be contained
* @return true, if the point is contained within the bounds
*/
public boolean contains(final ILatLng latLng) {
public boolean contains(final LatLng latLng) {
return containsLatitude(latLng.getLatitude())
&& containsLongitude(latLng.getLongitude());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* except at the equator.
* </p>
*/
public class ProjectedMeters implements IProjectedMeters, Parcelable {
public class ProjectedMeters implements Parcelable {

/**
* Inner class responsible for recreating Parcels into objects.
Expand Down Expand Up @@ -68,7 +68,6 @@ private ProjectedMeters(Parcel in) {
*
* @return Projected meters in north.
*/
@Override
public double getNorthing() {
return northing;
}
Expand All @@ -78,7 +77,6 @@ public double getNorthing() {
*
* @return Projected meters in east.
*/
@Override
public double getEasting() {
return easting;
}
Expand Down

0 comments on commit f236cc6

Please sign in to comment.