/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.appium.java_client.imagecomparison;

public class OccurrenceMatchingOptions extends BaseComparisonOptions<OccurrenceMatchingOptions> {
}

@@ -719,104 +719,871 @@
 n;%0A%0A
-public class OccurrenceMatchingOptions extends BaseComparisonOptions%3COccurrenceMatchingOptions%3E %7B
+import static java.util.Optional.ofNullable;%0A%0Aimport com.google.common.collect.ImmutableMap;%0A%0Aimport java.util.Map;%0A%0Apublic class OccurrenceMatchingOptions extends BaseComparisonOptions%3COccurrenceMatchingOptions%3E %7B%0A    private Double threshold;%0A%0A    /**%0A     * At what normalized threshold to reject an occurrence.%0A     *%0A     * @param threshold value in range 0..1. 0.5 is the default value.%0A     * @return self instance for chaining.%0A     */%0A    public OccurrenceMatchingOptions withThreshold(double threshold) %7B%0A        this.threshold = threshold;%0A        return this;%0A    %7D%0A%0A    @Override%0A    public Map%3CString, Object%3E build() %7B%0A        final ImmutableMap.Builder%3CString, Object%3E builder = ImmutableMap.builder();%0A        builder.putAll(super.build());%0A        ofNullable(threshold).map(x -%3E builder.put(%22threshold%22, x));%0A        return builder.build();%0A    %7D
 %0A%7D%0A

Add threshold argument to OccurrenceMatchingOptions (#1060)