
com.webapp.utils.thrift.ThriftEnum Maven / Gradle / Ivy
The newest version!
/**
*
*/
package com.webapp.utils.thrift;
import java.util.List;
public class ThriftEnum {
private String name;
private List fields;
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the fields
*/
public List getFields() {
return fields;
}
/**
* @param fields the fields to set
*/
public void setFields(List fields) {
this.fields = fields;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((name == null) ? 0 : name.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
ThriftEnum other = (ThriftEnum) obj;
if (name == null) {
if (other.name != null)
return false;
} else if (!name.equals(other.name))
return false;
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy