/[aagtl_public1]/src/com/luckycatlabs/sunrisesunset/dto/Location2.java
aagtl

Contents of /src/com/luckycatlabs/sunrisesunset/dto/Location2.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Sun Aug 5 13:48:36 2012 UTC (11 years, 7 months ago) by zoffadmin
File size: 1590 byte(s)
initial import of aagtl source code
1 /*
2 * Copyright 2008-2009 Mike Reedell / LuckyCatLabs.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package com.luckycatlabs.sunrisesunset.dto;
18
19 import java.math.BigDecimal;
20
21 /**
22 * Simple VO class to store latitude/longitude information.
23 */
24 public class Location2
25 {
26 private BigDecimal latitude;
27 private BigDecimal longitude;
28
29 /**
30 * Creates a new instance of <code>Location</code> with the given parameters.
31 *
32 * @param latitude
33 * the latitude, in degrees, of this location. North latitude is positive, south negative.
34 * @param longitude
35 * the longitude, in degrees of this location. East longitude is positive, west negative.
36 */
37 public Location2(String latitude, String longitude)
38 {
39 this.latitude = new BigDecimal(latitude);
40 this.longitude = new BigDecimal(longitude);
41 }
42
43 /**
44 * @return the latitude
45 */
46 public BigDecimal getLatitude()
47 {
48 return latitude;
49 }
50
51 /**
52 * @return the longitude
53 */
54 public BigDecimal getLongitude()
55 {
56 return longitude;
57 }
58 }

   
Visit the aagtl Website