Back to project page DistributedMemory.
The source code is released under:
Apache License
If you think the Android project DistributedMemory listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.faudroids.distributedmemory.core; // w w w. ja va 2 s . co m import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; final class Evaluation { private final boolean cardsMatched; private final boolean continueGame; private final int nextPlayerId; private final List<Integer> playerPoints; // mapped to index of players list @JsonCreator public Evaluation( @JsonProperty("cardsMatched") boolean cardsMatched, @JsonProperty("continueGame") boolean continueGame, @JsonProperty("nextPlayerId") int nextPlayerId, @JsonProperty("playerPoints") List<Integer> playerPoints) { this.cardsMatched = cardsMatched; this.continueGame = continueGame; this.nextPlayerId = nextPlayerId; this.playerPoints = playerPoints; } public boolean getCardsMatched() { return cardsMatched; } public boolean getContinueGame() { return continueGame; } public int getNextPlayerId() { return nextPlayerId; } public List<Integer> getPlayerPoints() { return playerPoints; } }