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

me.xhsun.guildwars2wrapper.model.util.itemDetail.subobject.Buff Maven / Gradle / Ivy

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