MacroDef.NestedSequential (Apache Ant API)
Description: declaration: package: org.apache.tools.ant.taskdefs, class: MacroDef, class: NestedSequential

# Class MacroDef.NestedSequential

java.lang.Object
org.apache.tools.ant.taskdefs.MacroDef.NestedSequential

All Implemented Interfaces:
  `TaskContainer`

Enclosing class:
  `MacroDef`

public static class MacroDef.NestedSequential extends Object implements TaskContainer
The class corresponding to the sequential nested element. This is a simple task container.

Since:
  Ant 1.6

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NestedSequential()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addTask(Task task)`
  Add a task or type to the container.
  `List<Task>`
  `getNested()`
  `boolean`
  `similar(MacroDef.NestedSequential other)`
  A compare function to compare this with another NestedSequential.

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### NestedSequential

    public NestedSequential()

- ## Method Details

  - ### addTask

    public void addTask(Task task)
    Add a task or type to the container.
    Specified by:
      `addTask` in interface `TaskContainer`
    Parameters:
      `task` - an unknown element.

  - ### getNested

    public List<Task> getNested()
    Returns:
      the list of unknown elements

  - ### similar

    public boolean similar(MacroDef.NestedSequential other)
    A compare function to compare this with another NestedSequential. It calls similar on the nested unknown elements.
    Parameters:
      `other` - the nested sequential to compare with.
    Returns:
      true if they are similar, false otherwise