MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / validate

Method validate

src/main/java/core/org/xbill/DNS/GPOSRecord.java:26–37  ·  view source on GitHub ↗
(double longitude, double latitude)

Source from the content-addressed store, hash-verified

24}
25
26private void
27validate(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

Callers 3

GPOSRecordMethod · 0.95
rrFromWireMethod · 0.95
rdataFromStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected