Class DoubleBufferedSet<T>

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

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

    • DoubleBufferedSet

      public DoubleBufferedSet()
  • 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 Set<T> switchAndGet()
      The switchAndGet call and it's returned list has to be accessed sequencially.
      Returns:
      The Set