return priority - other.priority;
if (weight != other.weight)
return other.weight - other.weight;
return priority - other.priority;
if (weight != other.weight)
return other.weight - other.weight;
String hostStr = hostname;
if (hostname.charAt(hostname.length() - 1) == '.')
hostStr = hostname.substring(0, hostname.length() - 1);
String hostStr = hostname;
if (hostname.charAt(hostname.length() - 1) == '.')
hostStr = hostname.substring(0, hostname.length() - 1);