org.apache.nifi.flow.Bundle Maven / Gradle / Ivy
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
package org.apache.nifi.flow;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
public class Bundle {
private String group;
private String artifact;
private String version;
public Bundle() {
}
public Bundle(final String group, final String artifact, final String version) {
this.group = group;
this.artifact = artifact;
this.version = version;
}
@ApiModelProperty("The group of the bundle")
public String getGroup() {
return group;
}
public void setGroup(String group) {
this.group = group;
}
@ApiModelProperty("The artifact of the bundle")
public String getArtifact() {
return artifact;
}
public void setArtifact(String artifact) {
this.artifact = artifact;
}
@ApiModelProperty("The version of the bundle")
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
final Bundle other = (Bundle) obj;
return Objects.equals(group, other.group) && Objects.equals(artifact, other.artifact) && Objects.equals(version, other.version);
}
@Override
public int hashCode() {
return Objects.hash(group, artifact, version);
}
@Override
public String toString() {
return "Bundle[" +
"group='" + group + "'" +
", artifact='" + artifact + "'" +
", version='" + version + "'" +
"]";
}
}