From a36cabafe3449a84271924b70e5a4c806a143001 Mon Sep 17 00:00:00 2001
From: Janice Collins The read-write field The getter for The default value is A list of Strings The read-write field Iterates over the given Iterates over the given Iterates over the given Iterates over the given A tasty static + final property. Even unresolved references in the same library should be resolved
Apple
-B${HTML_ESCAPE.convert(label)}
';
}
}
-// TODO(jcollins-g): Merge this into new [Package.warn] warning system
-String _elementLocation(ModelElement element) {
- while ((element.element.documentationComment == null ||
- element.element.documentationComment == "") &&
- element.overriddenElement != null) {
- element = element.overriddenElement;
- }
- return "'${element.fullyQualifiedName}' (${element.sourceFileName}:${element.lineNumber})";
-}
-
String _renderMarkdownToHtml(String text, [ModelElement element]) {
md.Node _linkResolver(String name) {
NodeListdoesStuff
'));
+ expect(docsAsHtml, contains('doesStuff'));
});
test(
@@ -327,7 +327,7 @@ void main() {
expect(helperClass.documentationAsHtml,
contains('Apple'));
expect(helperClass.documentationAsHtml,
- contains('B'));
+ contains('ex.B'));
});
test(
@@ -478,7 +478,7 @@ void main() {
expect(resolved, isNotNull);
expect(resolved,
contains('BaseClass'));
- expect(resolved, contains('linking over to Apple
.'));
+ expect(resolved, contains('linking over to Apple.'));
});
test('references to class and constructors', () {
@@ -1469,7 +1469,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
expect(appleDefaultConstructor.enclosingElement.name, equals(apple.name));
});
- test('has contructor', () {
+ test('has constructor', () {
expect(appleDefaultConstructor, isNotNull);
expect(appleDefaultConstructor.name, equals('Apple'));
expect(appleDefaultConstructor.shortName, equals('Apple'));
diff --git a/test/src/utils.dart b/test/src/utils.dart
index e69de759bc..f66ae0b661 100644
--- a/test/src/utils.dart
+++ b/test/src/utils.dart
@@ -69,10 +69,12 @@ Package _bootPackage(IterableProperties
Properties
m
.s
Static Properties
Properties
false
(compression disabled).
@@ -197,7 +197,7 @@ Properties
Properties
m
.Methods
objects
and write
s them in sequence.objects
and writes them in sequence.CatString
writeAll(objects
and write
s them in sequence.objects
and writes them in sequence.Properties
Properties
Properties
Static Properties
Properties
Properties
Properties
ex
Even unresolved references in the same library should be resolved Apple -B
+ex.BReference to a top-level const in another library incorrectDocReferenceFromEx
Reference to prefixed-name from another lib css.theOnlyThingInTheLibrary xx
Reference to a name that exists in this package, but is not imported
-in this library doesStuff
xx
Reference to a name of a class from an import of a library that exported the name BaseClass xx
diff --git a/testing/test_package_docs/fake/ExtraSpecialList-class.html b/testing/test_package_docs/fake/ExtraSpecialList-class.html index 61194114c3..926ea2ba95 100644 --- a/testing/test_package_docs/fake/ExtraSpecialList-class.html +++ b/testing/test_package_docs/fake/ExtraSpecialList-class.html @@ -188,7 +188,7 @@An instance string property. Readable and writable.
@@ -234,8 +234,9 @@Only a setter, with a single param, of type double.
@@ -251,7 +252,7 @@In the super class.
@@ -385,7 +386,7 @@A static int property.
@@ -400,8 +401,9 @@Returns the index
th element.
The index
must be non-negative and less than length
.
+
The index
must be non-negative and less than length.
Index zero represents the first element (so iterable.elementAt(0)
is
equivalent to iterable.first
).
May iterate through the elements in iteration order, skipping the diff --git a/testing/test_package_docs/fake/SpecialList/setAll.html b/testing/test_package_docs/fake/SpecialList/setAll.html index 9bd51922be..6981d6a7d6 100644 --- a/testing/test_package_docs/fake/SpecialList/setAll.html +++ b/testing/test_package_docs/fake/SpecialList/setAll.html @@ -158,9 +158,9 @@
This operation does not increase the length of this
.
The index
must be non-negative and no greater than length
.
The index
must be non-negative and no greater than length.
The iterable
must not have more elements than what can fit from index
-to length
.
If iterable
is based on this list, its values may change /during/ the
setAll
operation.
List<String> colors = ['red', 'green', 'blue', 'orange', 'pink'];
colors.sublist(1, 3); // ['green', 'blue']
-If end
is omitted, the length
of this
is used.
If end
is omitted, the length of this
is used.
colors.sublist(1); // ['green', 'blue', 'orange', 'pink']
An error occurs if start
is outside the range 0
.. length
or if
diff --git a/testing/test_package_docs/fake/SuperAwesomeClass-class.html b/testing/test_package_docs/fake/SuperAwesomeClass-class.html
index 6b6e7239d6..ed954de849 100644
--- a/testing/test_package_docs/fake/SuperAwesomeClass-class.html
+++ b/testing/test_package_docs/fake/SuperAwesomeClass-class.html
@@ -189,7 +189,7 @@
In the super class.
diff --git a/testing/test_package_docs/fake/WithGetterAndSetter-class.html b/testing/test_package_docs/fake/WithGetterAndSetter-class.html index bdecb1d22d..a2f0daa109 100644 --- a/testing/test_package_docs/fake/WithGetterAndSetter-class.html +++ b/testing/test_package_docs/fake/WithGetterAndSetter-class.html @@ -183,9 +183,14 @@Returns a length.
diff --git a/testing/test_package_docs/fake/fake-library.html b/testing/test_package_docs/fake/fake-library.html index 0817b2c394..a72bc27484 100644 --- a/testing/test_package_docs/fake/fake-library.html +++ b/testing/test_package_docs/fake/fake-library.html @@ -390,8 +390,9 @@Just a setter. No partner getter.
@@ -399,7 +400,7 @@Final property.
The getter for setAndGet.
@@ -423,7 +429,7 @@Simple property
diff --git a/testing/test_package_docs/test_package_imported.main/Whataclass/noSuchMethod.html b/testing/test_package_docs/test_package_imported.main/Whataclass/noSuchMethod.html index 3ff5fcdec7..a496e89654 100644 --- a/testing/test_package_docs/test_package_imported.main/Whataclass/noSuchMethod.html +++ b/testing/test_package_docs/test_package_imported.main/Whataclass/noSuchMethod.html @@ -100,7 +100,7 @@Invoked when a non-existent method or property is accessed.
-Classes can override noSuchMethod
to provide custom behavior.
Classes can override noSuchMethod to provide custom behavior.
If a value is returned, it becomes the result of the original invocation.
The default behavior is to throw a NoSuchMethodError
.
If a subclass overrides the equality operator it should override
-the hashCode
method as well to maintain consistency.
Invoked when a non-existent method or property is accessed.
-Classes can override noSuchMethod
to provide custom behavior.
Classes can override noSuchMethod to provide custom behavior.
If a value is returned, it becomes the result of the original invocation.
The default behavior is to throw a NoSuchMethodError
.
If a subclass overrides the equality operator it should override
-the hashCode
method as well to maintain consistency.
The hash code for this object.
Returns a length.
diff --git a/testing/test_package_docs/two_exports/ExtendingClass-class.html b/testing/test_package_docs/two_exports/ExtendingClass-class.html index 8fcca5f4d0..97af11e691 100644 --- a/testing/test_package_docs/two_exports/ExtendingClass-class.html +++ b/testing/test_package_docs/two_exports/ExtendingClass-class.html @@ -93,7 +93,7 @@Extending class extends BaseClass.
Also check out topLevelVariable.
-This should not work: linking over to Apple
.
This should not work: linking over to Apple.
The hash code for this object.
Returns a length.
diff --git a/testing/test_package_docs/two_exports/two_exports-library.html b/testing/test_package_docs/two_exports/two_exports-library.html index 3fc1e3a2f4..c1c3dd70b0 100644 --- a/testing/test_package_docs/two_exports/two_exports-library.html +++ b/testing/test_package_docs/two_exports/two_exports-library.html @@ -112,7 +112,7 @@${HTML_ESCAPE.convert(label)}
';
} else {
@@ -677,10 +619,6 @@ void _showWarningsForGenericsOutsideSquareBracketsBlocks(String text,
priorContext = priorContext.replaceAll(new RegExp(r'^.*\n', multiLine: true), '');
postContext = postContext.replaceAll(new RegExp(r'\n.*$', multiLine: true), '');
String errorMessage = "$priorContext$postContext";
- //String errorMessage = "${text.substring(max(position - 20, 0), min(position + 20, text.length))}";
-
- // Strip pieces of lines before and after that
- //errorMessage = errorMessage.replaceAll(new RegExp(r'(\n[^<>]*$|^[^<>]*\n)'), '');
// TODO(jcollins-g): allow for more specific error location inside comments
element.warn(PackageWarning.typeAsHtml, errorMessage);
});
diff --git a/lib/src/model.dart b/lib/src/model.dart
index 1e6a44f1b9..8743c23a4c 100644
--- a/lib/src/model.dart
+++ b/lib/src/model.dart
@@ -84,7 +84,6 @@ int byFeatureOrdering(String a, String b) {
return compareAsciiLowerCaseNatural(a, b);
}
-
/// Mixin for subclasses of ModelElement representing Elements that can be
/// inherited from one class to another.
///
@@ -960,20 +959,6 @@ class Enum extends Class {
@override
String get kind => 'enum';
- /*
- @override
- SetExtending class extends BaseClass.
Also check out topLevelVariable.
-This should not work: linking over to Apple.
+Linking over to Apple should work.
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/Animal/operator_equals.html b/testing/test_package_docs/ex/Animal/operator_equals.html
index 03ef1986a4..73707d6ec0 100644
--- a/testing/test_package_docs/ex/Animal/operator_equals.html
+++ b/testing/test_package_docs/ex/Animal/operator_equals.html
@@ -116,7 +116,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/ex/Apple/hashCode.html b/testing/test_package_docs/ex/Apple/hashCode.html index c30625c02f..65fbd473b8 100644 --- a/testing/test_package_docs/ex/Apple/hashCode.html +++ b/testing/test_package_docs/ex/Apple/hashCode.html @@ -121,12 +121,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/Apple/operator_equals.html b/testing/test_package_docs/ex/Apple/operator_equals.html
index 306885c7a4..0876e37ed3 100644
--- a/testing/test_package_docs/ex/Apple/operator_equals.html
+++ b/testing/test_package_docs/ex/Apple/operator_equals.html
@@ -127,7 +127,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/ex/Cat/hashCode.html b/testing/test_package_docs/ex/Cat/hashCode.html index d5cd2d826d..e8dd98febd 100644 --- a/testing/test_package_docs/ex/Cat/hashCode.html +++ b/testing/test_package_docs/ex/Cat/hashCode.html @@ -108,12 +108,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/Cat/operator_equals.html b/testing/test_package_docs/ex/Cat/operator_equals.html
index a5f5679850..92c823ade6 100644
--- a/testing/test_package_docs/ex/Cat/operator_equals.html
+++ b/testing/test_package_docs/ex/Cat/operator_equals.html
@@ -114,7 +114,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/ex/CatString/hashCode.html b/testing/test_package_docs/ex/CatString/hashCode.html index 842d809447..820424adf3 100644 --- a/testing/test_package_docs/ex/CatString/hashCode.html +++ b/testing/test_package_docs/ex/CatString/hashCode.html @@ -114,12 +114,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/CatString/operator_equals.html b/testing/test_package_docs/ex/CatString/operator_equals.html
index 91a7250f6c..05bb9b4221 100644
--- a/testing/test_package_docs/ex/CatString/operator_equals.html
+++ b/testing/test_package_docs/ex/CatString/operator_equals.html
@@ -120,7 +120,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/ex/ConstantCat/hashCode.html b/testing/test_package_docs/ex/ConstantCat/hashCode.html index 4a6b3abcb4..4e34f54a4a 100644 --- a/testing/test_package_docs/ex/ConstantCat/hashCode.html +++ b/testing/test_package_docs/ex/ConstantCat/hashCode.html @@ -109,12 +109,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/ConstantCat/operator_equals.html b/testing/test_package_docs/ex/ConstantCat/operator_equals.html
index 8f4103a532..68fef4f80f 100644
--- a/testing/test_package_docs/ex/ConstantCat/operator_equals.html
+++ b/testing/test_package_docs/ex/ConstantCat/operator_equals.html
@@ -115,7 +115,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/ex/Deprecated/hashCode.html b/testing/test_package_docs/ex/Deprecated/hashCode.html index 2d393e72e8..3c116f094d 100644 --- a/testing/test_package_docs/ex/Deprecated/hashCode.html +++ b/testing/test_package_docs/ex/Deprecated/hashCode.html @@ -107,12 +107,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/Deprecated/operator_equals.html b/testing/test_package_docs/ex/Deprecated/operator_equals.html
index 0398088484..2ba28d5678 100644
--- a/testing/test_package_docs/ex/Deprecated/operator_equals.html
+++ b/testing/test_package_docs/ex/Deprecated/operator_equals.html
@@ -113,7 +113,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/ex/Dog/hashCode.html b/testing/test_package_docs/ex/Dog/hashCode.html index 2963aaa398..fcae183b52 100644 --- a/testing/test_package_docs/ex/Dog/hashCode.html +++ b/testing/test_package_docs/ex/Dog/hashCode.html @@ -131,12 +131,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/Dog/operator_equals.html b/testing/test_package_docs/ex/Dog/operator_equals.html
index c94cedf92a..721ad0678b 100644
--- a/testing/test_package_docs/ex/Dog/operator_equals.html
+++ b/testing/test_package_docs/ex/Dog/operator_equals.html
@@ -142,7 +142,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/ex/E/hashCode.html b/testing/test_package_docs/ex/E/hashCode.html index 9f13ff1d81..7830b694cf 100644 --- a/testing/test_package_docs/ex/E/hashCode.html +++ b/testing/test_package_docs/ex/E/hashCode.html @@ -106,12 +106,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/E/operator_equals.html b/testing/test_package_docs/ex/E/operator_equals.html
index 7f18a9f51c..2906598cc3 100644
--- a/testing/test_package_docs/ex/E/operator_equals.html
+++ b/testing/test_package_docs/ex/E/operator_equals.html
@@ -112,7 +112,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/ex/ForAnnotation/hashCode.html b/testing/test_package_docs/ex/ForAnnotation/hashCode.html index 835387950a..52aba875c2 100644 --- a/testing/test_package_docs/ex/ForAnnotation/hashCode.html +++ b/testing/test_package_docs/ex/ForAnnotation/hashCode.html @@ -107,12 +107,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/ForAnnotation/operator_equals.html b/testing/test_package_docs/ex/ForAnnotation/operator_equals.html
index ba5bd8d4f2..7904e47f03 100644
--- a/testing/test_package_docs/ex/ForAnnotation/operator_equals.html
+++ b/testing/test_package_docs/ex/ForAnnotation/operator_equals.html
@@ -113,7 +113,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/ex/HasAnnotation/hashCode.html b/testing/test_package_docs/ex/HasAnnotation/hashCode.html index a231dd1cba..c711b3d424 100644 --- a/testing/test_package_docs/ex/HasAnnotation/hashCode.html +++ b/testing/test_package_docs/ex/HasAnnotation/hashCode.html @@ -106,12 +106,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/HasAnnotation/operator_equals.html b/testing/test_package_docs/ex/HasAnnotation/operator_equals.html
index 6e87e683ae..2b56344e51 100644
--- a/testing/test_package_docs/ex/HasAnnotation/operator_equals.html
+++ b/testing/test_package_docs/ex/HasAnnotation/operator_equals.html
@@ -112,7 +112,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/ex/Helper/hashCode.html b/testing/test_package_docs/ex/Helper/hashCode.html index 2abda39210..5d3f3f10da 100644 --- a/testing/test_package_docs/ex/Helper/hashCode.html +++ b/testing/test_package_docs/ex/Helper/hashCode.html @@ -107,12 +107,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/Helper/operator_equals.html b/testing/test_package_docs/ex/Helper/operator_equals.html
index 96158da057..1c5c87659c 100644
--- a/testing/test_package_docs/ex/Helper/operator_equals.html
+++ b/testing/test_package_docs/ex/Helper/operator_equals.html
@@ -113,7 +113,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/ex/Klass/hashCode.html b/testing/test_package_docs/ex/Klass/hashCode.html index 6bc06e31f5..7183b9df02 100644 --- a/testing/test_package_docs/ex/Klass/hashCode.html +++ b/testing/test_package_docs/ex/Klass/hashCode.html @@ -111,12 +111,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/Klass/operator_equals.html b/testing/test_package_docs/ex/Klass/operator_equals.html
index 57cf125c6d..ed5ca14dee 100644
--- a/testing/test_package_docs/ex/Klass/operator_equals.html
+++ b/testing/test_package_docs/ex/Klass/operator_equals.html
@@ -117,7 +117,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/ex/MyError/hashCode.html b/testing/test_package_docs/ex/MyError/hashCode.html index af1ab6d8e3..ec1d9d2d9b 100644 --- a/testing/test_package_docs/ex/MyError/hashCode.html +++ b/testing/test_package_docs/ex/MyError/hashCode.html @@ -107,12 +107,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/MyError/operator_equals.html b/testing/test_package_docs/ex/MyError/operator_equals.html
index 71a8acf70e..b225eb6940 100644
--- a/testing/test_package_docs/ex/MyError/operator_equals.html
+++ b/testing/test_package_docs/ex/MyError/operator_equals.html
@@ -113,7 +113,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/ex/MyErrorImplements/hashCode.html b/testing/test_package_docs/ex/MyErrorImplements/hashCode.html index f91f5fe1d7..2512c0642b 100644 --- a/testing/test_package_docs/ex/MyErrorImplements/hashCode.html +++ b/testing/test_package_docs/ex/MyErrorImplements/hashCode.html @@ -107,12 +107,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/MyErrorImplements/operator_equals.html b/testing/test_package_docs/ex/MyErrorImplements/operator_equals.html
index 7b2d61d4bd..bafe071e36 100644
--- a/testing/test_package_docs/ex/MyErrorImplements/operator_equals.html
+++ b/testing/test_package_docs/ex/MyErrorImplements/operator_equals.html
@@ -113,7 +113,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/ex/MyException/hashCode.html b/testing/test_package_docs/ex/MyException/hashCode.html index 94cf102186..cc9f542ab9 100644 --- a/testing/test_package_docs/ex/MyException/hashCode.html +++ b/testing/test_package_docs/ex/MyException/hashCode.html @@ -106,12 +106,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/MyException/operator_equals.html b/testing/test_package_docs/ex/MyException/operator_equals.html
index 74c4d6088d..af1216230d 100644
--- a/testing/test_package_docs/ex/MyException/operator_equals.html
+++ b/testing/test_package_docs/ex/MyException/operator_equals.html
@@ -112,7 +112,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/ex/MyExceptionImplements/hashCode.html b/testing/test_package_docs/ex/MyExceptionImplements/hashCode.html index df4606aff1..9dcf8dc4e1 100644 --- a/testing/test_package_docs/ex/MyExceptionImplements/hashCode.html +++ b/testing/test_package_docs/ex/MyExceptionImplements/hashCode.html @@ -106,12 +106,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/MyExceptionImplements/operator_equals.html b/testing/test_package_docs/ex/MyExceptionImplements/operator_equals.html
index 4615901bdb..076faa4f31 100644
--- a/testing/test_package_docs/ex/MyExceptionImplements/operator_equals.html
+++ b/testing/test_package_docs/ex/MyExceptionImplements/operator_equals.html
@@ -112,7 +112,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/ex/PublicClassExtendsPrivateClass/hashCode.html b/testing/test_package_docs/ex/PublicClassExtendsPrivateClass/hashCode.html index b74a5e2629..488af7d7eb 100644 --- a/testing/test_package_docs/ex/PublicClassExtendsPrivateClass/hashCode.html +++ b/testing/test_package_docs/ex/PublicClassExtendsPrivateClass/hashCode.html @@ -107,12 +107,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/PublicClassExtendsPrivateClass/operator_equals.html b/testing/test_package_docs/ex/PublicClassExtendsPrivateClass/operator_equals.html
index 0c423bdf0d..a1f35950f8 100644
--- a/testing/test_package_docs/ex/PublicClassExtendsPrivateClass/operator_equals.html
+++ b/testing/test_package_docs/ex/PublicClassExtendsPrivateClass/operator_equals.html
@@ -113,7 +113,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/ex/PublicClassImplementsPrivateInterface/hashCode.html b/testing/test_package_docs/ex/PublicClassImplementsPrivateInterface/hashCode.html index 42bcd3519d..28876f4138 100644 --- a/testing/test_package_docs/ex/PublicClassImplementsPrivateInterface/hashCode.html +++ b/testing/test_package_docs/ex/PublicClassImplementsPrivateInterface/hashCode.html @@ -107,12 +107,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/PublicClassImplementsPrivateInterface/operator_equals.html b/testing/test_package_docs/ex/PublicClassImplementsPrivateInterface/operator_equals.html
index 3031490b27..09a75a047f 100644
--- a/testing/test_package_docs/ex/PublicClassImplementsPrivateInterface/operator_equals.html
+++ b/testing/test_package_docs/ex/PublicClassImplementsPrivateInterface/operator_equals.html
@@ -113,7 +113,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/ex/ShapeType/hashCode.html b/testing/test_package_docs/ex/ShapeType/hashCode.html index 329e5e4ccf..7be697f8c0 100644 --- a/testing/test_package_docs/ex/ShapeType/hashCode.html +++ b/testing/test_package_docs/ex/ShapeType/hashCode.html @@ -108,12 +108,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/ShapeType/operator_equals.html b/testing/test_package_docs/ex/ShapeType/operator_equals.html
index 34b93923e3..6ecb649626 100644
--- a/testing/test_package_docs/ex/ShapeType/operator_equals.html
+++ b/testing/test_package_docs/ex/ShapeType/operator_equals.html
@@ -114,7 +114,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/ex/SpecializedDuration/hashCode.html b/testing/test_package_docs/ex/SpecializedDuration/hashCode.html index 7569eebd4f..8fd78415ca 100644 --- a/testing/test_package_docs/ex/SpecializedDuration/hashCode.html +++ b/testing/test_package_docs/ex/SpecializedDuration/hashCode.html @@ -124,12 +124,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/WithGeneric/hashCode.html b/testing/test_package_docs/ex/WithGeneric/hashCode.html
index 6d74340fbb..e867de5dbd 100644
--- a/testing/test_package_docs/ex/WithGeneric/hashCode.html
+++ b/testing/test_package_docs/ex/WithGeneric/hashCode.html
@@ -107,12 +107,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/WithGeneric/operator_equals.html b/testing/test_package_docs/ex/WithGeneric/operator_equals.html
index 4b5e566c20..e3103d8bf2 100644
--- a/testing/test_package_docs/ex/WithGeneric/operator_equals.html
+++ b/testing/test_package_docs/ex/WithGeneric/operator_equals.html
@@ -113,7 +113,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/ex/aThingToDo/hashCode.html b/testing/test_package_docs/ex/aThingToDo/hashCode.html index d6308badbb..69f6f0f7d7 100644 --- a/testing/test_package_docs/ex/aThingToDo/hashCode.html +++ b/testing/test_package_docs/ex/aThingToDo/hashCode.html @@ -108,12 +108,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/ex/aThingToDo/operator_equals.html b/testing/test_package_docs/ex/aThingToDo/operator_equals.html
index 0f1e1caf02..faeb52bc1e 100644
--- a/testing/test_package_docs/ex/aThingToDo/operator_equals.html
+++ b/testing/test_package_docs/ex/aThingToDo/operator_equals.html
@@ -114,7 +114,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/fake/Annotation/hashCode.html b/testing/test_package_docs/fake/Annotation/hashCode.html index 1806621bf3..07a3f14239 100644 --- a/testing/test_package_docs/fake/Annotation/hashCode.html +++ b/testing/test_package_docs/fake/Annotation/hashCode.html @@ -107,12 +107,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/fake/Annotation/operator_equals.html b/testing/test_package_docs/fake/Annotation/operator_equals.html
index a4b54588cb..99d25aeefd 100644
--- a/testing/test_package_docs/fake/Annotation/operator_equals.html
+++ b/testing/test_package_docs/fake/Annotation/operator_equals.html
@@ -113,7 +113,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/fake/AnotherInterface/hashCode.html b/testing/test_package_docs/fake/AnotherInterface/hashCode.html index 48c2785f18..c330a55865 100644 --- a/testing/test_package_docs/fake/AnotherInterface/hashCode.html +++ b/testing/test_package_docs/fake/AnotherInterface/hashCode.html @@ -106,12 +106,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/fake/AnotherInterface/operator_equals.html b/testing/test_package_docs/fake/AnotherInterface/operator_equals.html
index 5f5e167613..0be4a23da6 100644
--- a/testing/test_package_docs/fake/AnotherInterface/operator_equals.html
+++ b/testing/test_package_docs/fake/AnotherInterface/operator_equals.html
@@ -112,7 +112,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/fake/BaseForDocComments/hashCode.html b/testing/test_package_docs/fake/BaseForDocComments/hashCode.html index a12e2b2273..a6dc06e724 100644 --- a/testing/test_package_docs/fake/BaseForDocComments/hashCode.html +++ b/testing/test_package_docs/fake/BaseForDocComments/hashCode.html @@ -108,12 +108,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/fake/BaseForDocComments/operator_equals.html b/testing/test_package_docs/fake/BaseForDocComments/operator_equals.html
index 89b435345c..5a5774430a 100644
--- a/testing/test_package_docs/fake/BaseForDocComments/operator_equals.html
+++ b/testing/test_package_docs/fake/BaseForDocComments/operator_equals.html
@@ -114,7 +114,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/fake/Color/hashCode.html b/testing/test_package_docs/fake/Color/hashCode.html index b424393d1a..0bda804355 100644 --- a/testing/test_package_docs/fake/Color/hashCode.html +++ b/testing/test_package_docs/fake/Color/hashCode.html @@ -114,12 +114,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/fake/Color/operator_equals.html b/testing/test_package_docs/fake/Color/operator_equals.html
index af37750aa7..66fd402bf5 100644
--- a/testing/test_package_docs/fake/Color/operator_equals.html
+++ b/testing/test_package_docs/fake/Color/operator_equals.html
@@ -120,7 +120,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/fake/ConstantClass/hashCode.html b/testing/test_package_docs/fake/ConstantClass/hashCode.html index e443b5ddb6..d49d3ec4da 100644 --- a/testing/test_package_docs/fake/ConstantClass/hashCode.html +++ b/testing/test_package_docs/fake/ConstantClass/hashCode.html @@ -109,12 +109,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/fake/ConstantClass/operator_equals.html b/testing/test_package_docs/fake/ConstantClass/operator_equals.html
index 7afb37377f..dabf509f65 100644
--- a/testing/test_package_docs/fake/ConstantClass/operator_equals.html
+++ b/testing/test_package_docs/fake/ConstantClass/operator_equals.html
@@ -115,7 +115,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/fake/Cool/hashCode.html b/testing/test_package_docs/fake/Cool/hashCode.html index 83b5b27fb2..0de602ac67 100644 --- a/testing/test_package_docs/fake/Cool/hashCode.html +++ b/testing/test_package_docs/fake/Cool/hashCode.html @@ -107,12 +107,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/fake/Cool/operator_equals.html b/testing/test_package_docs/fake/Cool/operator_equals.html
index 30cd768a6e..d868c1636f 100644
--- a/testing/test_package_docs/fake/Cool/operator_equals.html
+++ b/testing/test_package_docs/fake/Cool/operator_equals.html
@@ -113,7 +113,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/fake/Doh/hashCode.html b/testing/test_package_docs/fake/Doh/hashCode.html index b92cc8244b..b8c976bb00 100644 --- a/testing/test_package_docs/fake/Doh/hashCode.html +++ b/testing/test_package_docs/fake/Doh/hashCode.html @@ -107,12 +107,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/fake/Doh/operator_equals.html b/testing/test_package_docs/fake/Doh/operator_equals.html
index 37e6164651..1e530a7feb 100644
--- a/testing/test_package_docs/fake/Doh/operator_equals.html
+++ b/testing/test_package_docs/fake/Doh/operator_equals.html
@@ -113,7 +113,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/fake/Foo2/hashCode.html b/testing/test_package_docs/fake/Foo2/hashCode.html index b3d86e49ef..73622be4bd 100644 --- a/testing/test_package_docs/fake/Foo2/hashCode.html +++ b/testing/test_package_docs/fake/Foo2/hashCode.html @@ -110,12 +110,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/fake/Foo2/operator_equals.html b/testing/test_package_docs/fake/Foo2/operator_equals.html
index 2aaeb6975b..ca93fc4e93 100644
--- a/testing/test_package_docs/fake/Foo2/operator_equals.html
+++ b/testing/test_package_docs/fake/Foo2/operator_equals.html
@@ -116,7 +116,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/fake/HasGenericWithExtends/hashCode.html b/testing/test_package_docs/fake/HasGenericWithExtends/hashCode.html index 44adfcb2bd..841877474d 100644 --- a/testing/test_package_docs/fake/HasGenericWithExtends/hashCode.html +++ b/testing/test_package_docs/fake/HasGenericWithExtends/hashCode.html @@ -106,12 +106,12 @@
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/fake/HasGenericWithExtends/operator_equals.html b/testing/test_package_docs/fake/HasGenericWithExtends/operator_equals.html
index 279a7fefea..cbf50282c9 100644
--- a/testing/test_package_docs/fake/HasGenericWithExtends/operator_equals.html
+++ b/testing/test_package_docs/fake/HasGenericWithExtends/operator_equals.html
@@ -112,7 +112,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/fake/HasGenerics/hashCode.html b/testing/test_package_docs/fake/HasGenerics/hashCode.html index b4ea3cd76d..95e72d7632 100644 --- a/testing/test_package_docs/fake/HasGenerics/hashCode.html +++ b/testing/test_package_docs/fake/HasGenerics/hashCode.html @@ -110,12 +110,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/fake/HasGenerics/operator_equals.html b/testing/test_package_docs/fake/HasGenerics/operator_equals.html
index 4213c97e67..dedc508f66 100644
--- a/testing/test_package_docs/fake/HasGenerics/operator_equals.html
+++ b/testing/test_package_docs/fake/HasGenerics/operator_equals.html
@@ -116,7 +116,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/fake/Interface/hashCode.html b/testing/test_package_docs/fake/Interface/hashCode.html index 8e62d1a8dd..2b33b03215 100644 --- a/testing/test_package_docs/fake/Interface/hashCode.html +++ b/testing/test_package_docs/fake/Interface/hashCode.html @@ -106,12 +106,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/fake/Interface/operator_equals.html b/testing/test_package_docs/fake/Interface/operator_equals.html
index 4879cf49e3..7f30bb524a 100644
--- a/testing/test_package_docs/fake/Interface/operator_equals.html
+++ b/testing/test_package_docs/fake/Interface/operator_equals.html
@@ -112,7 +112,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/fake/MixMeIn/hashCode.html b/testing/test_package_docs/fake/MixMeIn/hashCode.html index 4783f47420..a9fc3cf529 100644 --- a/testing/test_package_docs/fake/MixMeIn/hashCode.html +++ b/testing/test_package_docs/fake/MixMeIn/hashCode.html @@ -106,12 +106,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/fake/MixMeIn/operator_equals.html b/testing/test_package_docs/fake/MixMeIn/operator_equals.html
index c83eebb85a..182d3f86d6 100644
--- a/testing/test_package_docs/fake/MixMeIn/operator_equals.html
+++ b/testing/test_package_docs/fake/MixMeIn/operator_equals.html
@@ -112,7 +112,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/fake/Oops/hashCode.html b/testing/test_package_docs/fake/Oops/hashCode.html index 83e358e7b0..d5b137cec2 100644 --- a/testing/test_package_docs/fake/Oops/hashCode.html +++ b/testing/test_package_docs/fake/Oops/hashCode.html @@ -107,12 +107,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/fake/Oops/operator_equals.html b/testing/test_package_docs/fake/Oops/operator_equals.html
index 995f457827..16d8174e85 100644
--- a/testing/test_package_docs/fake/Oops/operator_equals.html
+++ b/testing/test_package_docs/fake/Oops/operator_equals.html
@@ -113,7 +113,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/fake/OperatorReferenceClass/hashCode.html b/testing/test_package_docs/fake/OperatorReferenceClass/hashCode.html index 36f7898467..190a350509 100644 --- a/testing/test_package_docs/fake/OperatorReferenceClass/hashCode.html +++ b/testing/test_package_docs/fake/OperatorReferenceClass/hashCode.html @@ -106,12 +106,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/fake/OperatorReferenceClass/operator_equals.html b/testing/test_package_docs/fake/OperatorReferenceClass/operator_equals.html
index a1d337e8ae..01a09e2290 100644
--- a/testing/test_package_docs/fake/OperatorReferenceClass/operator_equals.html
+++ b/testing/test_package_docs/fake/OperatorReferenceClass/operator_equals.html
@@ -117,7 +117,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/fake/OtherGenericsThing/hashCode.html b/testing/test_package_docs/fake/OtherGenericsThing/hashCode.html index 402046c294..ced19403b1 100644 --- a/testing/test_package_docs/fake/OtherGenericsThing/hashCode.html +++ b/testing/test_package_docs/fake/OtherGenericsThing/hashCode.html @@ -107,12 +107,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/fake/OtherGenericsThing/operator_equals.html b/testing/test_package_docs/fake/OtherGenericsThing/operator_equals.html
index 9d3b4f731b..ac1672c33b 100644
--- a/testing/test_package_docs/fake/OtherGenericsThing/operator_equals.html
+++ b/testing/test_package_docs/fake/OtherGenericsThing/operator_equals.html
@@ -113,7 +113,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/fake/SpecialList/contains.html b/testing/test_package_docs/fake/SpecialList/contains.html index 97f01065b6..4503a938a3 100644 --- a/testing/test_package_docs/fake/SpecialList/contains.html +++ b/testing/test_package_docs/fake/SpecialList/contains.html @@ -159,7 +159,7 @@
Object.==
of the element.
Some types of iterable may have a different equality used for its elements.
For example, a Set
may have a custom equality
-(see Set.identical
) that its contains
uses.
+(see Set.identity
) that its contains
uses.
Likewise the Iterable
returned by a Map.keys
call
should use the same equality that the Map
uses for keys.
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/fake/SpecialList/operator_equals.html b/testing/test_package_docs/fake/SpecialList/operator_equals.html
index 8eafef8060..d0afe1f01c 100644
--- a/testing/test_package_docs/fake/SpecialList/operator_equals.html
+++ b/testing/test_package_docs/fake/SpecialList/operator_equals.html
@@ -164,7 +164,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/fake/SuperAwesomeClass/hashCode.html b/testing/test_package_docs/fake/SuperAwesomeClass/hashCode.html index fa91a26cfa..15cbf7b5bf 100644 --- a/testing/test_package_docs/fake/SuperAwesomeClass/hashCode.html +++ b/testing/test_package_docs/fake/SuperAwesomeClass/hashCode.html @@ -109,12 +109,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/fake/SuperAwesomeClass/operator_equals.html b/testing/test_package_docs/fake/SuperAwesomeClass/operator_equals.html
index 6b73e7c63d..3465381b81 100644
--- a/testing/test_package_docs/fake/SuperAwesomeClass/operator_equals.html
+++ b/testing/test_package_docs/fake/SuperAwesomeClass/operator_equals.html
@@ -115,7 +115,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/fake/WithGetterAndSetter/hashCode.html b/testing/test_package_docs/fake/WithGetterAndSetter/hashCode.html index 80b405d04d..9070fa6fd3 100644 --- a/testing/test_package_docs/fake/WithGetterAndSetter/hashCode.html +++ b/testing/test_package_docs/fake/WithGetterAndSetter/hashCode.html @@ -107,12 +107,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/fake/WithGetterAndSetter/operator_equals.html b/testing/test_package_docs/fake/WithGetterAndSetter/operator_equals.html
index dc53a7d481..ce60d29ea7 100644
--- a/testing/test_package_docs/fake/WithGetterAndSetter/operator_equals.html
+++ b/testing/test_package_docs/fake/WithGetterAndSetter/operator_equals.html
@@ -113,7 +113,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/test_package_imported.main/Whataclass/hashCode.html b/testing/test_package_docs/test_package_imported.main/Whataclass/hashCode.html index d2a3b8f0c3..e2b614e22e 100644 --- a/testing/test_package_docs/test_package_imported.main/Whataclass/hashCode.html +++ b/testing/test_package_docs/test_package_imported.main/Whataclass/hashCode.html @@ -106,12 +106,12 @@
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/test_package_imported.main/Whataclass/operator_equals.html b/testing/test_package_docs/test_package_imported.main/Whataclass/operator_equals.html
index ce5893ca74..6670115618 100644
--- a/testing/test_package_docs/test_package_imported.main/Whataclass/operator_equals.html
+++ b/testing/test_package_docs/test_package_imported.main/Whataclass/operator_equals.html
@@ -112,7 +112,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override diff --git a/testing/test_package_docs/test_package_imported.main/Whataclass2/hashCode.html b/testing/test_package_docs/test_package_imported.main/Whataclass2/hashCode.html index 06cd89b236..223e3c7588 100644 --- a/testing/test_package_docs/test_package_imported.main/Whataclass2/hashCode.html +++ b/testing/test_package_docs/test_package_imported.main/Whataclass2/hashCode.html @@ -106,12 +106,12 @@
The hash code for this object.
A hash code is a single integer which represents the state of the object
that affects ==
comparisons.
All objects have hash codes. -The default hash code represents only the identity of the object, +
All objects have hash codes.
+The default hash code represents only the identity of the object,
the same way as the default ==
implementation only considers objects
equal if they are identical (see identityHashCode
).
If ==
is overridden to use the object state instead,
-the hash code must also be changed to represent that state.
If ==
is overridden to use the object state instead,
+the hash code must also be changed to represent that state.
Hash codes must be the same for objects that are equal to each other
according to ==
.
The hash code of an object should only change if the object changes
diff --git a/testing/test_package_docs/test_package_imported.main/Whataclass2/operator_equals.html b/testing/test_package_docs/test_package_imported.main/Whataclass2/operator_equals.html
index 50669add2c..e7acb8e7bf 100644
--- a/testing/test_package_docs/test_package_imported.main/Whataclass2/operator_equals.html
+++ b/testing/test_package_docs/test_package_imported.main/Whataclass2/operator_equals.html
@@ -112,7 +112,7 @@
Transitive: For all objects o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then o1 == o3
must be true.
The method should also be consistent over time, +
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator it should override