Code example for InetAddress

Methods: equals

0
        return list;
    } 
 
    public void sortByProximity(final InetAddress address, List<InetAddress> addresses)
    { 
        assert address.equals(FBUtilities.getLocalAddress()); // we only know about ourself
        if (BADNESS_THRESHOLD == 0)
        { 
            sortByProximityWithScore(address, addresses);
        } 
        else 
        { 
            sortByProximityWithBadness(address, addresses);
        } 
    } 
 
    private void sortByProximityWithScore(final InetAddress address, List<InetAddress> addresses)
    { 
        Collections.sort(addresses, new Comparator<InetAddress>()
        {