n3 1.11.2 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/N3DataFactory.js +6 -0
- package/package.json +1 -1
- package/src/N3DataFactory.js +6 -0
package/lib/N3DataFactory.js
CHANGED
|
@@ -48,6 +48,12 @@ class Term {
|
|
|
48
48
|
|
|
49
49
|
get value() {
|
|
50
50
|
return this.id;
|
|
51
|
+
} // ### Implement hashCode for Immutable.js, since we implement `equals`
|
|
52
|
+
// https://immutable-js.com/docs/v4.0.0/ValueObject/#hashCode()
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
get hashCode() {
|
|
56
|
+
return 0;
|
|
51
57
|
} // ### Returns whether this object represents the same term as the other
|
|
52
58
|
|
|
53
59
|
|
package/package.json
CHANGED
package/src/N3DataFactory.js
CHANGED
|
@@ -35,6 +35,12 @@ export class Term {
|
|
|
35
35
|
return this.id;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
// ### Implement hashCode for Immutable.js, since we implement `equals`
|
|
39
|
+
// https://immutable-js.com/docs/v4.0.0/ValueObject/#hashCode()
|
|
40
|
+
get hashCode() {
|
|
41
|
+
return 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
38
44
|
// ### Returns whether this object represents the same term as the other
|
|
39
45
|
equals(other) {
|
|
40
46
|
// If both terms were created by this library,
|