Package jmri.util
Class NamedBeanHandleComparator<H extends NamedBeanHandle<? extends NamedBean>>
- java.lang.Object
-
- jmri.util.NamedBeanHandleComparator<H>
-
- Type Parameters:
H
- NamedBeanHandle of a supported type of NamedBean
- All Implemented Interfaces:
java.util.Comparator<H>
public class NamedBeanHandleComparator<H extends NamedBeanHandle<? extends NamedBean>> extends java.lang.Object implements java.util.Comparator<H>
Comparator for JMRI NamedBeanHandle of NamedBeans via their System Names.Uses the built-in Comparable interface of the named beans.
Note that unlike the NamedBean itself, the sytem name of a NamedBean within a particular NamedBeanHandle is not immutable. The handle can point at a different NamedBean after a rename operation.
- See Also:
NamedBean
,NamedBeanHandle
,NamedBeanHandleManager
-
-
Constructor Summary
Constructors Constructor Description NamedBeanHandleComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(H n1, H n2)
-
-
-
Constructor Detail
-
NamedBeanHandleComparator
public NamedBeanHandleComparator()
-
-