# Class OpenList

java.lang.Object
com.treemap.swing.originalfastvoronoi.datastructure.OpenList

public class OpenList extends Object
Direct accessable array list for faster iteration.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `Site[]`
  `array`
  `int`
  `size`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `OpenList()`
  `OpenList(int capacity)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `add(Site e)`
  `void`
  `clear()`
  `OpenList`
  `cloneWithZeroWeights()`
  Clones the list of sites but with zero weights
  `Site`
  `get(int index)`
  `boolean`
  `isEmpty()`
  `void`
  `permutate()`
  `Site`
  `set(int index, Site element)`

  ### Methods inherited from class Object

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

- ## Field Details

  - ### array

    public Site[] array

  - ### size

    public int size

- ## Constructor Details

  - ### OpenList

    public OpenList()

  - ### OpenList

    public OpenList(int capacity)

- ## Method Details

  - ### add

    public boolean add(Site e)

  - ### clear

    public void clear()

  - ### get

    public Site get(int index)

  - ### isEmpty

    public boolean isEmpty()

  - ### set

    public Site set(int index, Site element)

  - ### cloneWithZeroWeights

    public OpenList cloneWithZeroWeights()
    Clones the list of sites but with zero weights

  - ### permutate

    public void permutate()