Here is a class I am working on:
public class Thing<T extends Comparable<? super T>> {
private Map<String, List<SourcedValue<T>>> properties;
}
Then, SourcedValue
is this:
public class SourcedValue<T extends Comparable<? super T>>
implements Comparable<****?*****> {
private T value;
private List<Sources> sources;
@Override
public int compareTo(SourcedValue<****?****> other) {
return value.compareTo(other);
}
}
What do I put into the ***?***
?
What I need to do is sort the List<SourcedValue<T>>
in the Thing
in some convert method that creates Thing
and populates
its properties
, (along with its List<SourcedValue<T>>
for each property).