Wiki Markup |
---|
Objects that serve as keys in ordered sets and maps should be immutable. When some fields must be mutable, ensure that the {{equals()}} and {{compareTo()}} methods consider only immutable state while comparing objects. Violations of this rule can produce inconsistent orderings in collections. The documentation of {{java.util.Interface Set<E>}} and {{java.util.Interface Map<K,V>}} warn against this \[[API 2006|AA. Bibliography#API 06]\]: |
...
Wiki Markup |
---|
\[[API 2006|AA. Bibliography#API 06]\] {{java.util.Interface Set<E>}} and {{java.util.Interface Map<K,V>}} |
...
OBJ14MET18-J. Encapsulate the absence of an object by using a Null Object 04. Object Orientation (OBJ) 12. Input Output (FIO)Avoid using finalizers 05. Methods (MET) MET20-J. Call varargs functions with the arguments intended by the API