Module org.hsqldb
Package org.hsqldb.lib

## Interface Collection<E>

- All Known Subinterfaces:
    `List<E>`, `Set<E>`
  All Known Implementing Classes:
    `ArrayListIdentity`, `HashSet`, `HsqlArrayList`, `HsqlDeque`, `OrderedHashSet`

      public interface Collection<E>

  A basic collection of values.
  Since:
    1.7.2
  Author:
    Fred Toussi (fredt@users dot sourceforge.net)

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `add​(E o)` |
    `boolean` | `addAll​(Collection<? extends E> c)` |
    `void` | `clear()` |
    `boolean` | `contains​(java.lang.Object o)` |
    `boolean` | `isEmpty()` |
    `Iterator<E>` | `iterator()` |
    `boolean` | `remove​(E o)` |
    `int` | `size()` |

- - ### Method Detail

    - #### size

          int size()

    - #### isEmpty

          boolean isEmpty()

    - #### contains

          boolean contains​(java.lang.Object o)

    - #### iterator

          Iterator<E> iterator()

    - #### add

          boolean add​(E o)

    - #### remove

          boolean remove​(E o)

    - #### addAll

          boolean addAll​(Collection<? extends E> c)

    - #### clear

          void clear()