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:
Comparator<H>

public class NamedBeanHandleComparator<H extends NamedBeanHandle<? extends NamedBean>> extends Object implements 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: