com.netflix.loadbalancer
Class ServerComparator

java.lang.Object
  extended by com.netflix.loadbalancer.ServerComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator<Server>

public class ServerComparator
extends java.lang.Object
implements java.util.Comparator<Server>, java.io.Serializable

Class to help establishing equality for Hash/Key operations.

See Also:
Serialized Form

Constructor Summary
ServerComparator()
           
 
Method Summary
 int compare(Server s1, Server s2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ServerComparator

public ServerComparator()
Method Detail

compare

public int compare(Server s1,
                   Server s2)
Specified by:
compare in interface java.util.Comparator<Server>