Class ActionListImpl<A extends Action>

  • All Implemented Interfaces:
    java.io.Serializable, ActionList<A>

    public class ActionListImpl<A extends Action>
    extends java.lang.Object
    implements ActionList<A>
    Author:
    Nick Smith
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ActionListImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAction​(int index, A action)
      Add an action to the list at the index specified
      void addAction​(A action)
      Add an action to the end of the list
      A getAction​(int index)
      Get an action at a given index
      java.util.List<A> getActions()
      Get list containing the actions in their current order
      boolean hasActions()
      Indicates whether there are any actions
      int indexOfAction​(A action)
      Gets the index of an action
      void removeAction​(A action)
      Remove an action from the list
      void removeAllActions()
      Remove all actions from the list
      void setAction​(int index, A action)
      Replace the action at the specfied index with the passed action.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait