rails.game.move
Class RemoveFromList<E>

java.lang.Object
  extended by rails.game.move.Move
      extended by rails.game.move.RemoveFromList<E>

public class RemoveFromList<E>
extends Move

Author:
Erik Vos

Field Summary
protected  int index
           
protected  java.util.List<E> list
           
protected  java.lang.String listName
           
protected  E object
           
 
Fields inherited from class rails.game.move.Move
log, models
 
Constructor Summary
RemoveFromList(java.util.List<E> list, E object, java.lang.String listName)
           
RemoveFromList(java.util.List<E> list, E object, java.lang.String listName, ModelObject modelToUpdate)
           
 
Method Summary
 boolean execute()
           
 java.lang.String toString()
           
 boolean undo()
           
 
Methods inherited from class rails.game.move.Move
registerModelToUpdate, updateModels
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

list

protected java.util.List<E> list

object

protected E object

listName

protected java.lang.String listName

index

protected int index
Constructor Detail

RemoveFromList

public RemoveFromList(java.util.List<E> list,
                      E object,
                      java.lang.String listName,
                      ModelObject modelToUpdate)

RemoveFromList

public RemoveFromList(java.util.List<E> list,
                      E object,
                      java.lang.String listName)
Method Detail

execute

public boolean execute()
Specified by:
execute in class Move

undo

public boolean undo()
Specified by:
undo in class Move

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object