(double longitude, double latitude)
| 24 | } |
| 25 | |
| 26 | private void |
| 27 | validate(double longitude, double latitude) throws IllegalArgumentException |
| 28 | { |
| 29 | if (longitude < -90.0 || longitude > 90.0) { |
| 30 | throw new IllegalArgumentException("illegal longitude " + |
| 31 | longitude); |
| 32 | } |
| 33 | if (latitude < -180.0 || latitude > 180.0) { |
| 34 | throw new IllegalArgumentException("illegal latitude " + |
| 35 | latitude); |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * Creates an GPOS Record from the given data |
no outgoing calls
no test coverage detected