|
|
|
@ -7,6 +7,7 @@ import org.bson.types.ObjectId;
|
|
|
|
|
import java.time.LocalDate;
|
|
|
|
|
import java.util.Collections;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Set;
|
|
|
|
|
|
|
|
|
|
public class Pokemong extends GenericEntity {
|
|
|
|
|
public static final String COLLECTION_NAME = "pokemongs";
|
|
|
|
@ -25,7 +26,7 @@ public class Pokemong extends GenericEntity {
|
|
|
|
|
/**
|
|
|
|
|
* pokemong.moveSet: [{_id: ObjectId, name: String}]
|
|
|
|
|
*/
|
|
|
|
|
private List<PokemongMove> moveSet;
|
|
|
|
|
private Set<PokemongMove> moveSet;
|
|
|
|
|
|
|
|
|
|
public Pokemong() {}
|
|
|
|
|
|
|
|
|
@ -95,11 +96,11 @@ public class Pokemong extends GenericEntity {
|
|
|
|
|
this.types = types;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<PokemongMove> getMoveSet() {
|
|
|
|
|
return Collections.unmodifiableList(moveSet);
|
|
|
|
|
public Set<PokemongMove> getMoveSet() {
|
|
|
|
|
return Collections.unmodifiableSet(moveSet);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setMoveSet(List<PokemongMove> moveSet) {
|
|
|
|
|
public void setMoveSet(Set<PokemongMove> moveSet) {
|
|
|
|
|
this.moveSet = moveSet;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|