Improved delegating list

master
Ondřej Hruška 11 years ago
parent 8406146270
commit fbd1ac78fa
  1. 1
      src/mightypork/utils/eventbus/clients/ClientList.java
  2. 15
      src/mightypork/utils/eventbus/clients/DelegatingList.java

@ -18,5 +18,4 @@ public class ClientList extends ArrayList<Object> {
super.add(c);
}
}
}

@ -16,12 +16,23 @@ public class DelegatingList extends ClientList implements DelegatingClient, Enab
private boolean enabled = true;
public DelegatingList(Object... clients)
{
/**
* Delegating list with initial clients
*
* @param clients initial list members (clients)
*/
public DelegatingList(Object... clients) {
super(clients);
}
/**
* Empty delegating list.
*/
public DelegatingList() {
}
@Override
public Collection<?> getChildClients()
{

Loading…
Cancel
Save