mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-09 08:52:51 +00:00
@@ -19,6 +19,7 @@ package com.l2jserver.util.factory;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.PriorityQueue;
|
||||
import java.util.Queue;
|
||||
import java.util.Set;
|
||||
import java.util.WeakHashMap;
|
||||
@@ -69,6 +70,17 @@ public class CollectionFactory {
|
||||
return new ConcurrentLinkedQueue<T>();
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new priority queue of type <tt>T</tt>
|
||||
*
|
||||
* @param <T>
|
||||
* the type
|
||||
* @return the created queue
|
||||
*/
|
||||
public static final <T> PriorityQueue<T> newPriorityQueue() {
|
||||
return new PriorityQueue<T>();
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new map.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user