de.nava.informa.utils
Class ChannelComparator
java.lang.Object
de.nava.informa.utils.ChannelComparator
- All Implemented Interfaces:
- Comparator
public final class ChannelComparator
- extends Object
- implements Comparator
Custom comparator for ChannelIF objects. Not a traditional
comparator as there are no order criteria for ChannelIF
objects. However, there are three possible states:
CHANNEL_MISMATCH: Two ChannelIF's objects are not equal
according to their equals() method
CHANNEL_IDENTICAL: Two ChannelIF's are equal according
to their equals() method and contain the same ItemIF's
CHANNEL_CHANGED: Two ChannelIF's are equal according to
their equals() method, but contain different ItemIF's
- Author:
- Jonathan Krebs (Jonathan.Krebs@ngc.com)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CHANNEL_MISMATCH
public static final int CHANNEL_MISMATCH
- Channels are not the same
- See Also:
- Constant Field Values
CHANNEL_IDENTICAL
public static final int CHANNEL_IDENTICAL
- Channels are the same but contain different items
- See Also:
- Constant Field Values
CHANNEL_CHANGED
public static final int CHANNEL_CHANGED
- Channels are the same and contain the same items
- See Also:
- Constant Field Values
ChannelComparator
public ChannelComparator()
compare
public int compare(Object obj1,
Object obj2)
- Specified by:
compare
in interface Comparator
Copyright © 2002-2007 Niko Schmuck.
All Rights Reserved.