package com.onaro.sanscreen.client.view.topology; import com.onaro.sanscreen.server.dataobject.historyobject.originobject.Device; import java.util.Set; /** * This is a client-generated representation of the clustered storage, ccontaining a cluster-mode storage array and its * NPV switches.

* * @author Joshua M. Eisenthal Copyright 2012 NetApp, Inc. */ public class StorageDeviceCluster { private final Device storage; private final Set switches; public StorageDeviceCluster(Device storage, Set switches) { this.switches = switches; this.storage = storage; } public Device getStorage() { return storage; } public Set getSwitches() { return switches; } @Override public int hashCode() { // unique to its storage: return storage.hashCode(); } @Override public boolean equals(Object that) { // Unique to its storage: if (this == that) { return true; } if (that == null || !(that instanceof StorageDeviceCluster)) { return false; } return this.storage.equals(((StorageDeviceCluster)that).storage); } }