Package Summary Overview Summary

### method:equals(java.lang.Object) [CHANGED]
### equals public boolean equals (Object o) Description copied from interfaceclass: ``Map`Compares the specifiedObject` Indicates whether some other object withis "equal to" this mapone. The `equals` method implements an equivalence relation on non-null object references: It is reflexive: for any non-null reference value `x`, `x.equals(x)` should return `true`. It is symmetric: for equality. Returnsany non-null reference values `x` and `y`, `x.equals(y)` should return `true` if the given objectand only if `y.equals(x)` returns `true`. It is also a maptransitive : for any non-null reference values `x`, `y`, and `z`, if `x.equals(y)` returns `true` and `the two maps represent the same mappings. More formally, two maps `m1`y.equals(z)` returns `true`, then `x.equals(z)` should return `true`. It is consistent: for any non-null reference values `x` and ``m2` representy` , multiple invocations of `x.equals(y)` consistently return `true` or consistently return `false`, provided no information used in `equals` comparisons on the same mappings ifm1.entrySet()objects is modified. For any non-null reference value `x`, `x.equals(m2.entrySet()). This ensures thatnull)` should return `false`. An equivalence relation partitions the elements it operates on into equivalence classes ; all the `equals` method works properly across different implementationsmembers of an equivalence class are equal to each other. Members of the `Map` interfacean equivalence class are substitutable for each other, at least for some purposes. Specified by: `equals` in interface `Map<String, List<String>>` Overrides: `equals` in class `Object` Parameters: `o` - the reference object with which to be compared for equality with this mapcompare. Returns: `true` if the specifiedthis object is equal to this mapthe same as the obj argument; `false` otherwise. See Also: `Object.hashCode()` `HashMap`
### equals public boolean equals (Object o) Description copied from interface: `Map` Compares the specified object with this map for equality. Returns `true` if the given object is also a map and the two maps represent the same mappings. More formally, two maps `m1` and `m2` represent the same mappings if `m1.entrySet().equals(m2.entrySet())`. This ensures that the `equals` method works properly across different implementations of the `Map` interface. Specified by: `equals` in interface `Map<String, List<String>>` Overrides: `equals` in class `Object` Parameters: `o` - object to be compared for equality with this map Returns: `true` if the specified object is equal to this map See Also: `Object.hashCode()` `HashMap` | ### equals public boolean equals (Object o) Description copied from class: `Object` Indicates whether some other object is "equal to" this one. The `equals` method implements an equivalence relation on non-null object references: It is reflexive: for any non-null reference value `x`, `x.equals(x)` should return `true`. It is symmetric: for any non-null reference values `x` and `y`, `x.equals(y)` should return `true` if and only if `y.equals(x)` returns `true`. It is transitive: for any non-null reference values `x`, `y`, and `z`, if `x.equals(y)` returns `true` and `y.equals(z)` returns `true`, then `x.equals(z)` should return `true`. It is consistent: for any non-null reference values `x` and `y`, multiple invocations of `x.equals(y)` consistently return `true` or consistently return `false`, provided no information used in `equals` comparisons on the objects is modified. For any non-null reference value `x`, `x.equals(null)` should return `false`. An equivalence relation partitions the elements it operates on into equivalence classes ; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. Specified by: `equals` in interface `Map<String, List<String>>` Overrides: `equals` in class `Object` Parameters: `o` - the reference object with which to compare. Returns: `true` if this object is the same as the obj argument; `false` otherwise. See Also: `Object.hashCode()` `HashMap`

### method:hashCode() [CHANGED]
### hashCode public int hashCode() Description copied from interfaceclass: `MapObject` Returns thea hash code value for this mapthe object. This method is supported for the benefit of hash tables such as those provided by `HashMap`. The hash codegeneral contract of `a maphashCode` is: Whenever it is defined to beinvoked on the sumsame object more than once during an execution of a Java application, the `hashCode` method must consistently return the hash codes of each entrysame integer, provided no information used in `equals` comparisons on the map's `entrySet()` viewobject is modified. This ensuresinteger need not remain consistent from one execution of an application to another execution of the same application. If two objects are equal according to the `equals` method, then calling the `hashCode` method on each of the two objects must produce the same integer result. It is not required that m1.if two objects are unequal according to the `equals`(m2) implies method, then calling the `hashCode` method on each of the two objects must produce distinct integer results. However, the programmer should be aware that `m1.hashCode()==m2.hashCode()`producing distinct integer results for any two maps `m1` and `m2`, as required byunequal objects may improve the general contractperformance of `Object.hashCode()`hash tables. Specified by: `hashCode` in interface `Map<String, List<String>>` Overrides: `hashCode` in class `Object` Returns: thea hash code value for this mapobject. See Also:`Map.Entry.hashCode()` `Object.equals(java.lang.Object)`Map.equals( `System.identityHashCode(java.lang.Object)`
### hashCode public int hashCode() Description copied from interface: `Map` Returns the hash code value for this map. The hash code of a map is defined to be the sum of the hash codes of each entry in the map's `entrySet()` view. This ensures that `m1.equals(m2)` implies that `m1.hashCode()==m2.hashCode()` for any two maps `m1` and `m2`, as required by the general contract of `Object.hashCode()`. Specified by: `hashCode` in interface `Map<String, List<String>>` Overrides: `hashCode` in class `Object` Returns: the hash code value for this map See Also: `Map.Entry.hashCode()` `Object.equals(Object)` `Map.equals(Object)` | ### hashCode public int hashCode() Description copied from class: `Object` Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by `HashMap`. The general contract of `hashCode` is: Whenever it is invoked on the same object more than once during an execution of a Java application, the `hashCode` method must consistently return the same integer, provided no information used in `equals` comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application. If two objects are equal according to the `equals` method, then calling the `hashCode` method on each of the two objects must produce the same integer result. It is not required that if two objects are unequal according to the `equals` method, then calling the `hashCode` method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables. Specified by: `hashCode` in interface `Map<String, List<String>>` Overrides: `hashCode` in class `Object` Returns: a hash code value for this object. See Also: `Object.equals(java.lang.Object)` `System.identityHashCode(java.lang.Object)`