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