Package: java.awt

## Class Container

- - ### Methods Summary

    Methods
    Return type | Name and parameters
    --- | ---
    `void` | `clear()` Removes all components from the Container.
    `Component` | `getAt(int index)` Support the subscript operator for Container.
    `Iterator` | `iterator()` Returns an Iterator which traverses the Container one Component at a time.
    `Container` | `leftShift(Component c)` Overloads the left shift operator to provide an easy way to add components to a Container.
    `int` | `size()` Provide the standard Groovy `size()` method for `Container`.

  - #### Methods inherited from class java.lang.Object

    `addShutdownHook`, `any`, `any`, `asBoolean`, `asType`, `collect`, `collect`, `collect`, `contains`, `count`, `dump`, `each`, `eachWithIndex`, `equals`, `every`, `every`, `find`, `find`, `findAll`, `findAll`, `findIndexOf`, `findIndexOf`, `findIndexValues`, `findIndexValues`, `findLastIndexOf`, `findLastIndexOf`, `findResult`, `findResult`, `flatten`, `getAt`, `getMetaClass`, `getMetaPropertyValues`, `getProperties`, `grep`, `grep`, `groupBy`, `groupBy`, `hasProperty`, `identity`, `inject`, `inject`, `inspect`, `invokeMethod`, `is`, `isCase`, `iterator`, `join`, `metaClass`, `print`, `print`, `printf`, `printf`, `println`, `println`, `println`, `putAt`, `respondsTo`, `respondsTo`, `setMetaClass`, `size`, `split`, `sprintf`, `sprintf`, `sum`, `sum`, `tap`, `toArrayString`, `toSpreadMap`, `toString`, `use`, `use`, `use`, `with`, `with`, `withTraits`

- - ### Methods Detail

    - #### public void clear()

      Removes all components from the Container.

      Since:
        1.6.4

    - #### public Component getAt(int index)

      Support the subscript operator for Container.

      Parameters:
        `index` - the index of the Component to get
      Returns:
        the component at the given index
      Since:
        1.6.4

    - #### public Iterator iterator()

      Returns an Iterator which traverses the Container one Component at a time.

      Returns:
        an Iterator for a Container
      Since:
        1.6.4

    - #### public Container leftShift(Component c)

      Overloads the left shift operator to provide an easy way to add components to a Container.

      Parameters:
        `c` - a Component to be added to the container.
      Returns:
        same container, after the value was added to it.
      Since:
        1.6.4

    - #### public int size()

      Provide the standard Groovy `size()` method for `Container`.

      Returns:
        the component count of the container
      Since:
        1.6.4