Skip to content

Commit ffb9a37

Browse files
committed
docs
Signed-off-by: christian.lutnik <christian.lutnik@dynatrace.com>
1 parent 19db3eb commit ffb9a37

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/main/java/dev/openfeature/sdk/EvaluationContext.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ public interface EvaluationContext extends Structure {
2424
*/
2525
EvaluationContext merge(EvaluationContext overridingContext);
2626

27+
/**
28+
* If the other object is an EvaluationContext, this method compares the results of asUnmodifiableMap() for
29+
* equality. Otherwise, it returns false.
30+
* <br>
31+
* <br>
32+
* Implementations of EvaluationContext are encouraged to delegate their equals() method to this method, or provide
33+
* a more optimized check with the same semantics.
34+
*
35+
* @param other the object to compare to
36+
* @return true if the other object is an EvaluationContext and has the same map representation, false otherwise
37+
*/
2738
default boolean isEqualTo(Object other) {
2839
if (other == null) {
2940
return false;

0 commit comments

Comments
 (0)