fun addEntry(entry: T): Unit
Adds an entry to the list.
If the given entry is already in the list, nothing happens.
entry - the entry to add
entry