org.inxar.syntacs.util
Interface IntArray

All Superinterfaces:
Cloneable
All Known Subinterfaces:
IntList
All Known Implementing Classes:
EmptyIntSet, ArrayIntArray, SingletonIntSet

public interface IntArray
extends Cloneable

Abstraction for an immutable array of integers.


Method Summary
 int at(int index)
          Returns the value at the given index.
 Object clone()
          Clones the IntArray.
 int length()
          Returns the length of the array.
 int[] toArray()
          Returns a new primitive-typed copy of the array.
 

Method Detail

at

public int at(int index)
Returns the value at the given index.

length

public int length()
Returns the length of the array.

toArray

public int[] toArray()
Returns a new primitive-typed copy of the array.

clone

public Object clone()
             throws CloneNotSupportedException
Clones the IntArray.