16 package org.openkilda.topo;
18 import java.util.ArrayList;
20 import java.util.concurrent.ConcurrentHashMap;
25 private final Map<String, PortQueue> portQueues =
new ConcurrentHashMap<String, PortQueue>(10);
26 private final String id;
27 private final Switch parent;
49 if (
this == o)
return true;
50 if (o == null || getClass() != o.getClass())
return false;
55 if (portQueues != null ? !portQueues.equals(
port.portQueues) :
port.portQueues != null)
57 if (
id != null ? !
id.
equals(
port.id) :
port.id != null)
return false;
58 return parent != null ? parent.
equals(
port.parent) :
port.parent == null;
63 int result = portQueues != null ? portQueues.hashCode() : 0;
Port(Switch parent, String id)
static final String toString(Switch aSwitch)
Map< String, PortQueue > getPortQueues()