@Override
    public boolean equals(Object o)
    {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        IndexedResolvedServiceAddress that = (IndexedResolvedServiceAddress) o;
        return index == that.index;
    }
A specialized {@link ResolvedServiceAddress} that can be ordered.

This class is (only) intended to be used by {@link HappyEyeballsResolver} which uses the ordering to generate results
in the order defined by SRV's 'priority' and 'weight' attributes.

@author Guus der Kinderen, guus@goodbytes.nl
xmppserver/src/main/java/org/jivesoftware/openfire/net/IndexedResolvedServiceAddress.java