latitude = Double.parseDouble(parts[3]);
}
} catch(NumberFormatException exception) {
// If a number can't be parsed, then this is an invalid authority code.
NoSuchAuthorityCodeException e = noSuchAuthorityCode(type, text);
e.initCause(exception);
throw e;
}
if (!(longitude>=Longitude.MIN_VALUE && longitude<=Longitude.MAX_VALUE &&
latitude >= Latitude.MIN_VALUE && latitude <= Latitude.MAX_VALUE))