import java.util.Collection;
import com.beust.jcommander.internal.Sets;
+import com.google.common.base.Objects;
/**
* Defines a network.
//
@Override
+ public boolean equals(Object object) {
+ if (!(object instanceof Network)) {
+ return false;
+ }
+ Network network = (Network) object;
+ if (!Objects.equal(name(), network.name())) {
+ return false;
+ }
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return name().hashCode();
+ }
+
+ @Override
public String toString() {
return String.format("%s(%d servers)", name(), servers().size());
}