public class DeepPartitionLocationComparator extends Object implements Comparator<String>
| Constructor and Description |
|---|
DeepPartitionLocationComparator()
Default constructor.
|
DeepPartitionLocationComparator(String hostname)
Constucts a comparator using as the name of the local machine the hostname provided.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(String loc1,
String loc2) |
InetAddress |
getHostname() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic DeepPartitionLocationComparator()
public DeepPartitionLocationComparator(String hostname)
hostname - the host name of the current machine.public int compare(String loc1, String loc2)
compare in interface Comparator<String>public InetAddress getHostname()
Copyright © 2014. All rights reserved.