de.nava.informa.utils.poller
Class PriorityComparator
java.lang.Object
de.nava.informa.utils.poller.PriorityComparator
- All Implemented Interfaces:
- Comparator
public class PriorityComparator
- extends Object
- implements Comparator
Comparator for ChannelRecord
class. Uses priority setting to decide which
record goes first.
- Author:
- Aleksey Gureev (spyromus@noizeramp.com)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PriorityComparator
public PriorityComparator()
compare
public final int compare(Object o1,
Object o2)
- Compares its two arguments for order. Returns a negative integer,
zero, or a positive integer as the first argument is less than, equal
to, or greater than the second.
- Specified by:
compare
in interface Comparator
- Parameters:
o1
- the first object to be compared.o2
- the second object to be compared.
- Returns:
- a negative integer, zero, or a positive integer as the
first argument is less than, equal to, or greater than the
second.
- Throws:
ClassCastException
- if the arguments' types prevent them from
being compared by this Comparator.
Copyright © 2002-2007 Niko Schmuck.
All Rights Reserved.