me.xhsun.guildwars2wrapper.model.util.itemDetail.subobject.Buff Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gw2wrapper Show documentation
Show all versions of gw2wrapper Show documentation
Guild Wars 2 API wrapper for Android
package me.xhsun.guildwars2wrapper.model.util.itemDetail.subobject;
/**
* Infix Buff model class
*
* @author xhsun
* @see InfixUpgrade infix upgrade
* @since 2017-02-10
*/
public class Buff {
private int skill_id;
private String description;
public String getDescription() {
return description;
}
public int getSkillID() {
return skill_id;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Buff buff = (Buff) o;
return (skill_id == buff.skill_id) &&
(description != null ? description.equals(buff.description) : buff.description == null);
}
@Override
public int hashCode() {
int result = skill_id;
result = 31 * result + (description != null ? description.hashCode() : 0);
return result;
}
@Override
public String toString() {
return "Buff{" +
"skill_id=" + skill_id +
", description='" + description + '\'' +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy