Package Summary Overview Summary

### method:equals(java.lang.Object) [CHANGED]
### equals public boolean equals (Object obj) Description copied from interfaceclass: ``CompositeData`Compares the specified obj parameter withObject` Indicates whether some other object is "equal to" this `CompositeData` instanceone. 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 and only if `all of the following statements arey.equals(x)` returns `true`: obj. It is transitive: for any non-null , obj also implements the `CompositeData` interface, their composite types are equal their contents, i.e. (name, value) pairs are equal. If a value contained in the contentreference 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 an array, the value comparison is done as if by calling the `deepEquals` methodconsistent : for arrays of objectany non-null reference types or the appropriate overloadingvalues `x` and `y`, multiple invocations of `Arraysx.equals(e1,e2) for arrays of primitive types This ensures that thisy)` consistently return `true` or consistently return `false`, provided no information used in `equals` method works properly for obj parameters which are different implementations ofcomparisons on the `CompositeData` interface, withobjects is modified. For any non-null reference value `x`, `x.equals(null)` should return `false`. An equivalence relation partitions the restrictions mentioned inelements it operates on into equivalence classes ; all the `equals` methodmembers of an equivalence class are equal to each other. Members of the `java.util.Collection` interfacean equivalence class are substitutable for each other, at least for some purposes. Specified by: `equals` in interface `CompositeData` Overrides: `equals` in class `Object` Parameters: `obj` - the reference object with which to be compared for equality with this `CompositeData` instancecompare. Returns: `true` if the specifiedthis object is equal to this `CompositeData` instancethe same as the obj argument; `false` otherwise. See Also: `Object.hashCode()` `HashMap`
### equals public boolean equals (Object obj) Description copied from interface: `CompositeData` Compares the specified obj parameter with this `CompositeData` instance for equality. Returns `true` if and only if all of the following statements are true: obj is non null, obj also implements the `CompositeData` interface, their composite types are equal their contents, i.e. (name, value) pairs are equal. If a value contained in the content is an array, the value comparison is done as if by calling the `deepEquals` method for arrays of object reference types or the appropriate overloading of `Arrays.equals(e1,e2)` for arrays of primitive types This ensures that this `equals` method works properly for obj parameters which are different implementations of the `CompositeData` interface, with the restrictions mentioned in the `equals` method of the `java.util.Collection` interface. Specified by: `equals` in interface `CompositeData` Overrides: `equals` in class `Object` Parameters: `obj` - the object to be compared for equality with this `CompositeData` instance. Returns: `true` if the specified object is equal to this `CompositeData` instance. See Also: `Object.hashCode()` `HashMap` | ### equals public boolean equals (Object obj) 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 `CompositeData` Overrides: `equals` in class `Object` Parameters: `obj` - 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: `CompositeDataObject` Returns thea hash code value for the object. This method is supported for this `CompositeData` instancethe benefit of hash tables such as those provided by `HashMap`. The hash codegeneral contract of `a `CompositeData` instancehashCode` is: Whenever it is invoked on the sumsame object more than once during an execution of a Java application, the `hash codes of all elements ofhashCode` method must consistently return the same integer, provided no information used in `equals` comparisons (ie: its composite type and allon the item values)object is modified. This ensures thatt1.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`(t2) implies thatt1. method, then calling the `hashCode` ()==t2.hashCode() for anymethod on each of the two `CompositeData` instances `t1` and `t2`, as required byobjects must produce the general contract of the method `Object.hashCode()`. Each item value's hash codesame integer result. It is addednot required that if two objects are unequal according to the `returned hash code. If an item value is an array, its hash code is obtained as if byequals` method, then calling the ``deepHashCode`hashCode` method for arrayson each of object reference types orthe two objects must produce distinct integer results. However, the appropriate overloading of `Arrays.hashCode(e)`programmer should be aware that producing distinct integer results for arraysunequal objects may improve the performance of primitive typeshash tables. Specified by: `hashCode` in interface `CompositeData` Overrides: `hashCode` in class `Object` Returns: thea hash code value for this `CompositeData` instanceobject. See Also: `Object.equals(java.lang.Object)` `System.identityHashCode(java.lang.Object)`
### hashCode public int hashCode() Description copied from interface: `CompositeData` Returns the hash code value for this `CompositeData` instance. The hash code of a `CompositeData` instance is the sum of the hash codes of all elements of information used in `equals` comparisons (ie: its composite type and all the item values). This ensures that `t1.equals(t2)` implies that `t1.hashCode()==t2.hashCode()` for any two `CompositeData` instances `t1` and `t2`, as required by the general contract of the method `Object.hashCode()`. Each item value's hash code is added to the returned hash code. If an item value is an array, its hash code is obtained as if by calling the `deepHashCode` method for arrays of object reference types or the appropriate overloading of `Arrays.hashCode(e)` for arrays of primitive types. Specified by: `hashCode` in interface `CompositeData` Overrides: `hashCode` in class `Object` Returns: the hash code value for this `CompositeData` instance See Also: `Object.equals(java.lang.Object)` `System.identityHashCode(java.lang.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 `CompositeData` 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)`

### method:toString() [CHANGED]
### toString public String toString() Description copied from interfaceclass: `CompositeDataObject` Returns a string representation of this `CompositeData` instance. Thestring representation consistsof the name of the implementing class, the string representation of the composite type of this instance, and the string representation of the contents (ie list the itemName=itemValue mappings)object. Specified by: `toString` in interface `CompositeData` Overrides: `toString` in class `Object` Returns: a string representation of this `CompositeData` instancethe object.
### toString public String toString() Description copied from interface: `CompositeData` Returns a string representation of this `CompositeData` instance. The string representation consists of the name of the implementing class, the string representation of the composite type of this instance, and the string representation of the contents (ie list the itemName=itemValue mappings). Specified by: `toString` in interface `CompositeData` Overrides: `toString` in class `Object` Returns: a string representation of this `CompositeData` instance | ### toString public String toString() Description copied from class: `Object` Returns a string representation of the object. Specified by: `toString` in interface `CompositeData` Overrides: `toString` in class `Object` Returns: a string representation of the object.