JDK 1.6 API Reference for Java Specifications
|
*****JDK 1.6 API Reference for Java*****- --Reference of the java SE API for java 6; - --Java Platform, Standard Edition (Java SE) lets you develop...
*****JDK 1.6 API Reference for Java*****- --Reference of the java SE API for java 6; - --Java Platform, Standard Edition (Java SE) lets you develop and deploy Java applications on desktops and servers, as well as in today's demanding embedded environments. - --Java offers the rich user interface, performance, versatility, portability, and security that todays applications require. ---This app provides All the Java Development Kit 1.6 API for java developer reference. Java 1.6 Reference and developer documentation.==========================for examplesubListpublic ListE subList(int fromIndex, int toIndex)Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive. (If fromIndex and toIndex are equal, the returned list is empty.) The returned list is backed by this list, so non-structural changes in the returned list are reflected in this list, and vice-versa. The returned list supports all of the optional list operations supported by this list.This method eliminates the need for explicit range removeRangeprotected void removeRange(int fromIndex, int toIndex)Removes from this list all of the elements whose index is between fromIndex, inclusive, and toIndex, exclusive. Shifts any succeeding elements to the left (reduces their index). This call shortens the list by (toIndex - fromIndex) elements. (If toIndex==fromIndex, this operation has no effect.)This method is called by the clear operation on this list and its subLists. Overriding this method to take advantage of the internals of the list implementation can substantially improve the performance of the clear operation on this list and its subLists.This implementation gets a list iterator positioned before fromIndex, and repeatedly calls ListIterator.next followed by ListIterator.remove until the entire range has been removed. Note: if ListIterator.remove requires linear time, this implementation requires quadratic time.Parameters:
Download