Skip to content

Instantly share code, notes, and snippets.

@Ghost-Programmer
Created April 12, 2020 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ghost-Programmer/f2f9146e32e44f7d4ccc4382366a8690 to your computer and use it in GitHub Desktop.
Save Ghost-Programmer/f2f9146e32e44f7d4ccc4382366a8690 to your computer and use it in GitHub Desktop.
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