Package com.ardorcraft.util
Class DoubleBufferedList<T>
java.lang.Object
com.ardorcraft.util.DoubleBufferedList<T>
- Type Parameters:
T
- the type of element
Utility class used by the mailbox update system.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DoubleBufferedList
public DoubleBufferedList()
-
-
Method Details
-
add
The add method can be called at any point.- Parameters:
t
- the element to add
-
switchAndGet
The switchAndGet call and it's returned list has to be accessed sequencially.- Returns:
- The list
-
isEmpty
public boolean isEmpty()
-