AI2 Component  (Version nb184)
PlayerListDelta.java
Go to the documentation of this file.
1 // -*- mode: java; c-basic-offset: 2; -*-
2 // Copyright 2009-2011 Google, All Rights reserved
3 // Copyright 2011-2012 MIT, All rights reserved
4 // Released under the Apache License, Version 2.0
5 // http://www.apache.org/licenses/LICENSE-2.0
6 
7 package com.google.appinventor.components.runtime.util;
8 
9 import java.util.ArrayList;
10 import java.util.List;
11 
17 public class PlayerListDelta {
18 
19  private List<String> playersRemoved;
20  private List<String> playersAdded;
21 
22  public static PlayerListDelta NO_CHANGE =
23  new PlayerListDelta(new ArrayList<String>(), new ArrayList<String>());
24 
32  public PlayerListDelta(List<String> playersRemoved, List<String> playersAdded) {
33  this.playersRemoved = playersRemoved;
34  this.playersAdded = playersAdded;
35  }
36 
42  public List<String> getPlayersAdded(){
43  return playersAdded;
44  }
45 
51  public List<String> getPlayersRemoved(){
52  return playersRemoved;
53  }
54 }
com.google.appinventor.components.runtime.util.PlayerListDelta
Definition: PlayerListDelta.java:17
com.google.appinventor.components.runtime.util.PlayerListDelta.getPlayersRemoved
List< String > getPlayersRemoved()
Definition: PlayerListDelta.java:51
com.google.appinventor.components.runtime.util.PlayerListDelta.getPlayersAdded
List< String > getPlayersAdded()
Definition: PlayerListDelta.java:42
com.google.appinventor.components.runtime.util.PlayerListDelta.NO_CHANGE
static PlayerListDelta NO_CHANGE
Definition: PlayerListDelta.java:22
com.google.appinventor.components.runtime.util.PlayerListDelta.PlayerListDelta
PlayerListDelta(List< String > playersRemoved, List< String > playersAdded)
Definition: PlayerListDelta.java:32