|
What this is
Other links
The source codepackage org.netbeans.modules.tasklist.usertasks; import java.util.Comparator; import org.netbeans.modules.tasklist.client.SuggestionPriority; /** * Compares SuggestionPriority values */ public class SuggestionPriorityComparator implements Comparator { public int compare(java.lang.Object o1, java.lang.Object o2) { SuggestionPriority p1 = (SuggestionPriority) o1; SuggestionPriority p2 = (SuggestionPriority) o2; if (p1 == null && p2 == null) return 0; if (p1 == null) return -1; if (p2 == null) return 1; return p2.intValue() - p1.intValue(); } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.