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

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

There is a newer version: 1.3.2
Show newest version
package me.xhsun.guildwars2wrapper.model.util.itemDetail.subobject;

import me.xhsun.guildwars2wrapper.model.util.itemDetail.ItemDetail;

/**
 * Infix attribute model class
 *
 * @author xhsun
 * @see InfixUpgrade infix upgrade
 * @since 2017-02-10
 */

public class InfixAttribute {
	private ItemDetail.Attribute attribute;
	private int modifier;

	public ItemDetail.Attribute getAttribute() {
		return attribute;
	}

	public int getModifier() {
		return modifier;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;

		InfixAttribute that = (InfixAttribute) o;

		return modifier == that.modifier && attribute == that.attribute;
	}

	@Override
	public int hashCode() {
		int result = attribute != null ? attribute.hashCode() : 0;
		result = 31 * result + modifier;
		return result;
	}

	@Override
	public String toString() {
		return "InfixAttribute{" +
				"attribute=" + attribute +
				", modifier=" + modifier +
				'}';
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy