Class CopyOnUpdateIdentityList<T>
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.tools.CopyOnUpdateIdentityList<T>
-
public class CopyOnUpdateIdentityList<T> extends java.lang.ObjectWrapper for keeping a list which can be updated from the same thread while being iterated. The list can contain only one of each item (based on identity). Not backed by a set as that would be overkill for the use cases this class is intended for. Not thread-safe.
-
-
Constructor Summary
Constructors Constructor Description CopyOnUpdateIdentityList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(T item)voidremove(T item)
-