me.xhsun.guildwars2wrapper.model.util.itemDetail.Utility 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.comm.Type;
/**
* Item detail for Container, Gathering tools, Gizmo, Salvage kits
* Note: getChrages() for Slavage kits only
*
* @author xhsun
* @see ItemDetail item details
* @since 2017-02-10
*/
public class Utility extends ItemDetail {
public Type getType() {
return type;
}
public int getCharges() {
return charges;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Utility utility = (Utility) o;
return charges == utility.charges && type == utility.type;
}
@Override
public int hashCode() {
int result = type != null ? type.hashCode() : 0;
result = 31 * result + charges;
return result;
}
@Override
public String toString() {
return "Utility{" +
"type=" + type +
", charges=" + charges +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy