File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/main/java/dev/openfeature/sdk Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments