No, I was just not sure if that was your intention, the TreeMap behaviour of discarding items that compareTo returns 0 for is not always what people expect.