me.xhsun.guildwars2wrapper.model.util.itemDetail.subobject.InfixAttribute 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;
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