
com.mangofactory.swagger.scanners.ResourceGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-springmvc Show documentation
Show all versions of swagger-springmvc Show documentation
This project integrates swagger with the Spring Web MVC framework
package com.mangofactory.swagger.scanners;
import com.google.common.base.Objects;
import org.apache.commons.lang.builder.EqualsBuilder;
public class ResourceGroup {
private String groupName;
private Integer position = 0;
public ResourceGroup(String groupName) {
this.groupName = groupName;
}
public ResourceGroup(String groupName, Integer position) {
this.groupName = groupName;
this.position = position;
}
public String getGroupName() {
return groupName;
}
public void setPosition(Integer position) {
this.position = position;
}
public Integer getPosition() {
return position;
}
@Override
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (obj == this) {
return true;
}
if (obj.getClass() != getClass()) {
return false;
}
ResourceGroup rhs = (ResourceGroup) obj;
return new EqualsBuilder()
.append(this.groupName, rhs.groupName)
.isEquals();
}
@Override
public int hashCode() {
return Objects.hashCode(groupName);
}
@Override
public String toString() {
return "ResourceGroup{" +
"groupName='" + groupName + '\'' +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy