org.gcube.application.enm.service.concurrent
Class FIFOEntry<E extends Comparable<? super E>>
java.lang.Object
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
FIFOEntry
public FIFOEntry(E entry)
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.