me.xhsun.guildwars2wrapper.model.util.itemDetail.Back 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;
import me.xhsun.guildwars2wrapper.model.util.itemDetail.subobject.InfixUpgrade;
import me.xhsun.guildwars2wrapper.model.util.itemDetail.subobject.InfusionSlot;
import java.util.List;
/**
* For more info on Back detail API go here
* Item detail for back item
*
* @author xhsun
* @see ItemDetail item details
* @since 2017-02-10
*/
public class Back extends ItemDetail {
public List getInfusionSlots() {
return infusion_slots;
}
public InfixUpgrade getInfixUpgrade() {
return infix_upgrade;
}
public int getSuffixID() {
return suffix_item_id;
}
public String getSecSuffixID() {
return secondary_suffix_item_id;
}
public List getStatChoice() {
return stat_choices;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Back back = (Back) o;
return suffix_item_id == back.suffix_item_id &&
(infusion_slots != null ? infusion_slots.equals(back.infusion_slots) : back.infusion_slots == null) &&
(infix_upgrade != null ? infix_upgrade.equals(back.infix_upgrade) : back.infix_upgrade == null) &&
(secondary_suffix_item_id != null ? secondary_suffix_item_id.equals(back.secondary_suffix_item_id) : back.secondary_suffix_item_id == null) &&
(stat_choices != null ? stat_choices.equals(back.stat_choices) : back.stat_choices == null);
}
@Override
public int hashCode() {
int result = infusion_slots != null ? infusion_slots.hashCode() : 0;
result = 31 * result + (infix_upgrade != null ? infix_upgrade.hashCode() : 0);
result = 31 * result + suffix_item_id;
result = 31 * result + (secondary_suffix_item_id != null ? secondary_suffix_item_id.hashCode() : 0);
result = 31 * result + (stat_choices != null ? stat_choices.hashCode() : 0);
return result;
}
@Override
public String toString() {
return "Back{" +
"infusion_slots=" + infusion_slots +
", infix_upgrade=" + infix_upgrade +
", suffix_item_id=" + suffix_item_id +
", secondary_suffix_item_id='" + secondary_suffix_item_id + '\'' +
", stat_choices=" + stat_choices +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy