Package edu.emory.mathcs.backport.java.util

Examples of edu.emory.mathcs.backport.java.util.PriorityQueue


    protected AbstractBoundedEventHeap(int capacity, EventQueueOverflowStrategy overflowStrategy, Object lock, Comparator comparator)
    {
        super(capacity, overflowStrategy, lock);

        heap_ = new PriorityQueue(capacity, comparator);
    }
View Full Code Here


    protected AbstractBoundedEventHeap(int capacity, EventQueueOverflowStrategy overflowStrategy, Object lock, Comparator comparator)
    {
        super(capacity, overflowStrategy, lock);
       
        heap_ = new PriorityQueue(capacity, comparator);
    }
View Full Code Here

     * capacity
     * (11) that orders its elements according to their natural
     * ordering (using <tt>Comparable</tt>).
     */
    public PriorityBlockingQueue() {
        q = new PriorityQueue();
    }
View Full Code Here

     * @param initialCapacity the initial capacity for this priority queue.
     * @throws IllegalArgumentException if <tt>initialCapacity</tt> is less
     * than 1
     */
    public PriorityBlockingQueue(int initialCapacity) {
        q = new PriorityQueue(initialCapacity, null);
    }
View Full Code Here

     * ordering.
     * @throws IllegalArgumentException if <tt>initialCapacity</tt> is less
     * than 1
     */
    public PriorityBlockingQueue(int initialCapacity, Comparator comparator) {
        q = new PriorityQueue(initialCapacity, comparator);
    }
View Full Code Here

     *         queue's ordering.
     * @throws NullPointerException if <tt>c</tt> or any element within it
     * is <tt>null</tt>
     */
    public PriorityBlockingQueue(Collection c) {
        q = new PriorityQueue(c);
    }
View Full Code Here

     * @param priority The order of this item in comparison to others
     * @param parent   The menu to go to when the "Previous" item is selected
     */
    public LauncherMenu(String name, int priority, LauncherMenu parent) {
        super(name, priority);
        mItems = new PriorityQueue();
        mParent = parent;
        setHasArrow(true);
    }
View Full Code Here

     * Converts the list of menu items into a dialog containing the items.
     */
    public void initMenu() {
        mDialog = new MenuDialog(getCurrentAppId());
        mDialog.setTitle(this.getValue());
        PriorityQueue copy = new PriorityQueue();
        while (!mItems.isEmpty()) {
            LauncherAction item = (LauncherAction) mItems.remove();
            if (item.hasArrow())
                mDialog.addActionWithIndicator(item);
            else
                mDialog.addAction(item);
            copy.add(item);
        }
        if (mParent != null) {
            mParent.putValue(Action.NAME, "« Previous");
            mDialog.addAction(mParent);
        }
View Full Code Here

TOP

Related Classes of edu.emory.mathcs.backport.java.util.PriorityQueue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.