@Test public void basics() { new EqualsTester() .addEqualityGroup(deviceId("of:foo"), deviceId("of:foo")) .addEqualityGroup(deviceId("of:bar")) .testEquals(); }
private DeviceId(URI uri) { this.uri = uri; this.str = uri.toString().toLowerCase(); }
DeviceId extends ElementId { private DeviceId(URI uri) { this.uri = uri; this.str = uri.toString().toLowerCase(); } }
DeviceId extends ElementId { private DeviceId(URI uri) { this.uri = uri; this.str = uri.toString().toLowerCase(); } private  DeviceId(URI uri); protected  DeviceId(); }
DeviceId extends ElementId { private DeviceId(URI uri) { this.uri = uri; this.str = uri.toString().toLowerCase(); } private  DeviceId(URI uri); protected  DeviceId(); static DeviceId deviceId(URI uri); static DeviceId deviceId(String string); URI uri(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
DeviceId extends ElementId { private DeviceId(URI uri) { this.uri = uri; this.str = uri.toString().toLowerCase(); } private  DeviceId(URI uri); protected  DeviceId(); static DeviceId deviceId(URI uri); static DeviceId deviceId(String string); URI uri(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static final DeviceId NONE; }