All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mangofactory.swagger.scanners.ResourceGroup Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
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