Class WeakDataStructureFactory

java.lang.Object
ghidra.util.datastruct.WeakDataStructureFactory

public class WeakDataStructureFactory extends Object
Factory for creating containers to use in various threading environments Other non-weak listeners:
  • Constructor Details

    • WeakDataStructureFactory

      public WeakDataStructureFactory()
  • Method Details

    • createSingleThreadAccessWeakSet

      public static <T> WeakSet<T> createSingleThreadAccessWeakSet()
      Use when all access are on a single thread, such as the Swing thread.
      Returns:
      a new WeakSet
    • createCopyOnReadWeakSet

      public static <T> WeakSet<T> createCopyOnReadWeakSet()
      Use when mutations outweigh iterations.
      Returns:
      a new WeakSet
      See Also:
      • CopyOnReadWeakSet
    • createCopyOnWriteWeakSet

      public static <T> WeakSet<T> createCopyOnWriteWeakSet()
      Use when iterations outweigh mutations.
      Returns:
      a new WeakSet
      See Also:
      • CopyOnWriteWeakSet