public class WeakCollectionChangeListener<E extends Entity> extends java.lang.Object implements java.util.function.Consumer<CollectionContainer.CollectionChangeEvent<E>>
Constructor and Description |
---|
WeakCollectionChangeListener(CollectionContainer container,
java.util.function.Consumer<CollectionContainer.CollectionChangeEvent<E>> collectionChangeListener) |
Modifier and Type | Method and Description |
---|---|
void |
accept(CollectionContainer.CollectionChangeEvent<E> e) |
void |
removeItself() |
public WeakCollectionChangeListener(CollectionContainer container, java.util.function.Consumer<CollectionContainer.CollectionChangeEvent<E>> collectionChangeListener)
public void accept(CollectionContainer.CollectionChangeEvent<E> e)
accept
in interface java.util.function.Consumer<CollectionContainer.CollectionChangeEvent<E extends Entity>>
public void removeItself()