List knows whether it is last list in the history
authorMartin Rexa <martin.rexa@centrum.cz>
Wed, 13 Jan 2010 14:35:28 +0100
changeset 211f861f40cabc3
parent 210 92d4dbc49d7e
child 212 9dc1915485ba
List knows whether it is last list in the history
statistics/src/main/java/cz/xelfi/quoridor/statistics/EloList.java
     1.1 --- a/statistics/src/main/java/cz/xelfi/quoridor/statistics/EloList.java	Wed Jan 13 14:35:01 2010 +0100
     1.2 +++ b/statistics/src/main/java/cz/xelfi/quoridor/statistics/EloList.java	Wed Jan 13 14:35:28 2010 +0100
     1.3 @@ -53,17 +53,20 @@
     1.4      Map<String, Double> players;
     1.5      Map<String, Integer> playerGames;
     1.6      long modified = 0;
     1.7 +    boolean originalList;
     1.8  
     1.9  
    1.10      public EloList () {
    1.11          players = new HashMap<String, Double>();
    1.12          playerGames = new HashMap<String, Integer>();
    1.13 +        originalList = true;
    1.14      }
    1.15  
    1.16      public EloList(EloList src){
    1.17          this.players = new HashMap<String, Double>(src.players);
    1.18          this.playerGames = new HashMap<String, Integer>(src.playerGames);
    1.19          this.modified = src.modified;
    1.20 +        originalList = false;
    1.21      }
    1.22  
    1.23      @XmlElementWrapper(name="elolist")