renamed getDeviceID to getId
This commit is contained in:
parent
351f1b1816
commit
793cb2a940
|
@ -53,7 +53,7 @@ public final class BuntiDevicesDAOImpl implements BuntiDevicesDAO {
|
||||||
@Override
|
@Override
|
||||||
public BuntiDevice getDeviceById(int deviceId) {
|
public BuntiDevice getDeviceById(int deviceId) {
|
||||||
for (BuntiDevice dev : devices) {
|
for (BuntiDevice dev : devices) {
|
||||||
if(dev.getDeviceId() == deviceId) {
|
if(dev.getId() == deviceId) {
|
||||||
return dev;
|
return dev;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ public abstract class BuntiDevice {
|
||||||
* Gets the device Id
|
* Gets the device Id
|
||||||
* @return the device Id
|
* @return the device Id
|
||||||
*/
|
*/
|
||||||
public final int getDeviceId() {
|
public final int getId() {
|
||||||
return deviceId;
|
return deviceId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,7 @@ public class Par56Spot extends BuntiDMXDevice {
|
||||||
public final String toString() {
|
public final String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("Par56Spot ");
|
sb.append("Par56Spot ");
|
||||||
sb.append(getDeviceId());
|
sb.append(getId());
|
||||||
sb.append(", ");
|
sb.append(", ");
|
||||||
sb.append(getDeviceName());
|
sb.append(getDeviceName());
|
||||||
sb.append(" [");
|
sb.append(" [");
|
||||||
|
|
|
@ -59,7 +59,7 @@ public class Strobe1500 extends BuntiDMXDevice {
|
||||||
public final String toString() {
|
public final String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("Strobe1500 ");
|
sb.append("Strobe1500 ");
|
||||||
sb.append(getDeviceId());
|
sb.append(getId());
|
||||||
sb.append(", ");
|
sb.append(", ");
|
||||||
sb.append(getDeviceName());
|
sb.append(getDeviceName());
|
||||||
sb.append(" [");
|
sb.append(" [");
|
||||||
|
|
|
@ -139,7 +139,7 @@ public class BuntiDMXDeviceTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetDeviceId() throws Exception {
|
public void testGetDeviceId() throws Exception {
|
||||||
assertEquals(DEVICEID, dut.getDeviceId());
|
assertEquals(DEVICEID, dut.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue