Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Util.Structures
Interface IntList

All Known Implementing Classes:
  GEChromosome, StaticIntList

    public interface IntList

Interface for a list structure that stores ints

Author:
  Blip

Method Summary
`void` | `add(int item)` Add an int
`void` | `clear()` Clear structure
`int` | `get(int index)` Get int at index position
`IntIterator` | `iterator()` Get an iterator
`void` | `set(int index, int item)` Set item at index
`int` | `size()` Size of structure
`int[]` | `toArray()` Make an array view

Method Detail

### get

    int get(int index)

  Get int at index position

  Parameters:
    `index` - position to get element form
  Returns:
    element at index

### set

    void set(int index,
             int item)

  Set item at index

  Parameters:
    `index` - position to set
    `item` - item to set

### clear

    void clear()

  Clear structure

### toArray

    int[] toArray()

  Make an array view

  Returns:
    array view

### iterator

    IntIterator iterator()

  Get an iterator

  Returns:
    iterator

### add

    void add(int item)
             throws java.lang.IndexOutOfBoundsException

  Add an int

  Parameters:
    `item` - int to add
  Throws:
    `java.lang.IndexOutOfBoundsException` - list to small

### size

    int size()

  Size of structure

  Returns:
    size

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD