//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\ // PLEASE DO NOT EDIT WITHOUT THE EXPLICIT CONSENT OF THE AUTHOR! \\ //\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\ using System; namespace Ilog.Language.Util { /** * This class is meant to be subclassed by the class of objects * identified by an index in an array collection. * * @version Last modified on Tue May 31 07:46:31 2005 by hak * @author Hassan Aït-Kaci * @copyright © 2000 ILOG, S.A. */ public class ArrayIndexed : Indexed { /** * Constructs an ArrayIndexed object with the specified array * as the reference collection. */ public ArrayIndexed (Object[] array) { collection = array; } /** * Constructs an ArrayIndexed object with the specified array * as the reference collection and the specified index. */ public ArrayIndexed (Object[] array, int index) { collection = array; collection[this.index = index] = this; } } }