MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / compareTo

Method compareTo

__tests__/fixtures/kernel-parity/TortureRecord.java:23–24  ·  view source on GitHub ↗
(Point o)

Source from the content-addressed store, hash-verified

21 public double norm() { return Math.sqrt(x * x + y * y); }
22
23 @Override
24 public int compareTo(Point o) { return Double.compare(norm(), o.norm()); }
25
26 record Inner(String name, List<String> tags) {
27 String first() { return tags.get(0); }

Callers

nothing calls this directly

Calls 2

normMethod · 0.95
normMethod · 0.65

Tested by

no test coverage detected