Searched refs:SortableAddress (Results 1 – 2 of 2) sorted by relevance
58 private static final Comparator<SortableAddress> sRfc6724Comparator = new Rfc6724Comparator();63 public static class Rfc6724Comparator implements Comparator<SortableAddress> {66 public int compare(SortableAddress span1, SortableAddress span2) { in compare()110 public static class SortableAddress { class in DnsUtils120 public SortableAddress(@NonNull InetAddress addr, @Nullable InetAddress srcAddr) { in SortableAddress() method in DnsUtils.SortableAddress144 final ArrayList<SortableAddress> sortableAnswerList = new ArrayList<>(); in rfc6724Sort()146 sortableAnswerList.add(new SortableAddress(addr, findSrcAddress(network, addr))); in rfc6724Sort()152 for (SortableAddress ans : sortableAnswerList) { in rfc6724Sort()
47 private DnsUtils.SortableAddress makeSortableAddress(@NonNull String addr) { in makeSortableAddress()51 private DnsUtils.SortableAddress makeSortableAddress(@NonNull String addr, in makeSortableAddress()53 return new DnsUtils.SortableAddress(stringToAddress(addr), in makeSortableAddress()59 final List<DnsUtils.SortableAddress> test = Arrays.asList( in testRfc6724Comparator()105 DnsUtils.SortableAddress test = makeSortableAddress("216.58.200.36"); in testV4SortableAddress()130 DnsUtils.SortableAddress test = makeSortableAddress("2404:6800:4008:801::2004"); in testV6SortableAddress()