org.cyclonedx.model.Diff Maven / Gradle / Ivy
/*
* This file is part of CycloneDX Core (Java).
*
* 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
* Copyright (c) OWASP Foundation. All Rights Reserved.
*/
package org.cyclonedx.model;
import java.util.Objects;
public class Diff {
private AttachmentText text;
private String url;
public AttachmentText getText() {
return text;
}
public void setText(final AttachmentText text) {
this.text = text;
}
public String getUrl() {
return url;
}
public void setUrl(final String url) {
this.url = url;
}
@Override
public boolean equals(final Object object) {
if (this == object) {
return true;
}
if (!(object instanceof Diff)) {
return false;
}
Diff diff = (Diff) object;
return Objects.equals(text, diff.text) && Objects.equals(url, diff.url);
}
@Override
public int hashCode() {
return Objects.hash(text, url);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy