Package org.cyclos.impl.access
Class ChannelsComparator
- java.lang.Object
-
- org.cyclos.impl.access.ChannelsComparator
-
- All Implemented Interfaces:
Comparator<Channel>
public class ChannelsComparator extends Object implements Comparator<Channel>
This comparator will sort first the built-in channels (in the order defined inBuiltInChannelenum), then the global channels (alphabetically), then the network channels (alphabetically)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Channel c1, Channel c2)static ChannelsComparatorgetInstance()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
getInstance
public static ChannelsComparator getInstance()
-
compare
public int compare(Channel c1, Channel c2)
- Specified by:
comparein interfaceComparator<Channel>
-
-