Package org.bukkit.help
Class HelpTopicComparator
java.lang.Object
org.bukkit.help.HelpTopicComparator
- All Implemented Interfaces:
java.util.Comparator<HelpTopic>
public class HelpTopicComparator extends java.lang.Object implements java.util.Comparator<HelpTopic>
Used to impose a custom total ordering on help topics.
All topics are listed in alphabetic order, but topics that start with a slash come after topics that don't.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHelpTopicComparator.TopicNameComparator -
Method Summary
Modifier and Type Method Description intcompare(HelpTopic lhs, HelpTopic rhs)static HelpTopicComparatorhelpTopicComparatorInstance()static HelpTopicComparator.TopicNameComparatortopicNameComparatorInstance()
-
Method Details
-
topicNameComparatorInstance
-
helpTopicComparatorInstance
-
compare
- Specified by:
comparein interfacejava.util.Comparator<HelpTopic>
-