Wiki Markup |
---|
Keys of ordered sets and maps should typically be immutable. If this is not possible, ensure that the {{equals()}} and {{compareTo()}} methods do not take into account the mutable state while comparing objects. Failure to do this can produce inconsistent orderings in collections, for example. The documentation of {{java.util.Interface Set<E>}} and {{java.util.Interface Map<K,V>}} warn against this \[[API 062006|AA. Java References#API 06]\]: |
...
References
Wiki Markup |
---|
\[[API 062006|AA. Java References#API 06]\] {{java.util.Interface Set<E>}} and {{java.util.Interface Map<K,V>}} |
...