Location
com.luckycatlabs.sunrisesunset.dto

Class Location



  • public class Locationextends Object
    Simple VO class to store latitude/longitude information.
    • Constructor Detail

      • Location

        public Location(String latitude,        String longitude)
        Creates a new instance of Location with 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 of Location with 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.
    • Method Detail

      • getLatitude

        public BigDecimal getLatitude()
        Returns:
        the latitude
      • getLongitude

        public BigDecimal getLongitude()
        Returns:
        the longitude

SCaVis 2.2 © jWork.ORG