Code example for PriorityBlockingQueue

0
	 * @return 
	 */ 
	public static <E> PriorityBlockingQueue<E> createQueue(@Nonnegative final int capacity,
			@Nonnull final Comparator<? super E> comparator)
	{ 
		return new PriorityBlockingQueue<E>(capacity, comparator);
	} 
 
} 
Connect your IDE to all the code out there  Get Codota for Java