@Test void testOrdering() throws IOException { IPLookup ipArt = new IPLookup(() -> new AdaptiveRadixTree<>(InetAddressBinaryComparable.INSTANCE)); NavigableMap<InetAddress, Record> art = ipArt.map(); IPLookup ipRbt = new IPLookup(() -> new TreeMap<>(InetAddressComparator.INSTANCE)); assertEquals(ipArt.map().size(), ipRbt.map().size()); assertEquals(70865, art.size()); Iterator<Map.Entry<InetAddress, Record>> it = art.entrySet().iterator(); for (Map.Entry<InetAddress, Record> e : ipRbt.map().entrySet()) { assertEquals(it.next(), e); } }
NavigableMap<InetAddress, Record> map() { return m; }
IPLookup { NavigableMap<InetAddress, Record> map() { return m; } }
IPLookup { NavigableMap<InetAddress, Record> map() { return m; } IPLookup(Supplier<NavigableMap<InetAddress, Record>> s); }
IPLookup { NavigableMap<InetAddress, Record> map() { return m; } IPLookup(Supplier<NavigableMap<InetAddress, Record>> s);  }
IPLookup { NavigableMap<InetAddress, Record> map() { return m; } IPLookup(Supplier<NavigableMap<InetAddress, Record>> s);   }