Class DoubleBufferedList<T>

java.lang.Object
com.ardorcraft.util.DoubleBufferedList<T>
Type Parameters:
T - the type of element

public final class DoubleBufferedList<T> extends Object
Utility class used by the mailbox update system.
  • Constructor Details

    • DoubleBufferedList

      public DoubleBufferedList()
  • Method Details

    • add

      public void add(T t)
      The add method can be called at any point.
      Parameters:
      t - the element to add
    • switchAndGet

      public List<T> switchAndGet()
      The switchAndGet call and it's returned list has to be accessed sequencially.
      Returns:
      The list
    • isEmpty

      public boolean isEmpty()