Class IndirectPriorityQueues

java.lang.Object
it.unimi.dsi.fastutil.IndirectPriorityQueues

public class IndirectPriorityQueues extends Object
A class providing static methods and objects that do useful things with indirect priority queues.
See Also:
  • Field Details

  • Method Details

    • synchronize

      public static <K> IndirectPriorityQueue<K> synchronize(IndirectPriorityQueue<K> q)
      Returns a synchronized type-specific indirect priority queue backed by the specified type-specific indirect priority queue.
      Parameters:
      q - the indirect priority queue to be wrapped in a synchronized indirect priority queue.
      Returns:
      a synchronized view of the specified indirect priority queue.
    • synchronize

      public static <K> IndirectPriorityQueue<K> synchronize(IndirectPriorityQueue<K> q, Object sync)
      Returns a synchronized type-specific indirect priority queue backed by the specified type-specific indirect priority queue, using an assigned object to synchronize.
      Parameters:
      q - the indirect priority queue to be wrapped in a synchronized indirect priority queue.
      sync - an object that will be used to synchronize the access to the indirect priority queue.
      Returns:
      a synchronized view of the specified indirect priority queue.