Collections.sort(List) expects that T
must implement Comparable super T>
. It seems like Stuff
does implement Comparable
but doesn't provide the generic type argument.
Make sure to declare this:
public class Stuff implements Comparable
Instead of this:
public class Stuff implements Comparable