Skip to content

Commit

Permalink
Add comment on Map.equals.
Browse files Browse the repository at this point in the history
Signed-off-by: currantw <[email protected]>
  • Loading branch information
currantw committed Feb 1, 2025
1 parent ceac19b commit a9f84da
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ public boolean equal(ExprValue other) {
return false;
}

/**
* {@link Map#equals} returns true if the two maps' entry sets are equal, and works properly
* across all implementation of the {@link Map} interface. See {@link
* https://docs.oracle.com/javase/8/docs/api/java/util/Map.html#equals-java.lang.Object-} for
* more details.
*/
return valueMap.equals(other.tupleValue());
}

Expand Down

0 comments on commit a9f84da

Please sign in to comment.