Package jmri.util

Class NamedBeanUserNameComparator<B extends NamedBean>

java.lang.Object
jmri.util.NamedBeanUserNameComparator<B>
Type Parameters:
B - supported type of NamedBean
All Implemented Interfaces:
Comparator<B>

public class NamedBeanUserNameComparator<B extends NamedBean>
extends Object
implements Comparator<B>
Comparator for JMRI NamedBeans via their User Names.

If the User Names are both non-null and are not equal, uses the AlphanumComparator, otherwise uses the NamedBeanComparator.