Interface MutableActorHandler

    • Method Detail

      • add

        String add​(Actor actor)
        Inserts the actor at the end.
        Parameters:
        actor - the actor to insert
        Returns:
        null if successful, otherwise error message
      • add

        String add​(int index,
                   Actor actor)
        Inserts the actor at the given position.
        Parameters:
        index - the position
        actor - the actor to insert
        Returns:
        null if successful, otherwise error message
      • remove

        Actor remove​(int index)
        Removes the actor at the given position and returns the removed object.
        Parameters:
        index - the position
        Returns:
        the removed actor
      • removeAll

        void removeAll()
        Removes all actors.