code: /**
   * This file is part of Eclipse Steady.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * 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.
   *
   * SPDX-License-Identifier: Apache-2.0
   * SPDX-FileCopyrightText: Copyright (c) 2018-2020 SAP SE or an SAP affiliate company and Eclipse Steady contributors
   */
  /*
   * To change this license header, choose License Headers in Project Properties.
   * To change this template file, choose Tools | Templates
   * and open the template in the editor.
   */
  package org.eclipse.steady.patcheval.representation;
  
  /**
   * Represents the intersection between distances to vulnerable and to fixed (for a certain construct) among different libraries.
   */
  public class Intersection2 {
    ArtifactResult2 from, to;
    // int occurrences;
    Double confidence;
  
    /**
     * <p>Constructor for Intersection2.</p>
     *
     * @param from a {@link org.eclipse.steady.patcheval.representation.ArtifactResult2} object.
     * @param to a {@link org.eclipse.steady.patcheval.representation.ArtifactResult2} object.
     * @param o a int.
     * @param d a {@link java.lang.Double} object.
     */
    public Intersection2(ArtifactResult2 from, ArtifactResult2 to, int o, Double d) {
      this.from = from;
      this.to = to;
      // this.occurrences = o;
      this.confidence = d;
    }
  
    /**
     * <p>Getter for the field <code>from</code>.</p>
     *
     * @return a {@link org.eclipse.steady.patcheval.representation.ArtifactResult2} object.
     */
    public ArtifactResult2 getFrom() {
      return from;
    }
  
    /**
     * <p>Setter for the field <code>from</code>.</p>
     *
     * @param from a {@link org.eclipse.steady.patcheval.representation.ArtifactResult2} object.
     */
    public void setFrom(ArtifactResult2 from) {
      this.from = from;
    }
  
    /**
     * <p>Getter for the field <code>to</code>.</p>
     *
     * @return a {@link org.eclipse.steady.patcheval.representation.ArtifactResult2} object.
     */
    public ArtifactResult2 getTo() {
      return to;
    }
  
    /**
     * <p>Setter for the field <code>to</code>.</p>
     *
     * @param to a {@link org.eclipse.steady.patcheval.representation.ArtifactResult2} object.
     */
    public void setTo(ArtifactResult2 to) {
      this.to = to;
    }
  
    /**
     * <p>Getter for the field <code>confidence</code>.</p>
     *
     * @return a {@link java.lang.Double} object.
     */
    public Double getConfidence() {
      return confidence;
    }
  
    /**
     * <p>Setter for the field <code>confidence</code>.</p>
     *
     * @param confidence a {@link java.lang.Double} object.
     */
    public void setConfidence(Double confidence) {
      this.confidence = confidence;
    }
  }
  