// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.container.http;

import com.yahoo.component.ComponentSpecification;
import com.yahoo.vespa.model.container.component.BindingPattern;

/**
 * @author bjorncs
 */
public class FilterBinding {

    private final ComponentSpecification filterId;
    private final BindingPattern binding;

    private FilterBinding(ComponentSpecification filterId, BindingPattern binding) {
        this.filterId = filterId;
        this.binding = binding;
    }

    public static FilterBinding create(ComponentSpecification filterId, BindingPattern binding) {
        return new FilterBinding(filterId, binding);
    }

    public ComponentSpecification filterId() {
        return filterId;
    }

    public BindingPattern binding() {
        return binding;
    }

}

@@ -270,16 +270,43 @@
 ttern;%0A%0A
+import java.util.Objects;%0A%0A
 /**%0A * @
@@ -912,10 +912,429 @@
 %0A    %7D%0A%0A
+    @Override%0A    public boolean equals(Object o) %7B%0A        if (this == o) return true;%0A        if (o == null %7C%7C getClass() != o.getClass()) return false;%0A        FilterBinding that = (FilterBinding) o;%0A        return Objects.equals(filterId, that.filterId) &&%0A                Objects.equals(binding, that.binding);%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        return Objects.hash(filterId, binding);%0A    %7D%0A
 %7D%0A

Implement equals/hashCode for FilterBinding