java.lang.Object
org.apache.hadoop.hdfs.server.blockmanagement.HostSet
All Implemented Interfaces:
Iterable<InetSocketAddress>

public class HostSet extends Object implements Iterable<InetSocketAddress>
The HostSet allows efficient queries on matching wildcard addresses.

For InetSocketAddress A and B with the same host address, we define a partial order between A and B, A <= B iff A.getPort() == B .getPort() || B.getPort() == 0.