@Test public void basics() { new EqualsTester() .addEqualityGroup(hostId(MAC1, VLAN1), hostId(MAC1, VLAN1)) .addEqualityGroup(hostId(MAC2, VLAN2), hostId(MAC2, VLAN2)) .testEquals(); }
private HostId(MacAddress mac, VlanId vlanId) { this.mac = mac; this.vlanId = vlanId; }
HostId extends ElementId { private HostId(MacAddress mac, VlanId vlanId) { this.mac = mac; this.vlanId = vlanId; } }
HostId extends ElementId { private HostId(MacAddress mac, VlanId vlanId) { this.mac = mac; this.vlanId = vlanId; } private  HostId(MacAddress mac, VlanId vlanId); private  HostId(); }
HostId extends ElementId { private HostId(MacAddress mac, VlanId vlanId) { this.mac = mac; this.vlanId = vlanId; } private  HostId(MacAddress mac, VlanId vlanId); private  HostId(); MacAddress mac(); VlanId vlanId(); static HostId hostId(String string); static HostId hostId(MacAddress mac, VlanId vlanId); static HostId hostId(MacAddress mac); String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
HostId extends ElementId { private HostId(MacAddress mac, VlanId vlanId) { this.mac = mac; this.vlanId = vlanId; } private  HostId(MacAddress mac, VlanId vlanId); private  HostId(); MacAddress mac(); VlanId vlanId(); static HostId hostId(String string); static HostId hostId(MacAddress mac, VlanId vlanId); static HostId hostId(MacAddress mac); String toString(); @Override int hashCode(); @Override boolean equals(Object obj); static final HostId NONE; }