diff options
| author | Ben Culkin <scorpress@gmail.com> | 2023-11-08 19:45:47 -0500 |
|---|---|---|
| committer | Ben Culkin <scorpress@gmail.com> | 2023-11-08 19:45:47 -0500 |
| commit | 81b2acf9e1294d28ac61d6915c6162dc0008a00c (patch) | |
| tree | 2b09770dfa23d8d238bce6c4ff267d422a03dffa /src/main/java/bjc/data/Contexts.java | |
| parent | 0a3946e579a0c358a13aa1621fecc3e220cd6e38 (diff) | |
| parent | cbf4dda5cc09dc6d2c3c10329e7941923cc04e2e (diff) | |
Merge branch 'trunk' of git@ashardalon.com:esodata.git into trunk
Diffstat (limited to 'src/main/java/bjc/data/Contexts.java')
| -rw-r--r-- | src/main/java/bjc/data/Contexts.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/bjc/data/Contexts.java b/src/main/java/bjc/data/Contexts.java index 699a450..7de1b5f 100644 --- a/src/main/java/bjc/data/Contexts.java +++ b/src/main/java/bjc/data/Contexts.java @@ -117,4 +117,21 @@ class ContextImpl implements Context { public Context getParent() { return parent; } + + @Override + public int hashCode() { + return Objects.hash(objects, parent); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + ContextImpl other = (ContextImpl) obj; + return Objects.equals(objects, other.objects) && Objects.equals(parent, other.parent); + } }
\ No newline at end of file |
