KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfun > parsec > ArrayFactory


1 /*****************************************************************************
2  * Copyright (C) Zephyr Business Solutions Corp. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  *****************************************************************************/

8 /*
9  * Created on Nov 19, 2004
10  *
11  * Author Ben Yu
12  */

13 package jfun.parsec;
14
15 /**
16  * A factory to create arrays.
17  * @author Ben Yu
18  *
19  * Nov 19, 2004
20  */

21 public interface ArrayFactory<T> extends java.io.Serializable JavaDoc{
22   /**
23    * Create an array of length len.
24    * @param len the array length.
25    * @return the array.
26    */

27   T[] createArray(int len);
28 }
29
Popular Tags