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

me.xhsun.guildwars2wrapper.model.v2.character.CharacterSpecialization Maven / Gradle / Ivy

There is a newer version: 1.3.2
Show newest version
package me.xhsun.guildwars2wrapper.model.v2.character;

import me.xhsun.guildwars2wrapper.model.identifiable.IdentifiableInt;

import java.util.List;

/**
 * For more info on character specializations API go here
* Model class for character specialization * * @author xhsun * @since 2017-06-07 */ public class CharacterSpecialization { private Specialization specializations; public List getPve() { return specializations.pve; } public List getPvp() { return specializations.pvp; } public List getWvw() { return specializations.wvw; } public class Specialization { private List pve, pvp, wvw; public List getPve() { return pve; } public List getPvp() { return pvp; } public List getWvw() { return wvw; } } public class Trait extends IdentifiableInt { private List traits; /** * @return list of selected traits id */ public List getTraits() { return traits; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Trait trait = (Trait) o; return getId() == trait.getId() && (traits != null ? traits.equals(trait.traits) : trait.traits == null); } @Override public int hashCode() { int result = getId(); result = 31 * result + (traits != null ? traits.hashCode() : 0); return result; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy