Structuur consequenter gemaakt met initialise en exit methoden. De start methode wordt gereserveerd voor wanneer er een Thread moet worden gestart. Exceptions georganiseerd, hierbij opletten op het doorgeven van exceptions vanuit Threads! Poging tot het dynamisch toevoegen van devices is niet helemaal gelukt.
This commit is contained in:
@@ -22,7 +22,7 @@ public class ArrayCycle<E> extends ArrayList<E> {
|
||||
if (++index >= size()) {
|
||||
index = 0;
|
||||
}
|
||||
return get(index);
|
||||
return size() == 0 ? null : get(index);
|
||||
}
|
||||
|
||||
public E reset() {
|
||||
|
||||
Reference in New Issue
Block a user