Yes.  They are generated.



On Sun, Apr 14, 2013 at 9:08 PM, mlw5415 <[email protected]> wrote:

> **
> These classes are generated at compile time?
>
> I download sources '
> http://svn.apache.org/repos/asf/mahout/tags/mahout-0.7/' and use 'mvn
> compile' but got errors.
> I can image that 'Abstract*.java' can be generated, but the other class,
> such as 'ByteArrayList.java' has lot of  complex logic could not be
> generated,
>
> The following code can be generated?
>    public void beforeInsert(int index, byte element) {
>     // overridden for performance only.
>     if (size == index) {
>       add(element);
>       return;
>     }
>     if (index > size || index < 0) {
>
>       throw new IndexOutOfBoundsException("Index: " + index + ", Size: " + 
> size);
>     }
>     ensureCapacity(size + 1);
>     System.arraycopy(elements, index, elements, index + 1, size - index);
>     elements[index] = element;
>     size++;
>   }
>
> ------------------------------
>
>  *From:* Ted Dunning <[email protected]>
> *Date:* 2013-04-15 11:55
> *To:* [email protected]; mlw5415 <[email protected]>
> *Subject:* Re: does mahout source repo miss lots of file?
>  These classes are generated at compile time.
>
>
> On Sun, Apr 14, 2013 at 8:35 PM, mlw5415 <[email protected]> wrote:
>
>> mahout-0.7 tag, such as follow url:
>>
>> http://svn.apache.org/repos/asf/mahout/tags/mahout-0.7/math/src/main/java/org/apache/mahout/math/list
>> we only see 4 class:
>> AbstractList.java
>> AbstractObjectList.java
>> ObjectArrayList.java
>> SimpleLongArrayList.java
>>
>> but in the maven repo, i unzip the source jar file, and find lot of
>> missing file as bellow:
>> AbstractByteList.java
>> AbstractCharList.java
>> AbstractDoubleList.java
>> AbstractFloatList.java
>> AbstractIntList.java
>> AbstractLongList.java
>> AbstractShortList.java
>> ByteArrayList.java
>> CharArrayList.java
>> DoubleArrayList.java
>> FloatArrayList.java
>> IntArrayList.java
>> LongArrayList.java
>> package.html
>> ShortArrayList.java
>
>
>

Reply via email to