java.lang.Object
org.klomp.snark.web.Sorters.TorrentNameComparator
- All Implemented Interfaces:
Serializable, Comparator<Snark>
- Enclosing class:
Sorters
private static class Sorters.TorrentNameComparatorextends Object implements Comparator<Snark>, Serializable
Sort alphabetically in current locale, ignore case, ignore leading articles such as "the" if the pattern is set by setPattern().
Field Summary
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTorrentNameComparator(String lang) Create the comparator for the language.Method Summary
Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, max, min, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Field Details
serialVersionUID
private static final long serialVersionUIDFixed id, the sorter is never serialized across versions.- See Also:
_p
Pattern extracting the name's sort key._c
Collator ordering the names for the language.
Constructor Details
TorrentNameComparator
Create the comparator for the language.- Parameters:
lang- may be null
Method Details
compare
- Specified by:
comparein interfaceComparator<Snark>
comp