org.gcube.application.enm.service.concurrent
Class FIFOEntry<E extends Comparable<? super E>>

java.lang.Object
  extended by org.gcube.application.enm.service.concurrent.FIFOEntry<E>
All Implemented Interfaces:
Comparable<FIFOEntry<E>>

public class FIFOEntry<E extends Comparable<? super E>>
extends Object
implements Comparable<FIFOEntry<E>>

Guarantees about the ordering of elements with equal priority in a priority queue. It uses a secondary key to break ties in primary priority values.

Author:
Erik Torres
See Also:
PriorityQueue, PriorityBlockingQueue

Constructor Summary
FIFOEntry(E entry)
           
 
Method Summary
 int compareTo(FIFOEntry<E> other)
           
 boolean equals(Object other)
           
 E getEntry()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FIFOEntry

public FIFOEntry(E entry)
Method Detail

getEntry

public E getEntry()

compareTo

public int compareTo(FIFOEntry<E> other)
Specified by:
compareTo in interface Comparable<FIFOEntry<E extends Comparable<? super E>>>

equals

public boolean equals(Object other)
Overrides:
equals in class Object


Copyright © 2012. All Rights Reserved.