override fun equals()

in alerting/src/main/kotlin/org/opensearch/alerting/aggregation/bucketselectorext/BucketSelectorExtAggregationBuilder.kt [118:128]


    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (other == null || javaClass != other.javaClass) return false
        if (!super.equals(other)) return false
        val otherCast = other as BucketSelectorExtAggregationBuilder
        return (
            bucketsPathsMap == otherCast.bucketsPathsMap &&
                script == otherCast.script &&
                gapPolicy == otherCast.gapPolicy
            )
    }