alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

package p;
import java.util.*;
class A {
	/**
	 * @param from 1st param of {@link A#getList(int, long) me}
	 * @see getList
	 * @see #getList(int, long)
	 * @see #getList(int from, tho long)
	 * @see #getList(int from, long tho)
	 * @param to
	 * @return list
	 * @param bogus{@link #getList}
	 */
	public ArrayList getList(int from, long to) {
		return new ArrayList((int)to-from);
	}
	
	/** start here
	 * Doesn't call {@linkplain #getList(int, long)}
	 *
	 * @see getList
	 * @see #getList
	 * @see A#getList(int, long)
	 * @see A#getList(int, long, Object[][])
	 * @see A#getList (
	 *   int fro,long tho
	 * )
	 * @see #getList(..)
	 * @see p.A#getList(int, int, boolean)
	 * @see <a href="spec.html#section">Java Spec
	 * @see A# getList(int, long)
	 */
	public ArrayList getList(int from, long to, Object[] arr[]) {
		return new ArrayList(Arrays.asList(arr).subList(from, (int)to));
	}
}
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.