Why should a Comparator implement Serializable?
This is not just an Android thing, the Java SDK has the same recommendation: Note: It is generally a good idea for comparators to also implement java.io.Serializable, as they may be used as ordering methods in serializable data structures (like TreeSet, TreeMap). In order for the data structure to serialize successfully, the comparator (if provided) … Read more