Created
April 12, 2020 00:44
-
-
Save Ghost-Programmer/f2f9146e32e44f7d4ccc4382366a8690 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 Longitude | |
* | |
* @author jmiller | |
*/ | |
public class Longitude extends Coordinate implements Serializable { | |
/** | |
* | |
*/ | |
private static final long serialVersionUID = 2165340852811132537L; | |
/** | |
* Constructor for creating the Longitude from a decimal | |
* | |
* @param decimal Decimal Degree to set this latitude to. | |
* @throws IllegalValueException Illegal value, outside of the range of values. | |
*/ | |
public Longitude(final Double decimal) throws IllegalValueException { | |
this.setDecimal(decimal); | |
} | |
@Override | |
protected int getDegreeLimit() { | |
return 180; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment