- java.lang.Object
-
- jmri.util.NamedBeanUserNameComparator<B>
-
- Type Parameters:
B
- supported type of NamedBean
- All Implemented Interfaces:
java.util.Comparator<B>
public class NamedBeanUserNameComparator<B extends NamedBean> extends java.lang.Object implements java.util.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 theNamedBeanComparator
.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static AlphanumComparator
comparator
-
Constructor Summary
Constructors Constructor Description NamedBeanUserNameComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(B n1, B n2)
-
-
-
Field Detail
-
comparator
static final AlphanumComparator comparator
-
-
Constructor Detail
-
NamedBeanUserNameComparator
public NamedBeanUserNameComparator()
-
-