@Test public void basics() { DefaultTopologyVertex v = new DefaultTopologyVertex(D1); assertEquals("incorrect device id", D1, v.deviceId()); new EqualsTester() .addEqualityGroup(new DefaultTopologyVertex(D1), new DefaultTopologyVertex(D1)) .addEqualityGroup(new DefaultTopologyVertex(D2), new DefaultTopologyVertex(D2)).testEquals(); }
@Override public DeviceId deviceId() { return deviceId; }
DefaultTopologyVertex implements TopologyVertex { @Override public DeviceId deviceId() { return deviceId; } }
DefaultTopologyVertex implements TopologyVertex { @Override public DeviceId deviceId() { return deviceId; } DefaultTopologyVertex(DeviceId deviceId); }
DefaultTopologyVertex implements TopologyVertex { @Override public DeviceId deviceId() { return deviceId; } DefaultTopologyVertex(DeviceId deviceId); @Override DeviceId deviceId(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
DefaultTopologyVertex implements TopologyVertex { @Override public DeviceId deviceId() { return deviceId; } DefaultTopologyVertex(DeviceId deviceId); @Override DeviceId deviceId(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }