com.luckycatlabs.sunrisesunset.dto
Class Location
- java.lang.Object
-
- com.luckycatlabs.sunrisesunset.dto.Location
-
public class Location extends java.lang.ObjectSimple VO class to store latitude/longitude information.
-
-
Constructor Summary
Constructors Constructor and Description Location(double latitude, double longitude)Creates a new instance ofLocationwith the given parameters.Location(java.lang.String latitude, java.lang.String longitude)Creates a new instance ofLocationwith the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.math.BigDecimalgetLatitude()java.math.BigDecimalgetLongitude()
-
-
-
Constructor Detail
-
Location
public Location(java.lang.String latitude, java.lang.String longitude)Creates a new instance ofLocationwith the given parameters.- Parameters:
latitude- the latitude, in degrees, of this location. North latitude is positive, south negative.longitude- the longitude, in degrees of this location. East longitude is positive, west negative.
-
Location
public Location(double latitude, double longitude)Creates a new instance ofLocationwith the given parameters.- Parameters:
latitude- the latitude, in degrees, of this location. North latitude is positive, south negative.longitude- the longitude, in degrees, of this location. East longitude is positive, east negative.
-
-
DMelt 3.0 © DataMelt by jWork.ORG