Rob Spoor wrote:I would like to make one other improvement though:
If you leave out the ? super part you will only allow types that are comparable to objects of the exact same type. java.lang.Timestamp could not be used though, as it does not implement Comparable<Timestamp> but through inheritance Comparable<Date>. The ? super part makes sure that classes like Timestamp can also be used.
Originally posted by manuel aldana:
if so, i would rather extract this House behaviour by an interface to avoid circular dependency.