Created
April 12, 2020 00:47
-
-
Save Ghost-Programmer/7d3b58f8bc767319fbddcc00b9f106bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package name.mymiller.geo; | |
import name.mymiller.lang.IllegalValueException; | |
import java.io.Serializable; | |
/** | |
* Object for representing Latitude | |
* | |
* @author jmiller | |
*/ | |
public class Latitude extends Coordinate implements Serializable { | |
/** | |
* | |
*/ | |
private static final long serialVersionUID = -5927609321794514712L; | |
/** | |
* Constructor for creating the Latitude from a decimal | |
* | |
* @param decimal Decimal Degree to set this latitude to. | |
* @throws IllegalValueException Value out of range | |
*/ | |
public Latitude(final Double decimal) throws IllegalValueException { | |
this.setDecimal(decimal); | |
} | |
@Override | |
protected int getDegreeLimit() { | |
return 90; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment