15.77/8.95 YES 15.77/8.97 proof of /export/starexec/sandbox2/benchmark/theBenchmark.jar 15.77/8.97 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 15.77/8.97 15.77/8.97 15.77/8.97 termination of the given Bare JBC problem could be proven: 15.77/8.97 15.77/8.97 (0) Bare JBC problem 15.77/8.97 (1) BareJBCToJBCProof [EQUIVALENT, 95 ms] 15.77/8.97 (2) JBC problem 15.77/8.97 (3) JBCToGraph [EQUIVALENT, 1615 ms] 15.77/8.97 (4) JBCTerminationGraph 15.77/8.97 (5) TerminationGraphToSCCProof [SOUND, 0 ms] 15.77/8.97 (6) JBCTerminationSCC 15.77/8.97 (7) SCCToIRSProof [SOUND, 409 ms] 15.77/8.97 (8) IRSwT 15.77/8.97 (9) IRSFormatTransformerProof [EQUIVALENT, 0 ms] 15.77/8.97 (10) IRSwT 15.77/8.97 (11) IRSwTTerminationDigraphProof [EQUIVALENT, 128 ms] 15.77/8.97 (12) IRSwT 15.77/8.97 (13) IntTRSCompressionProof [EQUIVALENT, 0 ms] 15.77/8.97 (14) IRSwT 15.77/8.97 (15) TempFilterProof [SOUND, 107 ms] 15.77/8.97 (16) IntTRS 15.77/8.97 (17) RankingReductionPairProof [EQUIVALENT, 58 ms] 15.77/8.97 (18) YES 15.77/8.97 15.77/8.97 15.77/8.97 ---------------------------------------- 15.77/8.97 15.77/8.97 (0) 15.77/8.97 Obligation: 15.77/8.97 need to prove termination of the following program: 15.77/8.97 /* 15.77/8.97 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 15.77/8.97 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 15.77/8.97 * 15.77/8.97 * This code is free software; you can redistribute it and/or modify it 15.77/8.97 * under the terms of the GNU General Public License version 2 only, as 15.77/8.97 * published by the Free Software Foundation. Sun designates this 15.77/8.97 * particular file as subject to the "Classpath" exception as provided 15.77/8.97 * by Sun in the LICENSE file that accompanied this code. 15.77/8.97 * 15.77/8.97 * This code is distributed in the hope that it will be useful, but WITHOUT 15.77/8.97 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 15.77/8.97 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15.77/8.97 * version 2 for more details (a copy is included in the LICENSE file that 15.77/8.97 * accompanied this code). 15.77/8.97 * 15.77/8.97 * You should have received a copy of the GNU General Public License version 15.77/8.97 * 2 along with this work; if not, write to the Free Software Foundation, 15.77/8.97 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 15.77/8.97 * 15.77/8.97 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 15.77/8.97 * CA 95054 USA or visit www.sun.com if you need additional information or 15.77/8.97 * have any questions. 15.77/8.97 */ 15.77/8.97 15.77/8.97 package javaUtilEx; 15.77/8.97 15.77/8.97 /** 15.77/8.97 * This class provides a skeletal implementation of the Collection 15.77/8.97 * interface, to minimize the effort required to implement this interface.

15.77/8.97 * 15.77/8.97 * To implement an unmodifiable collection, the programmer needs only to 15.77/8.97 * extend this class and provide implementations for the iterator and 15.77/8.97 * size methods. (The iterator returned by the iterator 15.77/8.97 * method must implement hasNext and next.)

15.77/8.97 * 15.77/8.97 * To implement a modifiable collection, the programmer must additionally 15.77/8.97 * override this class's add method (which otherwise throws an 15.77/8.97 * UnsupportedOperationException), and the iterator returned by the 15.77/8.97 * iterator method must additionally implement its remove 15.77/8.97 * method.

15.77/8.97 * 15.77/8.97 * The programmer should generally provide a void (no argument) and 15.77/8.97 * Collection constructor, as per the recommendation in the 15.77/8.97 * Collection interface specification.

15.77/8.97 * 15.77/8.97 * The documentation for each non-abstract method in this class describes its 15.77/8.97 * implementation in detail. Each of these methods may be overridden if 15.77/8.97 * the collection being implemented admits a more efficient implementation.

15.77/8.97 * 15.77/8.97 * This class is a member of the 15.77/8.97 * 15.77/8.97 * Java Collections Framework. 15.77/8.97 * 15.77/8.97 * @author Josh Bloch 15.77/8.97 * @author Neal Gafter 15.77/8.97 * @see Collection 15.77/8.97 * @since 1.2 15.77/8.97 */ 15.77/8.97 15.77/8.97 public abstract class AbstractCollection implements Collection { 15.77/8.97 /** 15.77/8.97 * Sole constructor. (For invocation by subclass constructors, typically 15.77/8.97 * implicit.) 15.77/8.97 */ 15.77/8.97 protected AbstractCollection() { 15.77/8.97 } 15.77/8.97 15.77/8.97 // Query Operations 15.77/8.97 15.77/8.97 /** 15.77/8.97 * Returns an iterator over the elements contained in this collection. 15.77/8.97 * 15.77/8.97 * @return an iterator over the elements contained in this collection 15.77/8.97 */ 15.77/8.97 public abstract Iterator iterator(); 15.77/8.97 15.77/8.97 public abstract int size(); 15.77/8.97 15.77/8.97 /** 15.77/8.97 * {@inheritDoc} 15.77/8.97 * 15.77/8.97 *

This implementation returns size() == 0. 15.77/8.97 */ 15.77/8.97 public boolean isEmpty() { 15.77/8.97 return size() == 0; 15.77/8.97 } 15.77/8.97 15.77/8.97 /** 15.77/8.97 * {@inheritDoc} 15.77/8.97 * 15.77/8.97 *

This implementation iterates over the elements in the collection, 15.77/8.97 * checking each element in turn for equality with the specified element. 15.77/8.97 * 15.77/8.97 * @throws ClassCastException {@inheritDoc} 15.77/8.97 * @throws NullPointerException {@inheritDoc} 15.77/8.97 */ 15.77/8.97 public boolean contains(Object o) { 15.77/8.97 Iterator e = iterator(); 15.77/8.97 if (o==null) { 15.77/8.97 while (e.hasNext()) 15.77/8.97 if (e.next()==null) 15.77/8.97 return true; 15.77/8.97 } else { 15.77/8.97 while (e.hasNext()) 15.77/8.97 if (o.equals(e.next())) 15.77/8.97 return true; 15.77/8.97 } 15.77/8.97 return false; 15.77/8.97 } 15.77/8.97 15.77/8.97 // Modification Operations 15.77/8.97 15.77/8.97 /** 15.77/8.97 * {@inheritDoc} 15.77/8.97 * 15.77/8.97 *

This implementation always throws an 15.77/8.97 * UnsupportedOperationException. 15.77/8.97 * 15.77/8.97 * @throws UnsupportedOperationException {@inheritDoc} 15.77/8.97 * @throws ClassCastException {@inheritDoc} 15.77/8.97 * @throws NullPointerException {@inheritDoc} 15.77/8.97 * @throws IllegalArgumentException {@inheritDoc} 15.77/8.97 * @throws IllegalStateException {@inheritDoc} 15.77/8.97 */ 15.77/8.97 public boolean add(E e) { 15.77/8.97 throw new UnsupportedOperationException(); 15.77/8.97 } 15.77/8.97 15.77/8.97 /** 15.77/8.97 * {@inheritDoc} 15.77/8.97 * 15.77/8.97 *

This implementation iterates over the collection looking for the 15.77/8.97 * specified element. If it finds the element, it removes the element 15.77/8.97 * from the collection using the iterator's remove method. 15.77/8.97 * 15.77/8.97 *

Note that this implementation throws an 15.77/8.97 * UnsupportedOperationException if the iterator returned by this 15.77/8.97 * collection's iterator method does not implement the remove 15.77/8.97 * method and this collection contains the specified object. 15.77/8.97 * 15.77/8.97 * @throws UnsupportedOperationException {@inheritDoc} 15.77/8.97 * @throws ClassCastException {@inheritDoc} 15.77/8.97 * @throws NullPointerException {@inheritDoc} 15.77/8.97 */ 15.77/8.97 public boolean remove(Object o) { 15.77/8.97 Iterator e = iterator(); 15.77/8.97 if (o==null) { 15.77/8.97 while (e.hasNext()) { 15.77/8.97 if (e.next()==null) { 15.77/8.97 e.remove(); 15.77/8.97 return true; 15.77/8.97 } 15.77/8.97 } 15.77/8.97 } else { 15.77/8.97 while (e.hasNext()) { 15.77/8.97 if (o.equals(e.next())) { 15.77/8.97 e.remove(); 15.77/8.97 return true; 15.77/8.97 } 15.77/8.97 } 15.77/8.97 } 15.77/8.97 return false; 15.77/8.97 } 15.77/8.97 15.77/8.97 15.77/8.97 // Bulk Operations 15.77/8.97 15.77/8.97 /** 15.77/8.97 * {@inheritDoc} 15.77/8.97 * 15.77/8.97 *

This implementation iterates over the specified collection, 15.77/8.97 * checking each element returned by the iterator in turn to see 15.77/8.97 * if it's contained in this collection. If all elements are so 15.77/8.97 * contained true is returned, otherwise false. 15.77/8.97 * 15.77/8.97 * @throws ClassCastException {@inheritDoc} 15.77/8.97 * @throws NullPointerException {@inheritDoc} 15.77/8.97 * @see #contains(Object) 15.77/8.97 */ 15.77/8.97 public boolean containsAll(Collection c) { 15.77/8.97 Iterator e = c.iterator(); 15.77/8.97 while (e.hasNext()) 15.77/8.97 if (!contains(e.next())) 15.77/8.97 return false; 15.77/8.97 return true; 15.77/8.97 } 15.77/8.97 15.77/8.97 /** 15.77/8.97 * {@inheritDoc} 15.77/8.97 * 15.77/8.97 *

This implementation iterates over the specified collection, and adds 15.77/8.97 * each object returned by the iterator to this collection, in turn. 15.77/8.97 * 15.77/8.97 *

Note that this implementation will throw an 15.77/8.97 * UnsupportedOperationException unless add is 15.77/8.97 * overridden (assuming the specified collection is non-empty). 15.77/8.97 * 15.77/8.97 * @throws UnsupportedOperationException {@inheritDoc} 15.77/8.97 * @throws ClassCastException {@inheritDoc} 15.77/8.97 * @throws NullPointerException {@inheritDoc} 15.77/8.97 * @throws IllegalArgumentException {@inheritDoc} 15.77/8.97 * @throws IllegalStateException {@inheritDoc} 15.77/8.97 * 15.77/8.97 * @see #add(Object) 15.77/8.97 */ 15.77/8.97 public boolean addAll(Collection c) { 15.77/8.97 boolean modified = false; 15.77/8.97 Iterator e = c.iterator(); 15.77/8.97 while (e.hasNext()) { 15.77/8.97 if (add(e.next())) 15.77/8.97 modified = true; 15.77/8.97 } 15.77/8.97 return modified; 15.77/8.97 } 15.77/8.97 15.77/8.97 /** 15.77/8.97 * {@inheritDoc} 15.77/8.97 * 15.77/8.97 *

This implementation iterates over this collection, checking each 15.77/8.97 * element returned by the iterator in turn to see if it's contained 15.77/8.97 * in the specified collection. If it's so contained, it's removed from 15.77/8.97 * this collection with the iterator's remove method. 15.77/8.97 * 15.77/8.97 *

Note that this implementation will throw an 15.77/8.97 * UnsupportedOperationException if the iterator returned by the 15.77/8.97 * iterator method does not implement the remove method 15.77/8.97 * and this collection contains one or more elements in common with the 15.77/8.97 * specified collection. 15.77/8.97 * 15.77/8.97 * @throws UnsupportedOperationException {@inheritDoc} 15.77/8.97 * @throws ClassCastException {@inheritDoc} 15.77/8.97 * @throws NullPointerException {@inheritDoc} 15.77/8.97 * 15.77/8.97 * @see #remove(Object) 15.77/8.97 * @see #contains(Object) 15.77/8.97 */ 15.77/8.97 public boolean removeAll(Collection c) { 15.77/8.97 boolean modified = false; 15.77/8.97 Iterator e = iterator(); 15.77/8.97 while (e.hasNext()) { 15.77/8.97 if (c.contains(e.next())) { 15.77/8.97 e.remove(); 15.77/8.97 modified = true; 15.77/8.97 } 15.77/8.97 } 15.77/8.97 return modified; 15.77/8.97 } 15.77/8.97 15.77/8.97 /** 15.77/8.97 * {@inheritDoc} 15.77/8.97 * 15.77/8.97 *

This implementation iterates over this collection, checking each 15.77/8.97 * element returned by the iterator in turn to see if it's contained 15.77/8.97 * in the specified collection. If it's not so contained, it's removed 15.77/8.97 * from this collection with the iterator's remove method. 15.77/8.97 * 15.77/8.97 *

Note that this implementation will throw an 15.77/8.97 * UnsupportedOperationException if the iterator returned by the 15.77/8.97 * iterator method does not implement the remove method 15.77/8.97 * and this collection contains one or more elements not present in the 15.77/8.97 * specified collection. 15.77/8.97 * 15.77/8.97 * @throws UnsupportedOperationException {@inheritDoc} 15.77/8.97 * @throws ClassCastException {@inheritDoc} 15.77/8.97 * @throws NullPointerException {@inheritDoc} 15.77/8.97 * 15.77/8.97 * @see #remove(Object) 15.77/8.97 * @see #contains(Object) 15.77/8.97 */ 15.77/8.97 public boolean retainAll(Collection c) { 15.77/8.97 boolean modified = false; 15.77/8.97 Iterator e = iterator(); 15.77/8.97 while (e.hasNext()) { 15.77/8.97 if (!c.contains(e.next())) { 15.77/8.97 e.remove(); 15.77/8.97 modified = true; 15.77/8.97 } 15.77/8.97 } 15.77/8.97 return modified; 15.77/8.97 } 15.77/8.97 15.77/8.97 /** 15.77/8.97 * {@inheritDoc} 15.77/8.97 * 15.77/8.97 *

This implementation iterates over this collection, removing each 15.77/8.97 * element using the Iterator.remove operation. Most 15.77/8.97 * implementations will probably choose to override this method for 15.77/8.97 * efficiency. 15.77/8.97 * 15.77/8.97 *

Note that this implementation will throw an 15.77/8.97 * UnsupportedOperationException if the iterator returned by this 15.77/8.97 * collection's iterator method does not implement the 15.77/8.97 * remove method and this collection is non-empty. 15.77/8.97 * 15.77/8.97 * @throws UnsupportedOperationException {@inheritDoc} 15.77/8.97 */ 15.77/8.97 public void clear() { 15.77/8.97 Iterator e = iterator(); 15.77/8.97 while (e.hasNext()) { 15.77/8.97 e.next(); 15.77/8.97 e.remove(); 15.77/8.97 } 15.77/8.97 } 15.77/8.97 15.77/8.97 15.77/8.97 // String conversion 15.77/8.97 15.77/8.97 /** 15.77/8.97 * Returns a string representation of this collection. The string 15.77/8.97 * representation consists of a list of the collection's elements in the 15.77/8.97 * order they are returned by its iterator, enclosed in square brackets 15.77/8.97 * ("[]"). Adjacent elements are separated by the characters 15.77/8.97 * ", " (comma and space). Elements are converted to strings as 15.77/8.97 * by {@link String#valueOf(Object)}. 15.77/8.97 * 15.77/8.97 * @return a string representation of this collection 15.77/8.97 */ 15.77/8.97 public String toString() { 15.77/8.97 Iterator i = iterator(); 15.77/8.97 if (! i.hasNext()) 15.77/8.97 return "[]"; 15.77/8.97 15.77/8.97 String sb = ""; 15.77/8.97 sb = sb + "["; 15.77/8.97 for (;;) { 15.77/8.97 E e = i.next(); 15.77/8.97 sb = sb + (e == this ? "(this Collection)" : e); 15.77/8.97 if (! i.hasNext()) { 15.77/8.97 sb = sb + "]"; 15.77/8.97 return sb; 15.77/8.97 } 15.77/8.97 sb = sb + ", "; 15.77/8.97 } 15.77/8.97 } 15.77/8.97 15.77/8.97 } 15.77/8.97 15.77/8.97 15.77/8.97 /* 15.77/8.97 * Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved. 15.77/8.97 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 15.77/8.97 * 15.77/8.97 * This code is free software; you can redistribute it and/or modify it 15.77/8.97 * under the terms of the GNU General Public License version 2 only, as 15.77/8.97 * published by the Free Software Foundation. Sun designates this 15.77/8.97 * particular file as subject to the "Classpath" exception as provided 15.77/8.97 * by Sun in the LICENSE file that accompanied this code. 15.77/8.97 * 15.77/8.97 * This code is distributed in the hope that it will be useful, but WITHOUT 15.77/8.97 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 15.77/8.97 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15.77/8.97 * version 2 for more details (a copy is included in the LICENSE file that 15.77/8.97 * accompanied this code). 15.77/8.97 * 15.77/8.97 * You should have received a copy of the GNU General Public License version 15.77/8.97 * 2 along with this work; if not, write to the Free Software Foundation, 15.77/8.97 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 15.77/8.97 * 15.77/8.97 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 15.77/8.97 * CA 95054 USA or visit www.sun.com if you need additional information or 15.77/8.97 * have any questions. 15.77/8.97 */ 15.77/8.97 15.77/8.97 package javaUtilEx; 15.77/8.97 15.77/8.97 /** 15.77/8.97 * This class provides a skeletal implementation of the {@link List} 15.77/8.97 * interface to minimize the effort required to implement this interface 15.77/8.97 * backed by a "random access" data store (such as an array). For sequential 15.77/8.97 * access data (such as a linked list), {@link AbstractSequentialList} should 15.77/8.97 * be used in preference to this class. 15.77/8.97 * 15.77/8.97 *

To implement an unmodifiable list, the programmer needs only to extend 15.77/8.97 * this class and provide implementations for the {@link #get(int)} and 15.77/8.97 * {@link List#size() size()} methods. 15.77/8.97 * 15.77/8.97 *

To implement a modifiable list, the programmer must additionally 15.77/8.97 * override the {@link #set(int, Object) set(int, E)} method (which otherwise 15.77/8.97 * throws an {@code UnsupportedOperationException}). If the list is 15.77/8.97 * variable-size the programmer must additionally override the 15.77/8.97 * {@link #add(int, Object) add(int, E)} and {@link #remove(int)} methods. 15.77/8.97 * 15.77/8.97 *

The programmer should generally provide a void (no argument) and collection 15.77/8.97 * constructor, as per the recommendation in the {@link Collection} interface 15.77/8.97 * specification. 15.77/8.97 * 15.77/8.97 *

Unlike the other abstract collection implementations, the programmer does 15.77/8.97 * not have to provide an iterator implementation; the iterator and 15.77/8.97 * list iterator are implemented by this class, on top of the "random access" 15.77/8.97 * methods: 15.77/8.97 * {@link #get(int)}, 15.77/8.97 * {@link #set(int, Object) set(int, E)}, 15.77/8.97 * {@link #add(int, Object) add(int, E)} and 15.77/8.97 * {@link #remove(int)}. 15.77/8.97 * 15.77/8.97 *

The documentation for each non-abstract method in this class describes its 15.77/8.97 * implementation in detail. Each of these methods may be overridden if the 15.77/8.97 * collection being implemented admits a more efficient implementation. 15.77/8.97 * 15.77/8.97 *

This class is a member of the 15.77/8.97 * 15.77/8.97 * Java Collections Framework. 15.77/8.97 * 15.77/8.97 * @author Josh Bloch 15.77/8.97 * @author Neal Gafter 15.77/8.97 * @since 1.2 15.77/8.97 */ 15.77/8.97 15.77/8.97 public abstract class AbstractList extends AbstractCollection implements List { 15.77/8.97 /** 15.77/8.97 * Sole constructor. (For invocation by subclass constructors, typically 15.77/8.97 * implicit.) 15.77/8.97 */ 15.77/8.97 protected AbstractList() { 15.77/8.97 } 15.77/8.97 15.77/8.97 /** 15.77/8.97 * Appends the specified element to the end of this list (optional 15.77/8.97 * operation). 15.77/8.97 * 15.77/8.97 *

Lists that support this operation may place limitations on what 15.77/8.97 * elements may be added to this list. In particular, some 15.77/8.97 * lists will refuse to add null elements, and others will impose 15.77/8.97 * restrictions on the type of elements that may be added. List 15.77/8.97 * classes should clearly specify in their documentation any restrictions 15.77/8.97 * on what elements may be added. 15.77/8.97 * 15.77/8.97 *

This implementation calls {@code add(size(), e)}. 15.77/8.97 * 15.77/8.97 *

Note that this implementation throws an 15.77/8.97 * {@code UnsupportedOperationException} unless 15.77/8.97 * {@link #add(int, Object) add(int, E)} is overridden. 15.77/8.97 * 15.77/8.97 * @param e element to be appended to this list 15.77/8.97 * @return {@code true} (as specified by {@link Collection#add}) 15.77/8.97 * @throws UnsupportedOperationException if the {@code add} operation 15.77/8.97 * is not supported by this list 15.77/8.97 * @throws ClassCastException if the class of the specified element 15.77/8.97 * prevents it from being added to this list 15.77/8.97 * @throws NullPointerException if the specified element is null and this 15.77/8.97 * list does not permit null elements 15.77/8.97 * @throws IllegalArgumentException if some property of this element 15.77/8.97 * prevents it from being added to this list 15.77/8.97 */ 15.77/8.97 public boolean add(E e) { 15.77/8.97 add(size(), e); 15.77/8.97 return true; 15.77/8.97 } 15.77/8.97 15.77/8.97 /** 15.77/8.97 * {@inheritDoc} 15.77/8.97 * 15.77/8.97 * @throws IndexOutOfBoundsException {@inheritDoc} 15.77/8.97 */ 15.77/8.97 abstract public E get(int index); 15.77/8.97 15.77/8.97 /** 15.77/8.97 * {@inheritDoc} 15.77/8.97 * 15.77/8.97 *

This implementation always throws an 15.77/8.97 * {@code UnsupportedOperationException}. 15.77/8.97 * 15.77/8.97 * @throws UnsupportedOperationException {@inheritDoc} 15.77/8.97 * @throws ClassCastException {@inheritDoc} 15.77/8.97 * @throws NullPointerException {@inheritDoc} 15.77/8.97 * @throws IllegalArgumentException {@inheritDoc} 15.77/8.97 * @throws IndexOutOfBoundsException {@inheritDoc} 15.77/8.97 */ 15.77/8.97 public E set(int index, E element) { 15.77/8.97 throw new UnsupportedOperationException(); 15.77/8.97 } 15.77/8.97 15.77/8.97 /** 15.77/8.97 * {@inheritDoc} 15.77/8.97 * 15.77/8.97 *

This implementation always throws an 15.77/8.97 * {@code UnsupportedOperationException}. 15.77/8.97 * 15.77/8.97 * @throws UnsupportedOperationException {@inheritDoc} 15.77/8.97 * @throws ClassCastException {@inheritDoc} 15.77/8.97 * @throws NullPointerException {@inheritDoc} 15.77/8.97 * @throws IllegalArgumentException {@inheritDoc} 15.77/8.97 * @throws IndexOutOfBoundsException {@inheritDoc} 15.77/8.97 */ 15.77/8.97 public void add(int index, E element) { 15.77/8.97 throw new UnsupportedOperationException(); 15.77/8.97 } 15.77/8.97 15.77/8.97 /** 15.77/8.97 * {@inheritDoc} 15.77/8.97 * 15.77/8.97 *

This implementation always throws an 15.77/8.97 * {@code UnsupportedOperationException}. 15.77/8.97 * 15.77/8.97 * @throws UnsupportedOperationException {@inheritDoc} 15.77/8.97 * @throws IndexOutOfBoundsException {@inheritDoc} 15.77/8.97 */ 15.77/8.97 public E remove(int index) { 15.77/8.97 throw new UnsupportedOperationException(); 15.77/8.97 } 15.77/8.97 15.77/8.97 15.77/8.97 // Search Operations 15.77/8.97 15.77/8.97 /** 15.77/8.97 * {@inheritDoc} 15.77/8.97 * 15.77/8.97 *

This implementation first gets a list iterator (with 15.77/8.97 * {@code listIterator()}). Then, it iterates over the list until the 15.77/8.97 * specified element is found or the end of the list is reached. 15.77/8.97 * 15.77/8.97 * @throws ClassCastException {@inheritDoc} 15.77/8.97 * @throws NullPointerException {@inheritDoc} 15.77/8.97 */ 15.77/8.97 public int indexOf(Object o) { 15.77/8.97 ListIterator e = listIterator(); 15.77/8.97 if (o==null) { 15.77/8.97 while (e.hasNext()) 15.77/8.97 if (e.next()==null) 15.77/8.97 return e.previousIndex(); 15.77/8.97 } else { 15.77/8.97 while (e.hasNext()) 15.77/8.97 if (o.equals(e.next())) 15.77/8.97 return e.previousIndex(); 15.77/8.97 } 15.77/8.97 return -1; 15.77/8.97 } 15.77/8.97 15.77/8.97 /** 15.77/8.97 * {@inheritDoc} 15.77/8.97 * 15.77/8.97 *

This implementation first gets a list iterator that points to the end 15.77/8.97 * of the list (with {@code listIterator(size())}). Then, it iterates 15.77/8.97 * backwards over the list until the specified element is found, or the 15.77/8.97 * beginning of the list is reached. 15.77/8.97 * 15.77/8.97 * @throws ClassCastException {@inheritDoc} 15.77/8.97 * @throws NullPointerException {@inheritDoc} 15.77/8.97 */ 15.77/8.97 public int lastIndexOf(Object o) { 15.77/8.97 ListIterator e = listIterator(size()); 15.77/8.97 if (o==null) { 15.77/8.97 while (e.hasPrevious()) 15.77/8.97 if (e.previous()==null) 15.77/8.97 return e.nextIndex(); 15.77/8.97 } else { 15.77/8.97 while (e.hasPrevious()) 15.77/8.97 if (o.equals(e.previous())) 15.77/8.97 return e.nextIndex(); 15.77/8.97 } 15.77/8.97 return -1; 15.77/8.97 } 15.77/8.97 15.77/8.97 15.77/8.97 // Bulk Operations 15.77/8.97 15.77/8.97 /** 15.77/8.97 * Removes all of the elements from this list (optional operation). 15.77/8.97 * The list will be empty after this call returns. 15.77/8.97 * 15.77/8.97 *

This implementation calls {@code removeRange(0, size())}. 15.77/8.97 * 15.77/8.97 *

Note that this implementation throws an 15.77/8.97 * {@code UnsupportedOperationException} unless {@code remove(int 15.77/8.97 * index)} or {@code removeRange(int fromIndex, int toIndex)} is 15.77/8.97 * overridden. 15.77/8.97 * 15.77/8.97 * @throws UnsupportedOperationException if the {@code clear} operation 15.77/8.97 * is not supported by this list 15.77/8.97 */ 15.77/8.97 public void clear() { 15.77/8.97 removeRange(0, size()); 15.77/8.97 } 15.77/8.97 15.77/8.97 /** 15.77/8.97 * {@inheritDoc} 15.77/8.97 * 15.77/8.97 *

This implementation gets an iterator over the specified collection 15.77/8.97 * and iterates over it, inserting the elements obtained from the 15.77/8.97 * iterator into this list at the appropriate position, one at a time, 15.77/8.97 * using {@code add(int, E)}. 15.77/8.97 * Many implementations will override this method for efficiency. 15.77/8.97 * 15.77/8.97 *

Note that this implementation throws an 15.77/8.97 * {@code UnsupportedOperationException} unless 15.77/8.97 * {@link #add(int, Object) add(int, E)} is overridden. 15.77/8.97 * 15.77/8.97 * @throws UnsupportedOperationException {@inheritDoc} 15.77/8.97 * @throws ClassCastException {@inheritDoc} 15.77/8.97 * @throws NullPointerException {@inheritDoc} 15.77/8.97 * @throws IllegalArgumentException {@inheritDoc} 15.77/8.97 * @throws IndexOutOfBoundsException {@inheritDoc} 15.77/8.97 */ 15.77/8.97 public boolean addAll(int index, Collection c) { 15.77/8.97 rangeCheckForAdd(index); 15.77/8.97 boolean modified = false; 15.77/8.97 Iterator e = c.iterator(); 15.77/8.97 while (e.hasNext()) { 15.77/8.97 add(index++, e.next()); 15.77/8.97 modified = true; 15.77/8.97 } 15.77/8.97 return modified; 15.77/8.97 } 15.77/8.97 15.77/8.97 15.77/8.97 // Iterators 15.77/8.97 15.77/8.97 /** 15.77/8.97 * Returns an iterator over the elements in this list in proper sequence. 15.77/8.97 * 15.77/8.97 *

This implementation returns a straightforward implementation of the 15.77/8.97 * iterator interface, relying on the backing list's {@code size()}, 15.77/8.97 * {@code get(int)}, and {@code remove(int)} methods. 15.77/8.97 * 15.77/8.97 *

Note that the iterator returned by this method will throw an 15.77/8.97 * {@link UnsupportedOperationException} in response to its 15.77/8.97 * {@code remove} method unless the list's {@code remove(int)} method is 15.77/8.97 * overridden. 15.77/8.97 * 15.77/8.97 *

This implementation can be made to throw runtime exceptions in the 15.77/8.97 * face of concurrent modification, as described in the specification 15.77/8.97 * for the (protected) {@link #modCount} field. 15.77/8.97 * 15.77/8.97 * @return an iterator over the elements in this list in proper sequence 15.77/8.97 */ 15.77/8.97 public Iterator iterator() { 15.77/8.97 return new Itr(); 15.77/8.97 } 15.77/8.97 15.77/8.97 /** 15.77/8.97 * {@inheritDoc} 15.77/8.97 * 15.77/8.97 *

This implementation returns {@code listIterator(0)}. 15.77/8.97 * 15.77/8.97 * @see #listIterator(int) 15.77/8.97 */ 15.77/8.97 public ListIterator listIterator() { 15.77/8.97 return listIterator(0); 15.77/8.97 } 15.77/8.97 15.77/8.97 /** 15.77/8.97 * {@inheritDoc} 15.77/8.97 * 15.77/8.97 *

This implementation returns a straightforward implementation of the 15.77/8.97 * {@code ListIterator} interface that extends the implementation of the 15.77/8.97 * {@code Iterator} interface returned by the {@code iterator()} method. 15.77/8.97 * The {@code ListIterator} implementation relies on the backing list's 15.77/8.97 * {@code get(int)}, {@code set(int, E)}, {@code add(int, E)} 15.77/8.97 * and {@code remove(int)} methods. 15.77/8.97 * 15.77/8.97 *

Note that the list iterator returned by this implementation will 15.77/8.97 * throw an {@link UnsupportedOperationException} in response to its 15.77/8.97 * {@code remove}, {@code set} and {@code add} methods unless the 15.77/8.97 * list's {@code remove(int)}, {@code set(int, E)}, and 15.77/8.97 * {@code add(int, E)} methods are overridden. 15.77/8.97 * 15.77/8.97 *

This implementation can be made to throw runtime exceptions in the 15.77/8.97 * face of concurrent modification, as described in the specification for 15.77/8.97 * the (protected) {@link #modCount} field. 15.77/8.97 * 15.77/8.97 * @throws IndexOutOfBoundsException {@inheritDoc} 15.77/8.97 */ 15.77/8.97 public ListIterator listIterator(final int index) { 15.77/8.97 rangeCheckForAdd(index); 15.77/8.97 15.77/8.97 return new ListItr(index); 15.77/8.97 } 15.77/8.97 15.77/8.97 private class Itr implements Iterator { 15.77/8.97 /** 15.77/8.97 * Index of element to be returned by subsequent call to next. 15.77/8.97 */ 15.77/8.97 int cursor = 0; 15.77/8.97 15.77/8.97 /** 15.77/8.97 * Index of element returned by most recent call to next or 15.77/8.97 * previous. Reset to -1 if this element is deleted by a call 15.77/8.97 * to remove. 15.77/8.97 */ 15.77/8.97 int lastRet = -1; 15.77/8.97 15.77/8.97 /** 15.77/8.97 * The modCount value that the iterator believes that the backing 15.77/8.97 * List should have. If this expectation is violated, the iterator 15.77/8.97 * has detected concurrent modification. 15.77/8.97 */ 15.77/8.97 int expectedModCount = modCount; 15.77/8.97 15.77/8.97 public boolean hasNext() { 15.77/8.97 return cursor != size(); 15.77/8.97 } 15.77/8.97 15.77/8.97 public E next() { 15.77/8.97 checkForComodification(); 15.77/8.97 try { 15.77/8.97 int i = cursor; 15.77/8.97 E next = get(i); 15.77/8.97 lastRet = i; 15.77/8.97 cursor = i + 1; 15.77/8.97 return next; 15.77/8.97 } catch (IndexOutOfBoundsException e) { 15.77/8.97 checkForComodification(); 15.77/8.97 throw new NoSuchElementException(); 15.77/8.97 } 15.77/8.97 } 15.77/8.97 15.77/8.97 public void remove() { 15.77/8.97 if (lastRet < 0) 15.77/8.97 throw new IllegalStateException(); 15.77/8.97 checkForComodification(); 15.77/8.97 15.77/8.97 try { 15.77/8.97 AbstractList.this.remove(lastRet); 15.77/8.97 if (lastRet < cursor) 15.77/8.97 cursor--; 15.77/8.97 lastRet = -1; 15.77/8.97 expectedModCount = modCount; 15.77/8.97 } catch (IndexOutOfBoundsException e) { 15.77/8.97 throw new ConcurrentModificationException(); 15.77/8.97 } 15.77/8.97 } 15.77/8.97 15.77/8.97 final void checkForComodification() { 15.77/8.97 if (modCount != expectedModCount) 15.77/8.97 throw new ConcurrentModificationException(); 15.77/8.97 } 15.77/8.97 } 15.77/8.97 15.77/8.97 private class ListItr extends Itr implements ListIterator { 15.77/8.97 ListItr(int index) { 15.77/8.97 cursor = index; 15.77/8.97 } 15.77/8.97 15.77/8.97 public boolean hasPrevious() { 15.77/8.97 return cursor != 0; 15.77/8.97 } 15.77/8.97 15.77/8.97 public E previous() { 15.77/8.97 checkForComodification(); 15.77/8.97 try { 15.77/8.97 int i = cursor - 1; 15.77/8.97 E previous = get(i); 15.77/8.97 lastRet = cursor = i; 15.77/8.97 return previous; 15.77/8.97 } catch (IndexOutOfBoundsException e) { 15.77/8.97 checkForComodification(); 15.77/8.97 throw new NoSuchElementException(); 15.77/8.97 } 15.77/8.97 } 15.77/8.97 15.77/8.97 public int nextIndex() { 15.77/8.97 return cursor; 15.77/8.97 } 15.77/8.97 15.77/8.97 public int previousIndex() { 15.77/8.97 return cursor-1; 15.77/8.97 } 15.77/8.97 15.77/8.97 public void set(E e) { 15.77/8.97 if (lastRet < 0) 15.77/8.97 throw new IllegalStateException(); 15.77/8.97 checkForComodification(); 15.77/8.97 15.77/8.97 try { 15.77/8.97 AbstractList.this.set(lastRet, e); 15.77/8.97 expectedModCount = modCount; 15.77/8.97 } catch (IndexOutOfBoundsException ex) { 15.77/8.97 throw new ConcurrentModificationException(); 15.77/8.97 } 15.77/8.97 } 15.77/8.97 15.77/8.97 public void add(E e) { 15.77/8.98 checkForComodification(); 15.77/8.98 15.77/8.98 try { 15.77/8.98 int i = cursor; 15.77/8.98 AbstractList.this.add(i, e); 15.77/8.98 lastRet = -1; 15.77/8.98 cursor = i + 1; 15.77/8.98 expectedModCount = modCount; 15.77/8.98 } catch (IndexOutOfBoundsException ex) { 15.77/8.98 throw new ConcurrentModificationException(); 15.77/8.98 } 15.77/8.98 } 15.77/8.98 } 15.77/8.98 15.77/8.98 /** 15.77/8.98 * {@inheritDoc} 15.77/8.98 * 15.77/8.98 *

This implementation returns a list that subclasses 15.77/8.98 * {@code AbstractList}. The subclass stores, in private fields, the 15.77/8.98 * offset of the subList within the backing list, the size of the subList 15.77/8.98 * (which can change over its lifetime), and the expected 15.77/8.98 * {@code modCount} value of the backing list. There are two variants 15.77/8.98 * of the subclass, one of which implements {@code RandomAccess}. 15.77/8.98 * If this list implements {@code RandomAccess} the returned list will 15.77/8.98 * be an instance of the subclass that implements {@code RandomAccess}. 15.77/8.98 * 15.77/8.98 *

The subclass's {@code set(int, E)}, {@code get(int)}, 15.77/8.98 * {@code add(int, E)}, {@code remove(int)}, {@code addAll(int, 15.77/8.98 * Collection)} and {@code removeRange(int, int)} methods all 15.77/8.98 * delegate to the corresponding methods on the backing abstract list, 15.77/8.98 * after bounds-checking the index and adjusting for the offset. The 15.77/8.98 * {@code addAll(Collection c)} method merely returns {@code addAll(size, 15.77/8.98 * c)}. 15.77/8.98 * 15.77/8.98 *

The {@code listIterator(int)} method returns a "wrapper object" 15.77/8.98 * over a list iterator on the backing list, which is created with the 15.77/8.98 * corresponding method on the backing list. The {@code iterator} method 15.77/8.98 * merely returns {@code listIterator()}, and the {@code size} method 15.77/8.98 * merely returns the subclass's {@code size} field. 15.77/8.98 * 15.77/8.98 *

All methods first check to see if the actual {@code modCount} of 15.77/8.98 * the backing list is equal to its expected value, and throw a 15.77/8.98 * {@code ConcurrentModificationException} if it is not. 15.77/8.98 * 15.77/8.98 * @throws IndexOutOfBoundsException if an endpoint index value is out of range 15.77/8.98 * {@code (fromIndex < 0 || toIndex > size)} 15.77/8.98 * @throws IllegalArgumentException if the endpoint indices are out of order 15.77/8.98 * {@code (fromIndex > toIndex)} 15.77/8.98 */ 15.77/8.98 public List subList(int fromIndex, int toIndex) { 15.77/8.98 return (this instanceof RandomAccess ? 15.77/8.98 new RandomAccessSubList(this, fromIndex, toIndex) : 15.77/8.98 new SubList(this, fromIndex, toIndex)); 15.77/8.98 } 15.77/8.98 15.77/8.98 // Comparison and hashing 15.77/8.98 15.77/8.98 /** 15.77/8.98 * Compares the specified object with this list for equality. Returns 15.77/8.98 * {@code true} if and only if the specified object is also a list, both 15.77/8.98 * lists have the same size, and all corresponding pairs of elements in 15.77/8.98 * the two lists are equal. (Two elements {@code e1} and 15.77/8.98 * {@code e2} are equal if {@code (e1==null ? e2==null : 15.77/8.98 * e1.equals(e2))}.) In other words, two lists are defined to be 15.77/8.98 * equal if they contain the same elements in the same order.

15.77/8.98 * 15.77/8.98 * This implementation first checks if the specified object is this 15.77/8.98 * list. If so, it returns {@code true}; if not, it checks if the 15.77/8.98 * specified object is a list. If not, it returns {@code false}; if so, 15.77/8.98 * it iterates over both lists, comparing corresponding pairs of elements. 15.77/8.98 * If any comparison returns {@code false}, this method returns 15.77/8.98 * {@code false}. If either iterator runs out of elements before the 15.77/8.98 * other it returns {@code false} (as the lists are of unequal length); 15.77/8.98 * otherwise it returns {@code true} when the iterations complete. 15.77/8.98 * 15.77/8.98 * @param o the object to be compared for equality with this list 15.77/8.98 * @return {@code true} if the specified object is equal to this list 15.77/8.98 */ 15.77/8.98 public boolean equals(Object o) { 15.77/8.98 if (o == this) 15.77/8.98 return true; 15.77/8.98 if (!(o instanceof List)) 15.77/8.98 return false; 15.77/8.98 15.77/8.98 ListIterator e1 = listIterator(); 15.77/8.98 ListIterator e2 = ((List) o).listIterator(); 15.77/8.98 while(e1.hasNext() && e2.hasNext()) { 15.77/8.98 E o1 = e1.next(); 15.77/8.98 Object o2 = e2.next(); 15.77/8.98 if (!(o1==null ? o2==null : o1.equals(o2))) 15.77/8.98 return false; 15.77/8.98 } 15.77/8.98 return !(e1.hasNext() || e2.hasNext()); 15.77/8.98 } 15.77/8.98 15.77/8.98 /** 15.77/8.98 * Returns the hash code value for this list. 15.77/8.98 * 15.77/8.98 *

This implementation uses exactly the code that is used to define the 15.77/8.98 * list hash function in the documentation for the {@link List#hashCode} 15.77/8.98 * method. 15.77/8.98 * 15.77/8.98 * @return the hash code value for this list 15.77/8.98 */ 15.77/8.98 public int hashCode() { 15.77/8.98 int hashCode = 1; 15.77/8.98 Iterator it = this.iterator(); 15.77/8.98 while (it.hasNext()) { 15.77/8.98 E e = it.next(); 15.77/8.98 hashCode = 31*hashCode + (e==null ? 0 : e.hashCode()); 15.77/8.98 } 15.77/8.98 return hashCode; 15.77/8.98 } 15.77/8.98 15.77/8.98 /** 15.77/8.98 * Removes from this list all of the elements whose index is between 15.77/8.98 * {@code fromIndex}, inclusive, and {@code toIndex}, exclusive. 15.77/8.98 * Shifts any succeeding elements to the left (reduces their index). 15.77/8.98 * This call shortens the list by {@code (toIndex - fromIndex)} elements. 15.77/8.98 * (If {@code toIndex==fromIndex}, this operation has no effect.) 15.77/8.98 * 15.77/8.98 *

This method is called by the {@code clear} operation on this list 15.77/8.98 * and its subLists. Overriding this method to take advantage of 15.77/8.98 * the internals of the list implementation can substantially 15.77/8.98 * improve the performance of the {@code clear} operation on this list 15.77/8.98 * and its subLists. 15.77/8.98 * 15.77/8.98 *

This implementation gets a list iterator positioned before 15.77/8.98 * {@code fromIndex}, and repeatedly calls {@code ListIterator.next} 15.77/8.98 * followed by {@code ListIterator.remove} until the entire range has 15.77/8.98 * been removed. Note: if {@code ListIterator.remove} requires linear 15.77/8.98 * time, this implementation requires quadratic time. 15.77/8.98 * 15.77/8.98 * @param fromIndex index of first element to be removed 15.77/8.98 * @param toIndex index after last element to be removed 15.77/8.98 */ 15.77/8.98 protected void removeRange(int fromIndex, int toIndex) { 15.77/8.98 ListIterator it = listIterator(fromIndex); 15.77/8.98 for (int i=0, n=toIndex-fromIndex; istructurally modified. 15.77/8.98 * Structural modifications are those that change the size of the 15.77/8.98 * list, or otherwise perturb it in such a fashion that iterations in 15.77/8.98 * progress may yield incorrect results. 15.77/8.98 * 15.77/8.98 *

This field is used by the iterator and list iterator implementation 15.77/8.98 * returned by the {@code iterator} and {@code listIterator} methods. 15.77/8.98 * If the value of this field changes unexpectedly, the iterator (or list 15.77/8.98 * iterator) will throw a {@code ConcurrentModificationException} in 15.77/8.98 * response to the {@code next}, {@code remove}, {@code previous}, 15.77/8.98 * {@code set} or {@code add} operations. This provides 15.77/8.98 * fail-fast behavior, rather than non-deterministic behavior in 15.77/8.98 * the face of concurrent modification during iteration. 15.77/8.98 * 15.77/8.98 *

Use of this field by subclasses is optional. If a subclass 15.77/8.98 * wishes to provide fail-fast iterators (and list iterators), then it 15.77/8.98 * merely has to increment this field in its {@code add(int, E)} and 15.77/8.98 * {@code remove(int)} methods (and any other methods that it overrides 15.77/8.98 * that result in structural modifications to the list). A single call to 15.77/8.98 * {@code add(int, E)} or {@code remove(int)} must add no more than 15.77/8.98 * one to this field, or the iterators (and list iterators) will throw 15.77/8.98 * bogus {@code ConcurrentModificationExceptions}. If an implementation 15.77/8.98 * does not wish to provide fail-fast iterators, this field may be 15.77/8.98 * ignored. 15.77/8.98 */ 15.77/8.98 protected transient int modCount = 0; 15.77/8.98 15.77/8.98 private void rangeCheckForAdd(int index) { 15.77/8.98 if (index < 0 || index > size()) 15.77/8.98 throw new IndexOutOfBoundsException(outOfBoundsMsg(index)); 15.77/8.98 } 15.77/8.98 15.77/8.98 private String outOfBoundsMsg(int index) { 15.77/8.98 return ""; 15.77/8.98 } 15.77/8.98 } 15.77/8.98 15.77/8.98 class SubList extends AbstractList { 15.77/8.98 private final AbstractList l; 15.77/8.98 private final int offset; 15.77/8.98 private int size; 15.77/8.98 15.77/8.98 SubList(AbstractList list, int fromIndex, int toIndex) { 15.77/8.98 if (fromIndex < 0) 15.77/8.98 throw new IndexOutOfBoundsException(); 15.77/8.98 if (toIndex > list.size()) 15.77/8.98 throw new IndexOutOfBoundsException(); 15.77/8.98 if (fromIndex > toIndex) 15.77/8.98 throw new IllegalArgumentException(); 15.77/8.98 l = list; 15.77/8.98 offset = fromIndex; 15.77/8.98 size = toIndex - fromIndex; 15.77/8.98 this.modCount = l.modCount; 15.77/8.98 } 15.77/8.98 15.77/8.98 public E set(int index, E element) { 15.77/8.98 rangeCheck(index); 15.77/8.98 checkForComodification(); 15.77/8.98 return l.set(index+offset, element); 15.77/8.98 } 15.77/8.98 15.77/8.98 public E get(int index) { 15.77/8.98 rangeCheck(index); 15.77/8.98 checkForComodification(); 15.77/8.98 return l.get(index+offset); 15.77/8.98 } 15.77/8.98 15.77/8.98 public int size() { 15.77/8.98 checkForComodification(); 15.77/8.98 return size; 15.77/8.98 } 15.77/8.98 15.77/8.98 public void add(int index, E element) { 15.77/8.98 rangeCheckForAdd(index); 15.77/8.98 checkForComodification(); 15.77/8.98 l.add(index+offset, element); 15.77/8.98 this.modCount = l.modCount; 15.77/8.98 size++; 15.77/8.98 } 15.77/8.98 15.77/8.98 public E remove(int index) { 15.77/8.98 rangeCheck(index); 15.77/8.98 checkForComodification(); 15.77/8.98 E result = l.remove(index+offset); 15.77/8.98 this.modCount = l.modCount; 15.77/8.98 size--; 15.77/8.98 return result; 15.77/8.98 } 15.77/8.98 15.77/8.98 protected void removeRange(int fromIndex, int toIndex) { 15.77/8.98 checkForComodification(); 15.77/8.98 l.removeRange(fromIndex+offset, toIndex+offset); 15.77/8.98 this.modCount = l.modCount; 15.77/8.98 size -= (toIndex-fromIndex); 15.77/8.98 } 15.77/8.98 15.77/8.98 public boolean addAll(Collection c) { 15.77/8.98 return addAll(size, c); 15.77/8.98 } 15.77/8.98 15.77/8.98 public boolean addAll(int index, Collection c) { 15.77/8.98 rangeCheckForAdd(index); 15.77/8.98 int cSize = c.size(); 15.77/8.98 if (cSize==0) 15.77/8.98 return false; 15.77/8.98 15.77/8.98 checkForComodification(); 15.77/8.98 l.addAll(offset+index, c); 15.77/8.98 this.modCount = l.modCount; 15.77/8.98 size += cSize; 15.77/8.98 return true; 15.77/8.98 } 15.77/8.98 15.77/8.98 public Iterator iterator() { 15.77/8.98 return listIterator(); 15.77/8.98 } 15.77/8.98 15.77/8.98 public ListIterator listIterator(final int index) { 15.77/8.98 checkForComodification(); 15.77/8.98 rangeCheckForAdd(index); 15.77/8.98 15.77/8.98 return new ListIterator() { 15.77/8.98 private final ListIterator i = l.listIterator(index+offset); 15.77/8.98 15.77/8.98 public boolean hasNext() { 15.77/8.98 return nextIndex() < size; 15.77/8.98 } 15.77/8.98 15.77/8.98 public E next() { 15.77/8.98 if (hasNext()) 15.77/8.98 return i.next(); 15.77/8.98 else 15.77/8.98 throw new NoSuchElementException(); 15.77/8.98 } 15.77/8.98 15.77/8.98 public boolean hasPrevious() { 15.77/8.98 return previousIndex() >= 0; 15.77/8.98 } 15.77/8.98 15.77/8.98 public E previous() { 15.77/8.98 if (hasPrevious()) 15.77/8.98 return i.previous(); 15.77/8.98 else 15.77/8.98 throw new NoSuchElementException(); 15.77/8.98 } 15.77/8.98 15.77/8.98 public int nextIndex() { 15.77/8.98 return i.nextIndex() - offset; 15.77/8.98 } 15.77/8.98 15.77/8.98 public int previousIndex() { 15.77/8.98 return i.previousIndex() - offset; 15.77/8.98 } 15.77/8.98 15.77/8.98 public void remove() { 15.77/8.98 i.remove(); 15.77/8.98 SubList.this.modCount = l.modCount; 15.77/8.98 size--; 15.77/8.98 } 15.77/8.98 15.77/8.98 public void set(E e) { 15.77/8.98 i.set(e); 15.77/8.98 } 15.77/8.98 15.77/8.98 public void add(E e) { 15.77/8.98 i.add(e); 15.77/8.98 SubList.this.modCount = l.modCount; 15.77/8.98 size++; 15.77/8.98 } 15.77/8.98 }; 15.77/8.98 } 15.77/8.98 15.77/8.98 public List subList(int fromIndex, int toIndex) { 15.77/8.98 return new SubList(this, fromIndex, toIndex); 15.77/8.98 } 15.77/8.98 15.77/8.98 private void rangeCheck(int index) { 15.77/8.98 if (index < 0 || index >= size) 15.77/8.98 throw new IndexOutOfBoundsException(outOfBoundsMsg(index)); 15.77/8.98 } 15.77/8.98 15.77/8.98 private void rangeCheckForAdd(int index) { 15.77/8.98 if (index < 0 || index > size) 15.77/8.98 throw new IndexOutOfBoundsException(outOfBoundsMsg(index)); 15.77/8.98 } 15.77/8.98 15.77/8.98 private String outOfBoundsMsg(int index) { 15.77/8.98 return ""; 15.77/8.98 } 15.77/8.98 15.77/8.98 private void checkForComodification() { 15.77/8.98 if (this.modCount != l.modCount) 15.77/8.98 throw new ConcurrentModificationException(); 15.77/8.98 } 15.77/8.98 } 15.77/8.98 15.77/8.98 class RandomAccessSubList extends SubList implements RandomAccess { 15.77/8.98 RandomAccessSubList(AbstractList list, int fromIndex, int toIndex) { 15.77/8.98 super(list, fromIndex, toIndex); 15.77/8.98 } 15.77/8.98 15.77/8.98 public List subList(int fromIndex, int toIndex) { 15.77/8.98 return new RandomAccessSubList(this, fromIndex, toIndex); 15.77/8.98 } 15.77/8.98 } 15.77/8.98 15.77/8.98 15.77/8.98 /* 15.77/8.98 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 15.77/8.98 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 15.77/8.98 * 15.77/8.98 * This code is free software; you can redistribute it and/or modify it 15.77/8.98 * under the terms of the GNU General Public License version 2 only, as 15.77/8.98 * published by the Free Software Foundation. Sun designates this 15.77/8.98 * particular file as subject to the "Classpath" exception as provided 15.77/8.98 * by Sun in the LICENSE file that accompanied this code. 15.77/8.98 * 15.77/8.98 * This code is distributed in the hope that it will be useful, but WITHOUT 15.77/8.98 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 15.77/8.98 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15.77/8.98 * version 2 for more details (a copy is included in the LICENSE file that 15.77/8.98 * accompanied this code). 15.77/8.98 * 15.77/8.98 * You should have received a copy of the GNU General Public License version 15.77/8.98 * 2 along with this work; if not, write to the Free Software Foundation, 15.77/8.98 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 15.77/8.98 * 15.77/8.98 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 15.77/8.98 * CA 95054 USA or visit www.sun.com if you need additional information or 15.77/8.98 * have any questions. 15.77/8.98 */ 15.77/8.98 15.77/8.98 package javaUtilEx; 15.77/8.98 15.77/8.98 /** 15.77/8.98 * This class provides a skeletal implementation of the List 15.77/8.98 * interface to minimize the effort required to implement this interface 15.77/8.98 * backed by a "sequential access" data store (such as a linked list). For 15.77/8.98 * random access data (such as an array), AbstractList should be used 15.77/8.98 * in preference to this class.

15.77/8.98 * 15.77/8.98 * This class is the opposite of the AbstractList class in the sense 15.77/8.98 * that it implements the "random access" methods (get(int index), 15.77/8.98 * set(int index, E element), add(int index, E element) and 15.77/8.98 * remove(int index)) on top of the list's list iterator, instead of 15.77/8.98 * the other way around.

15.77/8.98 * 15.77/8.98 * To implement a list the programmer needs only to extend this class and 15.77/8.98 * provide implementations for the listIterator and size 15.77/8.98 * methods. For an unmodifiable list, the programmer need only implement the 15.77/8.98 * list iterator's hasNext, next, hasPrevious, 15.77/8.98 * previous and index methods.

15.77/8.98 * 15.77/8.98 * For a modifiable list the programmer should additionally implement the list 15.77/8.98 * iterator's set method. For a variable-size list the programmer 15.77/8.98 * should additionally implement the list iterator's remove and 15.77/8.98 * add methods.

15.77/8.98 * 15.77/8.98 * The programmer should generally provide a void (no argument) and collection 15.77/8.98 * constructor, as per the recommendation in the Collection interface 15.77/8.98 * specification.

15.77/8.98 * 15.77/8.98 * This class is a member of the 15.77/8.98 * 15.77/8.98 * Java Collections Framework. 15.77/8.98 * 15.77/8.98 * @author Josh Bloch 15.77/8.98 * @author Neal Gafter 15.77/8.98 * @see Collection 15.77/8.98 * @see List 15.77/8.98 * @see AbstractList 15.77/8.98 * @see AbstractCollection 15.77/8.98 * @since 1.2 15.77/8.98 */ 15.77/8.98 15.77/8.98 public abstract class AbstractSequentialList extends AbstractList { 15.77/8.98 /** 15.77/8.98 * Sole constructor. (For invocation by subclass constructors, typically 15.77/8.98 * implicit.) 15.77/8.98 */ 15.77/8.98 protected AbstractSequentialList() { 15.77/8.98 } 15.77/8.98 15.77/8.98 /** 15.77/8.98 * Returns the element at the specified position in this list. 15.77/8.98 * 15.77/8.98 *

This implementation first gets a list iterator pointing to the 15.77/8.98 * indexed element (with listIterator(index)). Then, it gets 15.77/8.98 * the element using ListIterator.next and returns it. 15.77/8.98 * 15.77/8.98 * @throws IndexOutOfBoundsException {@inheritDoc} 15.77/8.98 */ 15.77/8.98 public E get(int index) { 15.77/8.98 try { 15.77/8.98 return listIterator(index).next(); 15.77/8.98 } catch (NoSuchElementException exc) { 15.77/8.98 throw new IndexOutOfBoundsException(); 15.77/8.98 } 15.77/8.98 } 15.77/8.98 15.77/8.98 /** 15.77/8.98 * Replaces the element at the specified position in this list with the 15.77/8.98 * specified element (optional operation). 15.77/8.98 * 15.77/8.98 *

This implementation first gets a list iterator pointing to the 15.77/8.98 * indexed element (with listIterator(index)). Then, it gets 15.77/8.98 * the current element using ListIterator.next and replaces it 15.77/8.98 * with ListIterator.set. 15.77/8.98 * 15.77/8.98 *

Note that this implementation will throw an 15.77/8.98 * UnsupportedOperationException if the list iterator does not 15.77/8.98 * implement the set operation. 15.77/8.98 * 15.77/8.98 * @throws UnsupportedOperationException {@inheritDoc} 15.77/8.98 * @throws ClassCastException {@inheritDoc} 15.77/8.98 * @throws NullPointerException {@inheritDoc} 15.77/8.98 * @throws IllegalArgumentException {@inheritDoc} 15.77/8.98 * @throws IndexOutOfBoundsException {@inheritDoc} 15.77/8.98 */ 15.77/8.98 public E set(int index, E element) { 15.77/8.98 try { 15.77/8.98 ListIterator e = listIterator(index); 15.77/8.98 E oldVal = e.next(); 15.77/8.98 e.set(element); 15.77/8.98 return oldVal; 15.77/8.98 } catch (NoSuchElementException exc) { 15.77/8.98 throw new IndexOutOfBoundsException(); 15.77/8.98 } 15.77/8.98 } 15.77/8.98 15.77/8.98 /** 15.77/8.98 * Inserts the specified element at the specified position in this list 15.77/8.98 * (optional operation). Shifts the element currently at that position 15.77/8.98 * (if any) and any subsequent elements to the right (adds one to their 15.77/8.98 * indices). 15.77/8.98 * 15.77/8.98 *

This implementation first gets a list iterator pointing to the 15.77/8.98 * indexed element (with listIterator(index)). Then, it 15.77/8.98 * inserts the specified element with ListIterator.add. 15.77/8.98 * 15.77/8.98 *

Note that this implementation will throw an 15.77/8.98 * UnsupportedOperationException if the list iterator does not 15.77/8.98 * implement the add operation. 15.77/8.98 * 15.77/8.98 * @throws UnsupportedOperationException {@inheritDoc} 15.77/8.98 * @throws ClassCastException {@inheritDoc} 15.77/8.98 * @throws NullPointerException {@inheritDoc} 15.77/8.98 * @throws IllegalArgumentException {@inheritDoc} 15.77/8.98 * @throws IndexOutOfBoundsException {@inheritDoc} 15.77/8.98 */ 15.77/8.98 public void add(int index, E element) { 15.77/8.98 try { 15.77/8.98 listIterator(index).add(element); 15.77/8.98 } catch (NoSuchElementException exc) { 15.77/8.98 throw new IndexOutOfBoundsException(); 15.77/8.98 } 15.77/8.98 } 15.77/8.98 15.77/8.98 /** 15.77/8.98 * Removes the element at the specified position in this list (optional 15.77/8.98 * operation). Shifts any subsequent elements to the left (subtracts one 15.77/8.98 * from their indices). Returns the element that was removed from the 15.77/8.98 * list. 15.77/8.98 * 15.77/8.98 *

This implementation first gets a list iterator pointing to the 15.77/8.98 * indexed element (with listIterator(index)). Then, it removes 15.77/8.98 * the element with ListIterator.remove. 15.77/8.98 * 15.77/8.98 *

Note that this implementation will throw an 15.77/8.98 * UnsupportedOperationException if the list iterator does not 15.77/8.98 * implement the remove operation. 15.77/8.98 * 15.77/8.98 * @throws UnsupportedOperationException {@inheritDoc} 15.77/8.98 * @throws IndexOutOfBoundsException {@inheritDoc} 15.77/8.98 */ 15.77/8.98 public E remove(int index) { 15.77/8.98 try { 15.77/8.98 ListIterator e = listIterator(index); 15.77/8.98 E outCast = e.next(); 15.77/8.98 e.remove(); 15.77/8.98 return outCast; 15.77/8.98 } catch (NoSuchElementException exc) { 15.77/8.98 throw new IndexOutOfBoundsException(); 15.77/8.98 } 15.77/8.98 } 15.77/8.98 15.77/8.98 15.77/8.98 // Bulk Operations 15.77/8.98 15.77/8.98 /** 15.77/8.98 * Inserts all of the elements in the specified collection into this 15.77/8.98 * list at the specified position (optional operation). Shifts the 15.77/8.98 * element currently at that position (if any) and any subsequent 15.77/8.98 * elements to the right (increases their indices). The new elements 15.77/8.98 * will appear in this list in the order that they are returned by the 15.77/8.98 * specified collection's iterator. The behavior of this operation is 15.77/8.98 * undefined if the specified collection is modified while the 15.77/8.98 * operation is in progress. (Note that this will occur if the specified 15.77/8.98 * collection is this list, and it's nonempty.) 15.77/8.98 * 15.77/8.98 *

This implementation gets an iterator over the specified collection and 15.77/8.98 * a list iterator over this list pointing to the indexed element (with 15.77/8.98 * listIterator(index)). Then, it iterates over the specified 15.77/8.98 * collection, inserting the elements obtained from the iterator into this 15.77/8.98 * list, one at a time, using ListIterator.add followed by 15.77/8.98 * ListIterator.next (to skip over the added element). 15.77/8.98 * 15.77/8.98 *

Note that this implementation will throw an 15.77/8.98 * UnsupportedOperationException if the list iterator returned by 15.77/8.98 * the listIterator method does not implement the add 15.77/8.98 * operation. 15.77/8.98 * 15.77/8.98 * @throws UnsupportedOperationException {@inheritDoc} 15.77/8.98 * @throws ClassCastException {@inheritDoc} 15.77/8.98 * @throws NullPointerException {@inheritDoc} 15.77/8.98 * @throws IllegalArgumentException {@inheritDoc} 15.77/8.98 * @throws IndexOutOfBoundsException {@inheritDoc} 15.77/8.98 */ 15.77/8.98 public boolean addAll(int index, Collection c) { 15.77/8.98 try { 15.77/8.98 boolean modified = false; 15.77/8.98 ListIterator e1 = listIterator(index); 15.77/8.98 Iterator e2 = c.iterator(); 15.77/8.98 while (e2.hasNext()) { 15.77/8.98 e1.add(e2.next()); 15.77/8.98 modified = true; 15.77/8.98 } 15.77/8.98 return modified; 15.77/8.98 } catch (NoSuchElementException exc) { 15.77/8.98 throw new IndexOutOfBoundsException(); 15.77/8.98 } 15.77/8.98 } 15.77/8.98 15.77/8.98 15.77/8.98 // Iterators 15.77/8.98 15.77/8.98 /** 15.77/8.98 * Returns an iterator over the elements in this list (in proper 15.77/8.98 * sequence).

15.77/8.98 * 15.77/8.98 * This implementation merely returns a list iterator over the list. 15.77/8.98 * 15.77/8.98 * @return an iterator over the elements in this list (in proper sequence) 15.77/8.98 */ 15.77/8.98 public Iterator iterator() { 15.77/8.98 return listIterator(); 15.77/8.98 } 15.77/8.98 15.77/8.98 /** 15.77/8.98 * Returns a list iterator over the elements in this list (in proper 15.77/8.98 * sequence). 15.77/8.98 * 15.77/8.98 * @param index index of first element to be returned from the list 15.77/8.98 * iterator (by a call to the next method) 15.77/8.98 * @return a list iterator over the elements in this list (in proper 15.77/8.98 * sequence) 15.77/8.98 * @throws IndexOutOfBoundsException {@inheritDoc} 15.77/8.98 */ 15.77/8.98 public abstract ListIterator listIterator(int index); 15.77/8.98 } 15.77/8.98 15.77/8.98 15.77/8.98 /* 15.77/8.98 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 15.77/8.98 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 15.77/8.98 * 15.77/8.98 * This code is free software; you can redistribute it and/or modify it 15.77/8.98 * under the terms of the GNU General Public License version 2 only, as 15.77/8.98 * published by the Free Software Foundation. Sun designates this 15.77/8.98 * particular file as subject to the "Classpath" exception as provided 15.77/8.98 * by Sun in the LICENSE file that accompanied this code. 15.77/8.98 * 15.77/8.98 * This code is distributed in the hope that it will be useful, but WITHOUT 15.77/8.98 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 15.77/8.98 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15.77/8.98 * version 2 for more details (a copy is included in the LICENSE file that 15.77/8.98 * accompanied this code). 15.77/8.98 * 15.77/8.98 * You should have received a copy of the GNU General Public License version 15.77/8.98 * 2 along with this work; if not, write to the Free Software Foundation, 15.77/8.98 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 15.77/8.98 * 15.77/8.98 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 15.77/8.98 * CA 95054 USA or visit www.sun.com if you need additional information or 15.77/8.98 * have any questions. 15.77/8.98 */ 15.77/8.98 15.77/8.98 package javaUtilEx; 15.77/8.98 15.77/8.98 /** 15.77/8.98 * The root interface in the collection hierarchy. A collection 15.77/8.98 * represents a group of objects, known as its elements. Some 15.77/8.98 * collections allow duplicate elements and others do not. Some are ordered 15.77/8.98 * and others unordered. The JDK does not provide any direct 15.77/8.98 * implementations of this interface: it provides implementations of more 15.77/8.98 * specific subinterfaces like Set and List. This interface 15.77/8.98 * is typically used to pass collections around and manipulate them where 15.77/8.98 * maximum generality is desired. 15.77/8.98 * 15.77/8.98 *

Bags or multisets (unordered collections that may contain 15.77/8.98 * duplicate elements) should implement this interface directly. 15.77/8.98 * 15.77/8.98 *

All general-purpose Collection implementation classes (which 15.77/8.98 * typically implement Collection indirectly through one of its 15.77/8.98 * subinterfaces) should provide two "standard" constructors: a void (no 15.77/8.98 * arguments) constructor, which creates an empty collection, and a 15.77/8.98 * constructor with a single argument of type Collection, which 15.77/8.98 * creates a new collection with the same elements as its argument. In 15.77/8.98 * effect, the latter constructor allows the user to copy any collection, 15.77/8.98 * producing an equivalent collection of the desired implementation type. 15.77/8.98 * There is no way to enforce this convention (as interfaces cannot contain 15.77/8.98 * constructors) but all of the general-purpose Collection 15.77/8.98 * implementations in the Java platform libraries comply. 15.77/8.98 * 15.77/8.98 *

The "destructive" methods contained in this interface, that is, the 15.77/8.98 * methods that modify the collection on which they operate, are specified to 15.77/8.98 * throw UnsupportedOperationException if this collection does not 15.77/8.98 * support the operation. If this is the case, these methods may, but are not 15.77/8.98 * required to, throw an UnsupportedOperationException if the 15.77/8.98 * invocation would have no effect on the collection. For example, invoking 15.77/8.98 * the {@link #addAll(Collection)} method on an unmodifiable collection may, 15.77/8.98 * but is not required to, throw the exception if the collection to be added 15.77/8.98 * is empty. 15.77/8.98 * 15.77/8.98 *

Some collection implementations have restrictions on the elements that 15.77/8.98 * they may contain. For example, some implementations prohibit null elements, 15.77/8.98 * and some have restrictions on the types of their elements. Attempting to 15.77/8.98 * add an ineligible element throws an unchecked exception, typically 15.77/8.98 * NullPointerException or ClassCastException. Attempting 15.77/8.98 * to query the presence of an ineligible element may throw an exception, 15.77/8.98 * or it may simply return false; some implementations will exhibit the former 15.77/8.98 * behavior and some will exhibit the latter. More generally, attempting an 15.77/8.98 * operation on an ineligible element whose completion would not result in 15.77/8.98 * the insertion of an ineligible element into the collection may throw an 15.77/8.98 * exception or it may succeed, at the option of the implementation. 15.77/8.98 * Such exceptions are marked as "optional" in the specification for this 15.77/8.98 * interface. 15.77/8.98 * 15.77/8.98 *

It is up to each collection to determine its own synchronization 15.77/8.98 * policy. In the absence of a stronger guarantee by the 15.77/8.98 * implementation, undefined behavior may result from the invocation 15.77/8.98 * of any method on a collection that is being mutated by another 15.77/8.98 * thread; this includes direct invocations, passing the collection to 15.77/8.98 * a method that might perform invocations, and using an existing 15.77/8.98 * iterator to examine the collection. 15.77/8.98 * 15.77/8.98 *

Many methods in Collections Framework interfaces are defined in 15.77/8.98 * terms of the {@link Object#equals(Object) equals} method. For example, 15.77/8.98 * the specification for the {@link #contains(Object) contains(Object o)} 15.77/8.98 * method says: "returns true if and only if this collection 15.77/8.98 * contains at least one element e such that 15.77/8.98 * (o==null ? e==null : o.equals(e))." This specification should 15.77/8.98 * not be construed to imply that invoking Collection.contains 15.77/8.98 * with a non-null argument o will cause o.equals(e) to be 15.77/8.98 * invoked for any element e. Implementations are free to implement 15.77/8.98 * optimizations whereby the equals invocation is avoided, for 15.77/8.98 * example, by first comparing the hash codes of the two elements. (The 15.77/8.98 * {@link Object#hashCode()} specification guarantees that two objects with 15.77/8.98 * unequal hash codes cannot be equal.) More generally, implementations of 15.77/8.98 * the various Collections Framework interfaces are free to take advantage of 15.77/8.98 * the specified behavior of underlying {@link Object} methods wherever the 15.77/8.98 * implementor deems it appropriate. 15.77/8.98 * 15.77/8.98 *

This interface is a member of the 15.77/8.98 * 15.77/8.98 * Java Collections Framework. 15.77/8.98 * 15.77/8.98 * @author Josh Bloch 15.77/8.98 * @author Neal Gafter 15.77/8.98 * @see Set 15.77/8.98 * @see List 15.77/8.98 * @see Map 15.77/8.98 * @see SortedSet 15.77/8.98 * @see SortedMap 15.77/8.98 * @see HashSet 15.77/8.98 * @see TreeSet 15.77/8.98 * @see ArrayList 15.77/8.98 * @see LinkedList 15.77/8.98 * @see Vector 15.77/8.98 * @see Collections 15.77/8.98 * @see Arrays 15.77/8.98 * @see AbstractCollection 15.77/8.98 * @since 1.2 15.77/8.98 */ 15.77/8.98 15.77/8.98 public interface Collection { 15.77/8.98 // Query Operations 15.77/8.98 15.77/8.98 /** 15.77/8.98 * Returns the number of elements in this collection. If this collection 15.77/8.98 * contains more than Integer.MAX_VALUE elements, returns 15.77/8.98 * Integer.MAX_VALUE. 15.77/8.98 * 15.77/8.98 * @return the number of elements in this collection 15.77/8.98 */ 15.77/8.98 int size(); 15.77/8.98 15.77/8.98 /** 15.77/8.98 * Returns true if this collection contains no elements. 15.77/8.98 * 15.77/8.98 * @return true if this collection contains no elements 15.77/8.98 */ 15.77/8.98 boolean isEmpty(); 15.77/8.98 15.77/8.98 /** 15.77/8.98 * Returns true if this collection contains the specified element. 15.77/8.98 * More formally, returns true if and only if this collection 15.77/8.98 * contains at least one element e such that 15.77/8.98 * (o==null ? e==null : o.equals(e)). 15.77/8.98 * 15.77/8.98 * @param o element whose presence in this collection is to be tested 15.77/8.98 * @return true if this collection contains the specified 15.77/8.98 * element 15.77/8.98 * @throws ClassCastException if the type of the specified element 15.77/8.98 * is incompatible with this collection (optional) 15.77/8.98 * @throws NullPointerException if the specified element is null and this 15.77/8.98 * collection does not permit null elements (optional) 15.77/8.98 */ 15.77/8.98 boolean contains(Object o); 15.77/8.98 15.77/8.98 /** 15.77/8.98 * Returns an iterator over the elements in this collection. There are no 15.77/8.98 * guarantees concerning the order in which the elements are returned 15.77/8.98 * (unless this collection is an instance of some class that provides a 15.77/8.98 * guarantee). 15.77/8.98 * 15.77/8.98 * @return an Iterator over the elements in this collection 15.77/8.98 */ 15.77/8.98 Iterator iterator(); 15.77/8.98 15.77/8.98 // Modification Operations 15.77/8.98 15.77/8.98 /** 15.77/8.98 * Ensures that this collection contains the specified element (optional 15.77/8.98 * operation). Returns true if this collection changed as a 15.77/8.98 * result of the call. (Returns false if this collection does 15.77/8.98 * not permit duplicates and already contains the specified element.)

15.77/8.98 * 15.77/8.98 * Collections that support this operation may place limitations on what 15.77/8.98 * elements may be added to this collection. In particular, some 15.77/8.98 * collections will refuse to add null elements, and others will 15.77/8.98 * impose restrictions on the type of elements that may be added. 15.77/8.98 * Collection classes should clearly specify in their documentation any 15.77/8.98 * restrictions on what elements may be added.

16.05/8.98 * 16.05/8.98 * If a collection refuses to add a particular element for any reason 16.05/8.98 * other than that it already contains the element, it must throw 16.05/8.98 * an exception (rather than returning false). This preserves 16.05/8.98 * the invariant that a collection always contains the specified element 16.05/8.98 * after this call returns. 16.05/8.98 * 16.05/8.98 * @param e element whose presence in this collection is to be ensured 16.05/8.98 * @return true if this collection changed as a result of the 16.05/8.98 * call 16.05/8.98 * @throws UnsupportedOperationException if the add operation 16.05/8.98 * is not supported by this collection 16.05/8.98 * @throws ClassCastException if the class of the specified element 16.05/8.98 * prevents it from being added to this collection 16.05/8.98 * @throws NullPointerException if the specified element is null and this 16.05/8.98 * collection does not permit null elements 16.05/8.98 * @throws IllegalArgumentException if some property of the element 16.05/8.98 * prevents it from being added to this collection 16.05/8.98 * @throws IllegalStateException if the element cannot be added at this 16.05/8.98 * time due to insertion restrictions 16.05/8.98 */ 16.05/8.98 boolean add(E e); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Removes a single instance of the specified element from this 16.05/8.98 * collection, if it is present (optional operation). More formally, 16.05/8.98 * removes an element e such that 16.05/8.98 * (o==null ? e==null : o.equals(e)), if 16.05/8.98 * this collection contains one or more such elements. Returns 16.05/8.98 * true if this collection contained the specified element (or 16.05/8.98 * equivalently, if this collection changed as a result of the call). 16.05/8.98 * 16.05/8.98 * @param o element to be removed from this collection, if present 16.05/8.98 * @return true if an element was removed as a result of this call 16.05/8.98 * @throws ClassCastException if the type of the specified element 16.05/8.98 * is incompatible with this collection (optional) 16.05/8.98 * @throws NullPointerException if the specified element is null and this 16.05/8.98 * collection does not permit null elements (optional) 16.05/8.98 * @throws UnsupportedOperationException if the remove operation 16.05/8.98 * is not supported by this collection 16.05/8.98 */ 16.05/8.98 boolean remove(Object o); 16.05/8.98 16.05/8.98 16.05/8.98 // Bulk Operations 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Returns true if this collection contains all of the elements 16.05/8.98 * in the specified collection. 16.05/8.98 * 16.05/8.98 * @param c collection to be checked for containment in this collection 16.05/8.98 * @return true if this collection contains all of the elements 16.05/8.98 * in the specified collection 16.05/8.98 * @throws ClassCastException if the types of one or more elements 16.05/8.98 * in the specified collection are incompatible with this 16.05/8.98 * collection (optional) 16.05/8.98 * @throws NullPointerException if the specified collection contains one 16.05/8.98 * or more null elements and this collection does not permit null 16.05/8.98 * elements (optional), or if the specified collection is null 16.05/8.98 * @see #contains(Object) 16.05/8.98 */ 16.05/8.98 boolean containsAll(Collection c); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Adds all of the elements in the specified collection to this collection 16.05/8.98 * (optional operation). The behavior of this operation is undefined if 16.05/8.98 * the specified collection is modified while the operation is in progress. 16.05/8.98 * (This implies that the behavior of this call is undefined if the 16.05/8.98 * specified collection is this collection, and this collection is 16.05/8.98 * nonempty.) 16.05/8.98 * 16.05/8.98 * @param c collection containing elements to be added to this collection 16.05/8.98 * @return true if this collection changed as a result of the call 16.05/8.98 * @throws UnsupportedOperationException if the addAll operation 16.05/8.98 * is not supported by this collection 16.05/8.98 * @throws ClassCastException if the class of an element of the specified 16.05/8.98 * collection prevents it from being added to this collection 16.05/8.98 * @throws NullPointerException if the specified collection contains a 16.05/8.98 * null element and this collection does not permit null elements, 16.05/8.98 * or if the specified collection is null 16.05/8.98 * @throws IllegalArgumentException if some property of an element of the 16.05/8.98 * specified collection prevents it from being added to this 16.05/8.98 * collection 16.05/8.98 * @throws IllegalStateException if not all the elements can be added at 16.05/8.98 * this time due to insertion restrictions 16.05/8.98 * @see #add(Object) 16.05/8.98 */ 16.05/8.98 boolean addAll(Collection c); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Removes all of this collection's elements that are also contained in the 16.05/8.98 * specified collection (optional operation). After this call returns, 16.05/8.98 * this collection will contain no elements in common with the specified 16.05/8.98 * collection. 16.05/8.98 * 16.05/8.98 * @param c collection containing elements to be removed from this collection 16.05/8.98 * @return true if this collection changed as a result of the 16.05/8.98 * call 16.05/8.98 * @throws UnsupportedOperationException if the removeAll method 16.05/8.98 * is not supported by this collection 16.05/8.98 * @throws ClassCastException if the types of one or more elements 16.05/8.98 * in this collection are incompatible with the specified 16.05/8.98 * collection (optional) 16.05/8.98 * @throws NullPointerException if this collection contains one or more 16.05/8.98 * null elements and the specified collection does not support 16.05/8.98 * null elements (optional), or if the specified collection is null 16.05/8.98 * @see #remove(Object) 16.05/8.98 * @see #contains(Object) 16.05/8.98 */ 16.05/8.98 boolean removeAll(Collection c); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Retains only the elements in this collection that are contained in the 16.05/8.98 * specified collection (optional operation). In other words, removes from 16.05/8.98 * this collection all of its elements that are not contained in the 16.05/8.98 * specified collection. 16.05/8.98 * 16.05/8.98 * @param c collection containing elements to be retained in this collection 16.05/8.98 * @return true if this collection changed as a result of the call 16.05/8.98 * @throws UnsupportedOperationException if the retainAll operation 16.05/8.98 * is not supported by this collection 16.05/8.98 * @throws ClassCastException if the types of one or more elements 16.05/8.98 * in this collection are incompatible with the specified 16.05/8.98 * collection (optional) 16.05/8.98 * @throws NullPointerException if this collection contains one or more 16.05/8.98 * null elements and the specified collection does not permit null 16.05/8.98 * elements (optional), or if the specified collection is null 16.05/8.98 * @see #remove(Object) 16.05/8.98 * @see #contains(Object) 16.05/8.98 */ 16.05/8.98 boolean retainAll(Collection c); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Removes all of the elements from this collection (optional operation). 16.05/8.98 * The collection will be empty after this method returns. 16.05/8.98 * 16.05/8.98 * @throws UnsupportedOperationException if the clear operation 16.05/8.98 * is not supported by this collection 16.05/8.98 */ 16.05/8.98 void clear(); 16.05/8.98 16.05/8.98 16.05/8.98 // Comparison and hashing 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Compares the specified object with this collection for equality.

16.05/8.98 * 16.05/8.98 * While the Collection interface adds no stipulations to the 16.05/8.98 * general contract for the Object.equals, programmers who 16.05/8.98 * implement the Collection interface "directly" (in other words, 16.05/8.98 * create a class that is a Collection but is not a Set 16.05/8.98 * or a List) must exercise care if they choose to override the 16.05/8.98 * Object.equals. It is not necessary to do so, and the simplest 16.05/8.98 * course of action is to rely on Object's implementation, but 16.05/8.98 * the implementor may wish to implement a "value comparison" in place of 16.05/8.98 * the default "reference comparison." (The List and 16.05/8.98 * Set interfaces mandate such value comparisons.)

16.05/8.98 * 16.05/8.98 * The general contract for the Object.equals method states that 16.05/8.98 * equals must be symmetric (in other words, a.equals(b) if and 16.05/8.98 * only if b.equals(a)). The contracts for List.equals 16.05/8.98 * and Set.equals state that lists are only equal to other lists, 16.05/8.98 * and sets to other sets. Thus, a custom equals method for a 16.05/8.98 * collection class that implements neither the List nor 16.05/8.98 * Set interface must return false when this collection 16.05/8.98 * is compared to any list or set. (By the same logic, it is not possible 16.05/8.98 * to write a class that correctly implements both the Set and 16.05/8.98 * List interfaces.) 16.05/8.98 * 16.05/8.98 * @param o object to be compared for equality with this collection 16.05/8.98 * @return true if the specified object is equal to this 16.05/8.98 * collection 16.05/8.98 * 16.05/8.98 * @see Object#equals(Object) 16.05/8.98 * @see Set#equals(Object) 16.05/8.98 * @see List#equals(Object) 16.05/8.98 */ 16.05/8.98 boolean equals(Object o); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Returns the hash code value for this collection. While the 16.05/8.98 * Collection interface adds no stipulations to the general 16.05/8.98 * contract for the Object.hashCode method, programmers should 16.05/8.98 * take note that any class that overrides the Object.equals 16.05/8.98 * method must also override the Object.hashCode method in order 16.05/8.98 * to satisfy the general contract for the Object.hashCodemethod. 16.05/8.98 * In particular, c1.equals(c2) implies that 16.05/8.98 * c1.hashCode()==c2.hashCode(). 16.05/8.98 * 16.05/8.98 * @return the hash code value for this collection 16.05/8.98 * 16.05/8.98 * @see Object#hashCode() 16.05/8.98 * @see Object#equals(Object) 16.05/8.98 */ 16.05/8.98 int hashCode(); 16.05/8.98 } 16.05/8.98 16.05/8.98 16.05/8.98 /* 16.05/8.98 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 16.05/8.98 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/8.98 * 16.05/8.98 * This code is free software; you can redistribute it and/or modify it 16.05/8.98 * under the terms of the GNU General Public License version 2 only, as 16.05/8.98 * published by the Free Software Foundation. Sun designates this 16.05/8.98 * particular file as subject to the "Classpath" exception as provided 16.05/8.98 * by Sun in the LICENSE file that accompanied this code. 16.05/8.98 * 16.05/8.98 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/8.98 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/8.98 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/8.98 * version 2 for more details (a copy is included in the LICENSE file that 16.05/8.98 * accompanied this code). 16.05/8.98 * 16.05/8.98 * You should have received a copy of the GNU General Public License version 16.05/8.98 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/8.98 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/8.98 * 16.05/8.98 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/8.98 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/8.98 * have any questions. 16.05/8.98 */ 16.05/8.98 16.05/8.98 package javaUtilEx; 16.05/8.98 16.05/8.98 /** 16.05/8.98 * This exception may be thrown by methods that have detected concurrent 16.05/8.98 * modification of an object when such modification is not permissible. 16.05/8.98 *

16.05/8.98 * For example, it is not generally permissible for one thread to modify a Collection 16.05/8.98 * while another thread is iterating over it. In general, the results of the 16.05/8.98 * iteration are undefined under these circumstances. Some Iterator 16.05/8.98 * implementations (including those of all the general purpose collection implementations 16.05/8.98 * provided by the JRE) may choose to throw this exception if this behavior is 16.05/8.98 * detected. Iterators that do this are known as fail-fast iterators, 16.05/8.98 * as they fail quickly and cleanly, rather that risking arbitrary, 16.05/8.98 * non-deterministic behavior at an undetermined time in the future. 16.05/8.98 *

16.05/8.98 * Note that this exception does not always indicate that an object has 16.05/8.98 * been concurrently modified by a different thread. If a single 16.05/8.98 * thread issues a sequence of method invocations that violates the 16.05/8.98 * contract of an object, the object may throw this exception. For 16.05/8.98 * example, if a thread modifies a collection directly while it is 16.05/8.98 * iterating over the collection with a fail-fast iterator, the iterator 16.05/8.98 * will throw this exception. 16.05/8.98 * 16.05/8.98 *

Note that fail-fast behavior cannot be guaranteed as it is, generally 16.05/8.98 * speaking, impossible to make any hard guarantees in the presence of 16.05/8.98 * unsynchronized concurrent modification. Fail-fast operations 16.05/8.98 * throw ConcurrentModificationException on a best-effort basis. 16.05/8.98 * Therefore, it would be wrong to write a program that depended on this 16.05/8.98 * exception for its correctness: ConcurrentModificationException 16.05/8.98 * should be used only to detect bugs. 16.05/8.98 * 16.05/8.98 * @author Josh Bloch 16.05/8.98 * @see Collection 16.05/8.98 * @see Iterator 16.05/8.98 * @see ListIterator 16.05/8.98 * @see Vector 16.05/8.98 * @see LinkedList 16.05/8.98 * @see HashSet 16.05/8.98 * @see Hashtable 16.05/8.98 * @see TreeMap 16.05/8.98 * @see AbstractList 16.05/8.98 * @since 1.2 16.05/8.98 */ 16.05/8.98 public class ConcurrentModificationException extends RuntimeException { 16.05/8.98 /** 16.05/8.98 * Constructs a ConcurrentModificationException with no 16.05/8.98 * detail message. 16.05/8.98 */ 16.05/8.98 public ConcurrentModificationException() { 16.05/8.98 } 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Constructs a ConcurrentModificationException with the 16.05/8.98 * specified detail message. 16.05/8.98 * 16.05/8.98 * @param message the detail message pertaining to this exception. 16.05/8.98 */ 16.05/8.98 public ConcurrentModificationException(String message) { 16.05/8.98 super(message); 16.05/8.98 } 16.05/8.98 } 16.05/8.98 16.05/8.98 16.05/8.98 /* 16.05/8.98 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/8.98 * 16.05/8.98 * This code is free software; you can redistribute it and/or modify it 16.05/8.98 * under the terms of the GNU General Public License version 2 only, as 16.05/8.98 * published by the Free Software Foundation. Sun designates this 16.05/8.98 * particular file as subject to the "Classpath" exception as provided 16.05/8.98 * by Sun in the LICENSE file that accompanied this code. 16.05/8.98 * 16.05/8.98 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/8.98 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/8.98 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/8.98 * version 2 for more details (a copy is included in the LICENSE file that 16.05/8.98 * accompanied this code). 16.05/8.98 * 16.05/8.98 * You should have received a copy of the GNU General Public License version 16.05/8.98 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/8.98 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/8.98 * 16.05/8.98 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/8.98 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/8.98 * have any questions. 16.05/8.98 */ 16.05/8.98 16.05/8.98 /* 16.05/8.98 * This file is available under and governed by the GNU General Public 16.05/8.98 * License version 2 only, as published by the Free Software Foundation. 16.05/8.98 * However, the following notice accompanied the original version of this 16.05/8.98 * file: 16.05/8.98 * 16.05/8.98 * Written by Doug Lea and Josh Bloch with assistance from members of 16.05/8.98 * JCP JSR-166 Expert Group and released to the public domain, as explained 16.05/8.98 * at http://creativecommons.org/licenses/publicdomain 16.05/8.98 */ 16.05/8.98 16.05/8.98 package javaUtilEx; 16.05/8.98 16.05/8.98 /** 16.05/8.98 * A linear collection that supports element insertion and removal at 16.05/8.98 * both ends. The name deque is short for "double ended queue" 16.05/8.98 * and is usually pronounced "deck". Most Deque 16.05/8.98 * implementations place no fixed limits on the number of elements 16.05/8.98 * they may contain, but this interface supports capacity-restricted 16.05/8.98 * deques as well as those with no fixed size limit. 16.05/8.98 * 16.05/8.98 *

This interface defines methods to access the elements at both 16.05/8.98 * ends of the deque. Methods are provided to insert, remove, and 16.05/8.98 * examine the element. Each of these methods exists in two forms: 16.05/8.98 * one throws an exception if the operation fails, the other returns a 16.05/8.98 * special value (either null or false, depending on 16.05/8.98 * the operation). The latter form of the insert operation is 16.05/8.98 * designed specifically for use with capacity-restricted 16.05/8.98 * Deque implementations; in most implementations, insert 16.05/8.98 * operations cannot fail. 16.05/8.98 * 16.05/8.98 *

The twelve methods described above are summarized in the 16.05/8.98 * following table: 16.05/8.98 * 16.05/8.98 *

16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 *
First Element (Head) Last Element (Tail)
Throws exceptionSpecial valueThrows exceptionSpecial value
Insert{@link #addFirst addFirst(e)}{@link #offerFirst offerFirst(e)}{@link #addLast addLast(e)}{@link #offerLast offerLast(e)}
Remove{@link #removeFirst removeFirst()}{@link #pollFirst pollFirst()}{@link #removeLast removeLast()}{@link #pollLast pollLast()}
Examine{@link #getFirst getFirst()}{@link #peekFirst peekFirst()}{@link #getLast getLast()}{@link #peekLast peekLast()}
16.05/8.98 * 16.05/8.98 *

This interface extends the {@link Queue} interface. When a deque is 16.05/8.98 * used as a queue, FIFO (First-In-First-Out) behavior results. Elements are 16.05/8.98 * added at the end of the deque and removed from the beginning. The methods 16.05/8.98 * inherited from the Queue interface are precisely equivalent to 16.05/8.98 * Deque methods as indicated in the following table: 16.05/8.98 * 16.05/8.98 *

16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 *
Queue Method Equivalent Deque Method
{@link java.util.Queue#add add(e)}{@link #addLast addLast(e)}
{@link java.util.Queue#offer offer(e)}{@link #offerLast offerLast(e)}
{@link java.util.Queue#remove remove()}{@link #removeFirst removeFirst()}
{@link java.util.Queue#poll poll()}{@link #pollFirst pollFirst()}
{@link java.util.Queue#element element()}{@link #getFirst getFirst()}
{@link java.util.Queue#peek peek()}{@link #peek peekFirst()}
16.05/8.98 * 16.05/8.98 *

Deques can also be used as LIFO (Last-In-First-Out) stacks. This 16.05/8.98 * interface should be used in preference to the legacy {@link Stack} class. 16.05/8.98 * When a deque is used as a stack, elements are pushed and popped from the 16.05/8.98 * beginning of the deque. Stack methods are precisely equivalent to 16.05/8.98 * Deque methods as indicated in the table below: 16.05/8.98 * 16.05/8.98 *

16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 * 16.05/8.98 *
Stack Method Equivalent Deque Method
{@link #push push(e)}{@link #addFirst addFirst(e)}
{@link #pop pop()}{@link #removeFirst removeFirst()}
{@link #peek peek()}{@link #peekFirst peekFirst()}
16.05/8.98 * 16.05/8.98 *

Note that the {@link #peek peek} method works equally well when 16.05/8.98 * a deque is used as a queue or a stack; in either case, elements are 16.05/8.98 * drawn from the beginning of the deque. 16.05/8.98 * 16.05/8.98 *

This interface provides two methods to remove interior 16.05/8.98 * elements, {@link #removeFirstOccurrence removeFirstOccurrence} and 16.05/8.98 * {@link #removeLastOccurrence removeLastOccurrence}. 16.05/8.98 * 16.05/8.98 *

Unlike the {@link List} interface, this interface does not 16.05/8.98 * provide support for indexed access to elements. 16.05/8.98 * 16.05/8.98 *

While Deque implementations are not strictly required 16.05/8.98 * to prohibit the insertion of null elements, they are strongly 16.05/8.98 * encouraged to do so. Users of any Deque implementations 16.05/8.98 * that do allow null elements are strongly encouraged not to 16.05/8.98 * take advantage of the ability to insert nulls. This is so because 16.05/8.98 * null is used as a special return value by various methods 16.05/8.98 * to indicated that the deque is empty. 16.05/8.98 * 16.05/8.98 *

Deque implementations generally do not define 16.05/8.98 * element-based versions of the equals and hashCode 16.05/8.98 * methods, but instead inherit the identity-based versions from class 16.05/8.98 * Object. 16.05/8.98 * 16.05/8.98 *

This interface is a member of the Java Collections 16.05/8.98 * Framework. 16.05/8.98 * 16.05/8.98 * @author Doug Lea 16.05/8.98 * @author Josh Bloch 16.05/8.98 * @since 1.6 16.05/8.98 * @param the type of elements held in this collection 16.05/8.98 */ 16.05/8.98 16.05/8.98 public interface Deque extends Queue { 16.05/8.98 /** 16.05/8.98 * Inserts the specified element at the front of this deque if it is 16.05/8.98 * possible to do so immediately without violating capacity restrictions. 16.05/8.98 * When using a capacity-restricted deque, it is generally preferable to 16.05/8.98 * use method {@link #offerFirst}. 16.05/8.98 * 16.05/8.98 * @param e the element to add 16.05/8.98 * @throws IllegalStateException if the element cannot be added at this 16.05/8.98 * time due to capacity restrictions 16.05/8.98 * @throws ClassCastException if the class of the specified element 16.05/8.98 * prevents it from being added to this deque 16.05/8.98 * @throws NullPointerException if the specified element is null and this 16.05/8.98 * deque does not permit null elements 16.05/8.98 * @throws IllegalArgumentException if some property of the specified 16.05/8.98 * element prevents it from being added to this deque 16.05/8.98 */ 16.05/8.98 void addFirst(E e); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Inserts the specified element at the end of this deque if it is 16.05/8.98 * possible to do so immediately without violating capacity restrictions. 16.05/8.98 * When using a capacity-restricted deque, it is generally preferable to 16.05/8.98 * use method {@link #offerLast}. 16.05/8.98 * 16.05/8.98 *

This method is equivalent to {@link #add}. 16.05/8.98 * 16.05/8.98 * @param e the element to add 16.05/8.98 * @throws IllegalStateException if the element cannot be added at this 16.05/8.98 * time due to capacity restrictions 16.05/8.98 * @throws ClassCastException if the class of the specified element 16.05/8.98 * prevents it from being added to this deque 16.05/8.98 * @throws NullPointerException if the specified element is null and this 16.05/8.98 * deque does not permit null elements 16.05/8.98 * @throws IllegalArgumentException if some property of the specified 16.05/8.98 * element prevents it from being added to this deque 16.05/8.98 */ 16.05/8.98 void addLast(E e); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Inserts the specified element at the front of this deque unless it would 16.05/8.98 * violate capacity restrictions. When using a capacity-restricted deque, 16.05/8.98 * this method is generally preferable to the {@link #addFirst} method, 16.05/8.98 * which can fail to insert an element only by throwing an exception. 16.05/8.98 * 16.05/8.98 * @param e the element to add 16.05/8.98 * @return true if the element was added to this deque, else 16.05/8.98 * false 16.05/8.98 * @throws ClassCastException if the class of the specified element 16.05/8.98 * prevents it from being added to this deque 16.05/8.98 * @throws NullPointerException if the specified element is null and this 16.05/8.98 * deque does not permit null elements 16.05/8.98 * @throws IllegalArgumentException if some property of the specified 16.05/8.98 * element prevents it from being added to this deque 16.05/8.98 */ 16.05/8.98 boolean offerFirst(E e); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Inserts the specified element at the end of this deque unless it would 16.05/8.98 * violate capacity restrictions. When using a capacity-restricted deque, 16.05/8.98 * this method is generally preferable to the {@link #addLast} method, 16.05/8.98 * which can fail to insert an element only by throwing an exception. 16.05/8.98 * 16.05/8.98 * @param e the element to add 16.05/8.98 * @return true if the element was added to this deque, else 16.05/8.98 * false 16.05/8.98 * @throws ClassCastException if the class of the specified element 16.05/8.98 * prevents it from being added to this deque 16.05/8.98 * @throws NullPointerException if the specified element is null and this 16.05/8.98 * deque does not permit null elements 16.05/8.98 * @throws IllegalArgumentException if some property of the specified 16.05/8.98 * element prevents it from being added to this deque 16.05/8.98 */ 16.05/8.98 boolean offerLast(E e); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Retrieves and removes the first element of this deque. This method 16.05/8.98 * differs from {@link #pollFirst pollFirst} only in that it throws an 16.05/8.98 * exception if this deque is empty. 16.05/8.98 * 16.05/8.98 * @return the head of this deque 16.05/8.98 * @throws NoSuchElementException if this deque is empty 16.05/8.98 */ 16.05/8.98 E removeFirst(); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Retrieves and removes the last element of this deque. This method 16.05/8.98 * differs from {@link #pollLast pollLast} only in that it throws an 16.05/8.98 * exception if this deque is empty. 16.05/8.98 * 16.05/8.98 * @return the tail of this deque 16.05/8.98 * @throws NoSuchElementException if this deque is empty 16.05/8.98 */ 16.05/8.98 E removeLast(); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Retrieves and removes the first element of this deque, 16.05/8.98 * or returns null if this deque is empty. 16.05/8.98 * 16.05/8.98 * @return the head of this deque, or null if this deque is empty 16.05/8.98 */ 16.05/8.98 E pollFirst(); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Retrieves and removes the last element of this deque, 16.05/8.98 * or returns null if this deque is empty. 16.05/8.98 * 16.05/8.98 * @return the tail of this deque, or null if this deque is empty 16.05/8.98 */ 16.05/8.98 E pollLast(); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Retrieves, but does not remove, the first element of this deque. 16.05/8.98 * 16.05/8.98 * This method differs from {@link #peekFirst peekFirst} only in that it 16.05/8.98 * throws an exception if this deque is empty. 16.05/8.98 * 16.05/8.98 * @return the head of this deque 16.05/8.98 * @throws NoSuchElementException if this deque is empty 16.05/8.98 */ 16.05/8.98 E getFirst(); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Retrieves, but does not remove, the last element of this deque. 16.05/8.98 * This method differs from {@link #peekLast peekLast} only in that it 16.05/8.98 * throws an exception if this deque is empty. 16.05/8.98 * 16.05/8.98 * @return the tail of this deque 16.05/8.98 * @throws NoSuchElementException if this deque is empty 16.05/8.98 */ 16.05/8.98 E getLast(); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Retrieves, but does not remove, the first element of this deque, 16.05/8.98 * or returns null if this deque is empty. 16.05/8.98 * 16.05/8.98 * @return the head of this deque, or null if this deque is empty 16.05/8.98 */ 16.05/8.98 E peekFirst(); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Retrieves, but does not remove, the last element of this deque, 16.05/8.98 * or returns null if this deque is empty. 16.05/8.98 * 16.05/8.98 * @return the tail of this deque, or null if this deque is empty 16.05/8.98 */ 16.05/8.98 E peekLast(); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Removes the first occurrence of the specified element from this deque. 16.05/8.98 * If the deque does not contain the element, it is unchanged. 16.05/8.98 * More formally, removes the first element e such that 16.05/8.98 * (o==null ? e==null : o.equals(e)) 16.05/8.98 * (if such an element exists). 16.05/8.98 * Returns true if this deque contained the specified element 16.05/8.98 * (or equivalently, if this deque changed as a result of the call). 16.05/8.98 * 16.05/8.98 * @param o element to be removed from this deque, if present 16.05/8.98 * @return true if an element was removed as a result of this call 16.05/8.98 * @throws ClassCastException if the class of the specified element 16.05/8.98 * is incompatible with this deque (optional) 16.05/8.98 * @throws NullPointerException if the specified element is null and this 16.05/8.98 * deque does not permit null elements (optional) 16.05/8.98 */ 16.05/8.98 boolean removeFirstOccurrence(Object o); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Removes the last occurrence of the specified element from this deque. 16.05/8.98 * If the deque does not contain the element, it is unchanged. 16.05/8.98 * More formally, removes the last element e such that 16.05/8.98 * (o==null ? e==null : o.equals(e)) 16.05/8.98 * (if such an element exists). 16.05/8.98 * Returns true if this deque contained the specified element 16.05/8.98 * (or equivalently, if this deque changed as a result of the call). 16.05/8.98 * 16.05/8.98 * @param o element to be removed from this deque, if present 16.05/8.98 * @return true if an element was removed as a result of this call 16.05/8.98 * @throws ClassCastException if the class of the specified element 16.05/8.98 * is incompatible with this deque (optional) 16.05/8.98 * @throws NullPointerException if the specified element is null and this 16.05/8.98 * deque does not permit null elements (optional) 16.05/8.98 */ 16.05/8.98 boolean removeLastOccurrence(Object o); 16.05/8.98 16.05/8.98 // *** Queue methods *** 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Inserts the specified element into the queue represented by this deque 16.05/8.98 * (in other words, at the tail of this deque) if it is possible to do so 16.05/8.98 * immediately without violating capacity restrictions, returning 16.05/8.98 * true upon success and throwing an 16.05/8.98 * IllegalStateException if no space is currently available. 16.05/8.98 * When using a capacity-restricted deque, it is generally preferable to 16.05/8.98 * use {@link #offer(Object) offer}. 16.05/8.98 * 16.05/8.98 *

This method is equivalent to {@link #addLast}. 16.05/8.98 * 16.05/8.98 * @param e the element to add 16.05/8.98 * @return true (as specified by {@link Collection#add}) 16.05/8.98 * @throws IllegalStateException if the element cannot be added at this 16.05/8.98 * time due to capacity restrictions 16.05/8.98 * @throws ClassCastException if the class of the specified element 16.05/8.98 * prevents it from being added to this deque 16.05/8.98 * @throws NullPointerException if the specified element is null and this 16.05/8.98 * deque does not permit null elements 16.05/8.98 * @throws IllegalArgumentException if some property of the specified 16.05/8.98 * element prevents it from being added to this deque 16.05/8.98 */ 16.05/8.98 boolean add(E e); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Inserts the specified element into the queue represented by this deque 16.05/8.98 * (in other words, at the tail of this deque) if it is possible to do so 16.05/8.98 * immediately without violating capacity restrictions, returning 16.05/8.98 * true upon success and false if no space is currently 16.05/8.98 * available. When using a capacity-restricted deque, this method is 16.05/8.98 * generally preferable to the {@link #add} method, which can fail to 16.05/8.98 * insert an element only by throwing an exception. 16.05/8.98 * 16.05/8.98 *

This method is equivalent to {@link #offerLast}. 16.05/8.98 * 16.05/8.98 * @param e the element to add 16.05/8.98 * @return true if the element was added to this deque, else 16.05/8.98 * false 16.05/8.98 * @throws ClassCastException if the class of the specified element 16.05/8.98 * prevents it from being added to this deque 16.05/8.98 * @throws NullPointerException if the specified element is null and this 16.05/8.98 * deque does not permit null elements 16.05/8.98 * @throws IllegalArgumentException if some property of the specified 16.05/8.98 * element prevents it from being added to this deque 16.05/8.98 */ 16.05/8.98 boolean offer(E e); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Retrieves and removes the head of the queue represented by this deque 16.05/8.98 * (in other words, the first element of this deque). 16.05/8.98 * This method differs from {@link #poll poll} only in that it throws an 16.05/8.98 * exception if this deque is empty. 16.05/8.98 * 16.05/8.98 *

This method is equivalent to {@link #removeFirst()}. 16.05/8.98 * 16.05/8.98 * @return the head of the queue represented by this deque 16.05/8.98 * @throws NoSuchElementException if this deque is empty 16.05/8.98 */ 16.05/8.98 E remove(); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Retrieves and removes the head of the queue represented by this deque 16.05/8.98 * (in other words, the first element of this deque), or returns 16.05/8.98 * null if this deque is empty. 16.05/8.98 * 16.05/8.98 *

This method is equivalent to {@link #pollFirst()}. 16.05/8.98 * 16.05/8.98 * @return the first element of this deque, or null if 16.05/8.98 * this deque is empty 16.05/8.98 */ 16.05/8.98 E poll(); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Retrieves, but does not remove, the head of the queue represented by 16.05/8.98 * this deque (in other words, the first element of this deque). 16.05/8.98 * This method differs from {@link #peek peek} only in that it throws an 16.05/8.98 * exception if this deque is empty. 16.05/8.98 * 16.05/8.98 *

This method is equivalent to {@link #getFirst()}. 16.05/8.98 * 16.05/8.98 * @return the head of the queue represented by this deque 16.05/8.98 * @throws NoSuchElementException if this deque is empty 16.05/8.98 */ 16.05/8.98 E element(); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Retrieves, but does not remove, the head of the queue represented by 16.05/8.98 * this deque (in other words, the first element of this deque), or 16.05/8.98 * returns null if this deque is empty. 16.05/8.98 * 16.05/8.98 *

This method is equivalent to {@link #peekFirst()}. 16.05/8.98 * 16.05/8.98 * @return the head of the queue represented by this deque, or 16.05/8.98 * null if this deque is empty 16.05/8.98 */ 16.05/8.98 E peek(); 16.05/8.98 16.05/8.98 16.05/8.98 // *** Stack methods *** 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Pushes an element onto the stack represented by this deque (in other 16.05/8.98 * words, at the head of this deque) if it is possible to do so 16.05/8.98 * immediately without violating capacity restrictions, returning 16.05/8.98 * true upon success and throwing an 16.05/8.98 * IllegalStateException if no space is currently available. 16.05/8.98 * 16.05/8.98 *

This method is equivalent to {@link #addFirst}. 16.05/8.98 * 16.05/8.98 * @param e the element to push 16.05/8.98 * @throws IllegalStateException if the element cannot be added at this 16.05/8.98 * time due to capacity restrictions 16.05/8.98 * @throws ClassCastException if the class of the specified element 16.05/8.98 * prevents it from being added to this deque 16.05/8.98 * @throws NullPointerException if the specified element is null and this 16.05/8.98 * deque does not permit null elements 16.05/8.98 * @throws IllegalArgumentException if some property of the specified 16.05/8.98 * element prevents it from being added to this deque 16.05/8.98 */ 16.05/8.98 void push(E e); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Pops an element from the stack represented by this deque. In other 16.05/8.98 * words, removes and returns the first element of this deque. 16.05/8.98 * 16.05/8.98 *

This method is equivalent to {@link #removeFirst()}. 16.05/8.98 * 16.05/8.98 * @return the element at the front of this deque (which is the top 16.05/8.98 * of the stack represented by this deque) 16.05/8.98 * @throws NoSuchElementException if this deque is empty 16.05/8.98 */ 16.05/8.98 E pop(); 16.05/8.98 16.05/8.98 16.05/8.98 // *** Collection methods *** 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Removes the first occurrence of the specified element from this deque. 16.05/8.98 * If the deque does not contain the element, it is unchanged. 16.05/8.98 * More formally, removes the first element e such that 16.05/8.98 * (o==null ? e==null : o.equals(e)) 16.05/8.98 * (if such an element exists). 16.05/8.98 * Returns true if this deque contained the specified element 16.05/8.98 * (or equivalently, if this deque changed as a result of the call). 16.05/8.98 * 16.05/8.98 *

This method is equivalent to {@link #removeFirstOccurrence}. 16.05/8.98 * 16.05/8.98 * @param o element to be removed from this deque, if present 16.05/8.98 * @return true if an element was removed as a result of this call 16.05/8.98 * @throws ClassCastException if the class of the specified element 16.05/8.98 * is incompatible with this deque (optional) 16.05/8.98 * @throws NullPointerException if the specified element is null and this 16.05/8.98 * deque does not permit null elements (optional) 16.05/8.98 */ 16.05/8.98 boolean remove(Object o); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Returns true if this deque contains the specified element. 16.05/8.98 * More formally, returns true if and only if this deque contains 16.05/8.98 * at least one element e such that 16.05/8.98 * (o==null ? e==null : o.equals(e)). 16.05/8.98 * 16.05/8.98 * @param o element whose presence in this deque is to be tested 16.05/8.98 * @return true if this deque contains the specified element 16.05/8.98 * @throws ClassCastException if the type of the specified element 16.05/8.98 * is incompatible with this deque (optional) 16.05/8.98 * @throws NullPointerException if the specified element is null and this 16.05/8.98 * deque does not permit null elements (optional) 16.05/8.98 */ 16.05/8.98 boolean contains(Object o); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Returns the number of elements in this deque. 16.05/8.98 * 16.05/8.98 * @return the number of elements in this deque 16.05/8.98 */ 16.05/8.98 public int size(); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Returns an iterator over the elements in this deque in proper sequence. 16.05/8.98 * The elements will be returned in order from first (head) to last (tail). 16.05/8.98 * 16.05/8.98 * @return an iterator over the elements in this deque in proper sequence 16.05/8.98 */ 16.05/8.98 Iterator iterator(); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Returns an iterator over the elements in this deque in reverse 16.05/8.98 * sequential order. The elements will be returned in order from 16.05/8.98 * last (tail) to first (head). 16.05/8.98 * 16.05/8.98 * @return an iterator over the elements in this deque in reverse 16.05/8.98 * sequence 16.05/8.98 */ 16.05/8.98 Iterator descendingIterator(); 16.05/8.98 16.05/8.98 } 16.05/8.98 16.05/8.98 16.05/8.98 /* 16.05/8.98 * Copyright 1994-2003 Sun Microsystems, Inc. All Rights Reserved. 16.05/8.98 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/8.98 * 16.05/8.98 * This code is free software; you can redistribute it and/or modify it 16.05/8.98 * under the terms of the GNU General Public License version 2 only, as 16.05/8.98 * published by the Free Software Foundation. Sun designates this 16.05/8.98 * particular file as subject to the "Classpath" exception as provided 16.05/8.98 * by Sun in the LICENSE file that accompanied this code. 16.05/8.98 * 16.05/8.98 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/8.98 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/8.98 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/8.98 * version 2 for more details (a copy is included in the LICENSE file that 16.05/8.98 * accompanied this code). 16.05/8.98 * 16.05/8.98 * You should have received a copy of the GNU General Public License version 16.05/8.98 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/8.98 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/8.98 * 16.05/8.98 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/8.98 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/8.98 * have any questions. 16.05/8.98 */ 16.05/8.98 16.05/8.98 package javaUtilEx; 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Thrown to indicate that a method has been passed an illegal or 16.05/8.98 * inappropriate argument. 16.05/8.98 * 16.05/8.98 * @author unascribed 16.05/8.98 * @see java.lang.Thread#setPriority(int) 16.05/8.98 * @since JDK1.0 16.05/8.98 */ 16.05/8.98 public 16.05/8.98 class IllegalArgumentException extends RuntimeException { 16.05/8.98 /** 16.05/8.98 * Constructs an IllegalArgumentException with no 16.05/8.98 * detail message. 16.05/8.98 */ 16.05/8.98 public IllegalArgumentException() { 16.05/8.98 super(); 16.05/8.98 } 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Constructs an IllegalArgumentException with the 16.05/8.98 * specified detail message. 16.05/8.98 * 16.05/8.98 * @param s the detail message. 16.05/8.98 */ 16.05/8.98 public IllegalArgumentException(String s) { 16.05/8.98 super(s); 16.05/8.98 } 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Constructs a new exception with the specified detail message and 16.05/8.98 * cause. 16.05/8.98 * 16.05/8.98 *

Note that the detail message associated with cause is 16.05/8.98 * not automatically incorporated in this exception's detail 16.05/8.98 * message. 16.05/8.98 * 16.05/8.98 * @param message the detail message (which is saved for later retrieval 16.05/8.98 * by the {@link Throwable#getMessage()} method). 16.05/8.98 * @param cause the cause (which is saved for later retrieval by the 16.05/8.98 * {@link Throwable#getCause()} method). (A null value 16.05/8.98 * is permitted, and indicates that the cause is nonexistent or 16.05/8.98 * unknown.) 16.05/8.98 * @since 1.5 16.05/8.98 */ 16.05/8.98 public IllegalArgumentException(String message, Throwable cause) { 16.05/8.98 super(message, cause); 16.05/8.98 } 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Constructs a new exception with the specified cause and a detail 16.05/8.98 * message of (cause==null ? null : cause.toString()) (which 16.05/8.98 * typically contains the class and detail message of cause). 16.05/8.98 * This constructor is useful for exceptions that are little more than 16.05/8.98 * wrappers for other throwables (for example, {@link 16.05/8.98 * java.security.PrivilegedActionException}). 16.05/8.98 * 16.05/8.98 * @param cause the cause (which is saved for later retrieval by the 16.05/8.98 * {@link Throwable#getCause()} method). (A null value is 16.05/8.98 * permitted, and indicates that the cause is nonexistent or 16.05/8.98 * unknown.) 16.05/8.98 * @since 1.5 16.05/8.98 */ 16.05/8.98 public IllegalArgumentException(Throwable cause) { 16.05/8.98 super(cause); 16.05/8.98 } 16.05/8.98 16.05/8.98 private static final long serialVersionUID = -5365630128856068164L; 16.05/8.98 } 16.05/8.98 16.05/8.98 16.05/8.98 /* 16.05/8.98 * Copyright 1996-2003 Sun Microsystems, Inc. All Rights Reserved. 16.05/8.98 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/8.98 * 16.05/8.98 * This code is free software; you can redistribute it and/or modify it 16.05/8.98 * under the terms of the GNU General Public License version 2 only, as 16.05/8.98 * published by the Free Software Foundation. Sun designates this 16.05/8.98 * particular file as subject to the "Classpath" exception as provided 16.05/8.98 * by Sun in the LICENSE file that accompanied this code. 16.05/8.98 * 16.05/8.98 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/8.98 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/8.98 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/8.98 * version 2 for more details (a copy is included in the LICENSE file that 16.05/8.98 * accompanied this code). 16.05/8.98 * 16.05/8.98 * You should have received a copy of the GNU General Public License version 16.05/8.98 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/8.98 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/8.98 * 16.05/8.98 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/8.98 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/8.98 * have any questions. 16.05/8.98 */ 16.05/8.98 16.05/8.98 package javaUtilEx; 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Signals that a method has been invoked at an illegal or 16.05/8.98 * inappropriate time. In other words, the Java environment or 16.05/8.98 * Java application is not in an appropriate state for the requested 16.05/8.98 * operation. 16.05/8.98 * 16.05/8.98 * @author Jonni Kanerva 16.05/8.98 * @since JDK1.1 16.05/8.98 */ 16.05/8.98 public 16.05/8.98 class IllegalStateException extends RuntimeException { 16.05/8.98 /** 16.05/8.98 * Constructs an IllegalStateException with no detail message. 16.05/8.98 * A detail message is a String that describes this particular exception. 16.05/8.98 */ 16.05/8.98 public IllegalStateException() { 16.05/8.98 super(); 16.05/8.98 } 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Constructs an IllegalStateException with the specified detail 16.05/8.98 * message. A detail message is a String that describes this particular 16.05/8.98 * exception. 16.05/8.98 * 16.05/8.98 * @param s the String that contains a detailed message 16.05/8.98 */ 16.05/8.98 public IllegalStateException(String s) { 16.05/8.98 super(s); 16.05/8.98 } 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Constructs a new exception with the specified detail message and 16.05/8.98 * cause. 16.05/8.98 * 16.05/8.98 *

Note that the detail message associated with cause is 16.05/8.98 * not automatically incorporated in this exception's detail 16.05/8.98 * message. 16.05/8.98 * 16.05/8.98 * @param message the detail message (which is saved for later retrieval 16.05/8.98 * by the {@link Throwable#getMessage()} method). 16.05/8.98 * @param cause the cause (which is saved for later retrieval by the 16.05/8.98 * {@link Throwable#getCause()} method). (A null value 16.05/8.98 * is permitted, and indicates that the cause is nonexistent or 16.05/8.98 * unknown.) 16.05/8.98 * @since 1.5 16.05/8.98 */ 16.05/8.98 public IllegalStateException(String message, Throwable cause) { 16.05/8.98 super(message, cause); 16.05/8.98 } 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Constructs a new exception with the specified cause and a detail 16.05/8.98 * message of (cause==null ? null : cause.toString()) (which 16.05/8.98 * typically contains the class and detail message of cause). 16.05/8.98 * This constructor is useful for exceptions that are little more than 16.05/8.98 * wrappers for other throwables (for example, {@link 16.05/8.98 * java.security.PrivilegedActionException}). 16.05/8.98 * 16.05/8.98 * @param cause the cause (which is saved for later retrieval by the 16.05/8.98 * {@link Throwable#getCause()} method). (A null value is 16.05/8.98 * permitted, and indicates that the cause is nonexistent or 16.05/8.98 * unknown.) 16.05/8.98 * @since 1.5 16.05/8.98 */ 16.05/8.98 public IllegalStateException(Throwable cause) { 16.05/8.98 super(cause); 16.05/8.98 } 16.05/8.98 16.05/8.98 static final long serialVersionUID = -1848914673093119416L; 16.05/8.98 } 16.05/8.98 16.05/8.98 16.05/8.98 /* 16.05/8.98 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 16.05/8.98 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/8.98 * 16.05/8.98 * This code is free software; you can redistribute it and/or modify it 16.05/8.98 * under the terms of the GNU General Public License version 2 only, as 16.05/8.98 * published by the Free Software Foundation. Sun designates this 16.05/8.98 * particular file as subject to the "Classpath" exception as provided 16.05/8.98 * by Sun in the LICENSE file that accompanied this code. 16.05/8.98 * 16.05/8.98 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/8.98 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/8.98 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/8.98 * version 2 for more details (a copy is included in the LICENSE file that 16.05/8.98 * accompanied this code). 16.05/8.98 * 16.05/8.98 * You should have received a copy of the GNU General Public License version 16.05/8.98 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/8.98 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/8.98 * 16.05/8.98 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/8.98 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/8.98 * have any questions. 16.05/8.98 */ 16.05/8.98 16.05/8.98 package javaUtilEx; 16.05/8.98 16.05/8.98 /** 16.05/8.98 * An iterator over a collection. {@code Iterator} takes the place of 16.05/8.98 * {@link Enumeration} in the Java Collections Framework. Iterators 16.05/8.98 * differ from enumerations in two ways: 16.05/8.98 * 16.05/8.98 *

16.05/8.98 * 16.05/8.98 *

This interface is a member of the 16.05/8.98 * 16.05/8.98 * Java Collections Framework. 16.05/8.98 * 16.05/8.98 * @author Josh Bloch 16.05/8.98 * @see Collection 16.05/8.98 * @see ListIterator 16.05/8.98 * @see Iterable 16.05/8.98 * @since 1.2 16.05/8.98 */ 16.05/8.98 public interface Iterator { 16.05/8.98 /** 16.05/8.98 * Returns {@code true} if the iteration has more elements. 16.05/8.98 * (In other words, returns {@code true} if {@link #next} would 16.05/8.98 * return an element rather than throwing an exception.) 16.05/8.98 * 16.05/8.98 * @return {@code true} if the iteration has more elements 16.05/8.98 */ 16.05/8.98 boolean hasNext(); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Returns the next element in the iteration. 16.05/8.98 * 16.05/8.98 * @return the next element in the iteration 16.05/8.98 * @throws NoSuchElementException if the iteration has no more elements 16.05/8.98 */ 16.05/8.98 E next(); 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Removes from the underlying collection the last element returned 16.05/8.98 * by this iterator (optional operation). This method can be called 16.05/8.98 * only once per call to {@link #next}. The behavior of an iterator 16.05/8.98 * is unspecified if the underlying collection is modified while the 16.05/8.98 * iteration is in progress in any way other than by calling this 16.05/8.98 * method. 16.05/8.98 * 16.05/8.98 * @throws UnsupportedOperationException if the {@code remove} 16.05/8.98 * operation is not supported by this iterator 16.05/8.98 * 16.05/8.98 * @throws IllegalStateException if the {@code next} method has not 16.05/8.98 * yet been called, or the {@code remove} method has already 16.05/8.98 * been called after the last call to the {@code next} 16.05/8.98 * method 16.05/8.98 */ 16.05/8.98 void remove(); 16.05/8.98 } 16.05/8.98 16.05/8.98 16.05/8.98 package javaUtilEx; 16.05/8.98 16.05/8.98 public class juLinkedListCreateGetFirst { 16.05/8.98 public static void main(String[] args) { 16.05/8.98 Random.args = args; 16.05/8.98 16.05/8.98 LinkedList l = createList(Random.random()); 16.05/8.98 Content c = l.getFirst(); 16.05/8.98 } 16.05/8.98 16.05/8.98 public static LinkedList createList(int n) { 16.05/8.98 LinkedList l = new LinkedList(); 16.05/8.98 while (n > 0) { 16.05/8.98 l.addLast(new Content(Random.random())); 16.05/8.98 n--; 16.05/8.98 } 16.05/8.98 return l; 16.05/8.98 } 16.05/8.98 } 16.05/8.98 16.05/8.98 final class Content { 16.05/8.98 int val; 16.05/8.98 16.05/8.98 public Content(int v) { 16.05/8.98 this.val = v; 16.05/8.98 } 16.05/8.98 16.05/8.98 public int hashCode() { 16.05/8.98 return val^31; 16.05/8.98 } 16.05/8.98 16.05/8.98 public boolean equals(Object o) { 16.05/8.98 if (o instanceof Content) { 16.05/8.98 return this.val == ((Content) o).val; 16.05/8.98 } 16.05/8.98 return false; 16.05/8.98 } 16.05/8.98 } 16.05/8.98 16.05/8.98 16.05/8.98 /* 16.05/8.98 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 16.05/8.98 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/8.98 * 16.05/8.98 * This code is free software; you can redistribute it and/or modify it 16.05/8.98 * under the terms of the GNU General Public License version 2 only, as 16.05/8.98 * published by the Free Software Foundation. Sun designates this 16.05/8.98 * particular file as subject to the "Classpath" exception as provided 16.05/8.98 * by Sun in the LICENSE file that accompanied this code. 16.05/8.98 * 16.05/8.98 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/8.98 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/8.98 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/8.98 * version 2 for more details (a copy is included in the LICENSE file that 16.05/8.98 * accompanied this code). 16.05/8.98 * 16.05/8.98 * You should have received a copy of the GNU General Public License version 16.05/8.98 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/8.98 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/8.98 * 16.05/8.98 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/8.98 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/8.98 * have any questions. 16.05/8.98 */ 16.05/8.98 16.05/8.98 package javaUtilEx; 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Linked list implementation of the List interface. Implements all 16.05/8.98 * optional list operations, and permits all elements (including 16.05/8.98 * null). In addition to implementing the List interface, 16.05/8.98 * the LinkedList class provides uniformly named methods to 16.05/8.98 * get, remove and insert an element at the 16.05/8.98 * beginning and end of the list. These operations allow linked lists to be 16.05/8.98 * used as a stack, {@linkplain Queue queue}, or {@linkplain Deque 16.05/8.98 * double-ended queue}.

16.05/8.98 * 16.05/8.98 * The class implements the Deque interface, providing 16.05/8.98 * first-in-first-out queue operations for add, 16.05/8.98 * poll, along with other stack and deque operations.

16.05/8.98 * 16.05/8.98 * All of the operations perform as could be expected for a doubly-linked 16.05/8.98 * list. Operations that index into the list will traverse the list from 16.05/8.98 * the beginning or the end, whichever is closer to the specified index.

16.05/8.98 * 16.05/8.98 *

Note that this implementation is not synchronized. 16.05/8.98 * If multiple threads access a linked list concurrently, and at least 16.05/8.98 * one of the threads modifies the list structurally, it must be 16.05/8.98 * synchronized externally. (A structural modification is any operation 16.05/8.98 * that adds or deletes one or more elements; merely setting the value of 16.05/8.98 * an element is not a structural modification.) This is typically 16.05/8.98 * accomplished by synchronizing on some object that naturally 16.05/8.98 * encapsulates the list. 16.05/8.98 * 16.05/8.98 * If no such object exists, the list should be "wrapped" using the 16.05/8.98 * {@link Collections#synchronizedList Collections.synchronizedList} 16.05/8.98 * method. This is best done at creation time, to prevent accidental 16.05/8.98 * unsynchronized access to the list:

16.05/8.98	 *   List list = Collections.synchronizedList(new LinkedList(...));
16.05/8.98 * 16.05/8.98 *

The iterators returned by this class's iterator and 16.05/8.98 * listIterator methods are fail-fast: if the list is 16.05/8.98 * structurally modified at any time after the iterator is created, in 16.05/8.98 * any way except through the Iterator's own remove or 16.05/8.98 * add methods, the iterator will throw a {@link 16.05/8.98 * ConcurrentModificationException}. Thus, in the face of concurrent 16.05/8.98 * modification, the iterator fails quickly and cleanly, rather than 16.05/8.98 * risking arbitrary, non-deterministic behavior at an undetermined 16.05/8.98 * time in the future. 16.05/8.98 * 16.05/8.98 *

Note that the fail-fast behavior of an iterator cannot be guaranteed 16.05/8.98 * as it is, generally speaking, impossible to make any hard guarantees in the 16.05/8.98 * presence of unsynchronized concurrent modification. Fail-fast iterators 16.05/8.98 * throw ConcurrentModificationException on a best-effort basis. 16.05/8.98 * Therefore, it would be wrong to write a program that depended on this 16.05/8.98 * exception for its correctness: the fail-fast behavior of iterators 16.05/8.98 * should be used only to detect bugs. 16.05/8.98 * 16.05/8.98 *

This class is a member of the 16.05/8.98 * 16.05/8.98 * Java Collections Framework. 16.05/8.98 * 16.05/8.98 * @author Josh Bloch 16.05/8.98 * @see List 16.05/8.98 * @see ArrayList 16.05/8.98 * @see Vector 16.05/8.98 * @since 1.2 16.05/8.98 * @param the type of elements held in this collection 16.05/8.98 */ 16.05/8.98 16.05/8.98 public class LinkedList 16.05/8.98 extends AbstractSequentialList 16.05/8.98 implements List, Deque 16.05/8.98 { 16.05/8.98 private transient Entry header = new Entry(null, null, null); 16.05/8.98 private transient int size = 0; 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Constructs an empty list. 16.05/8.98 */ 16.05/8.98 public LinkedList() { 16.05/8.98 header.next = header.previous = header; 16.05/8.98 } 16.05/8.98 16.05/8.98 /** 16.05/8.98 * Constructs a list containing the elements of the specified 16.05/8.98 * collection, in the order they are returned by the collection's 16.05/8.98 * iterator. 16.05/8.98 * 16.05/8.98 * @param c the collection whose elements are to be placed into this list 16.05/8.98 * @throws NullPointerException if the specified collection is null 16.05/8.98 */ 16.05/8.99 public LinkedList(Collection c) { 16.05/8.99 this(); 16.05/8.99 addAll(c); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns the first element in this list. 16.05/8.99 * 16.05/8.99 * @return the first element in this list 16.05/8.99 * @throws NoSuchElementException if this list is empty 16.05/8.99 */ 16.05/8.99 public E getFirst() { 16.05/8.99 if (size==0) 16.05/8.99 throw new NoSuchElementException(); 16.05/8.99 16.05/8.99 return header.next.element; 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns the last element in this list. 16.05/8.99 * 16.05/8.99 * @return the last element in this list 16.05/8.99 * @throws NoSuchElementException if this list is empty 16.05/8.99 */ 16.05/8.99 public E getLast() { 16.05/8.99 if (size==0) 16.05/8.99 throw new NoSuchElementException(); 16.05/8.99 16.05/8.99 return header.previous.element; 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Removes and returns the first element from this list. 16.05/8.99 * 16.05/8.99 * @return the first element from this list 16.05/8.99 * @throws NoSuchElementException if this list is empty 16.05/8.99 */ 16.05/8.99 public E removeFirst() { 16.05/8.99 return remove(header.next); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Removes and returns the last element from this list. 16.05/8.99 * 16.05/8.99 * @return the last element from this list 16.05/8.99 * @throws NoSuchElementException if this list is empty 16.05/8.99 */ 16.05/8.99 public E removeLast() { 16.05/8.99 return remove(header.previous); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Inserts the specified element at the beginning of this list. 16.05/8.99 * 16.05/8.99 * @param e the element to add 16.05/8.99 */ 16.05/8.99 public void addFirst(E e) { 16.05/8.99 addBefore(e, header.next); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Appends the specified element to the end of this list. 16.05/8.99 * 16.05/8.99 *

This method is equivalent to {@link #add}. 16.05/8.99 * 16.05/8.99 * @param e the element to add 16.05/8.99 */ 16.05/8.99 public void addLast(E e) { 16.05/8.99 addBefore(e, header); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns true if this list contains the specified element. 16.05/8.99 * More formally, returns true if and only if this list contains 16.05/8.99 * at least one element e such that 16.05/8.99 * (o==null ? e==null : o.equals(e)). 16.05/8.99 * 16.05/8.99 * @param o element whose presence in this list is to be tested 16.05/8.99 * @return true if this list contains the specified element 16.05/8.99 */ 16.05/8.99 public boolean contains(Object o) { 16.05/8.99 return indexOf(o) != -1; 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns the number of elements in this list. 16.05/8.99 * 16.05/8.99 * @return the number of elements in this list 16.05/8.99 */ 16.05/8.99 public int size() { 16.05/8.99 return size; 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Appends the specified element to the end of this list. 16.05/8.99 * 16.05/8.99 *

This method is equivalent to {@link #addLast}. 16.05/8.99 * 16.05/8.99 * @param e element to be appended to this list 16.05/8.99 * @return true (as specified by {@link Collection#add}) 16.05/8.99 */ 16.05/8.99 public boolean add(E e) { 16.05/8.99 addBefore(e, header); 16.05/8.99 return true; 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Removes the first occurrence of the specified element from this list, 16.05/8.99 * if it is present. If this list does not contain the element, it is 16.05/8.99 * unchanged. More formally, removes the element with the lowest index 16.05/8.99 * i such that 16.05/8.99 * (o==null ? get(i)==null : o.equals(get(i))) 16.05/8.99 * (if such an element exists). Returns true if this list 16.05/8.99 * contained the specified element (or equivalently, if this list 16.05/8.99 * changed as a result of the call). 16.05/8.99 * 16.05/8.99 * @param o element to be removed from this list, if present 16.05/8.99 * @return true if this list contained the specified element 16.05/8.99 */ 16.05/8.99 public boolean remove(Object o) { 16.05/8.99 if (o==null) { 16.05/8.99 for (Entry e = header.next; e != header; e = e.next) { 16.05/8.99 if (e.element==null) { 16.05/8.99 remove(e); 16.05/8.99 return true; 16.05/8.99 } 16.05/8.99 } 16.05/8.99 } else { 16.05/8.99 for (Entry e = header.next; e != header; e = e.next) { 16.05/8.99 if (o.equals(e.element)) { 16.05/8.99 remove(e); 16.05/8.99 return true; 16.05/8.99 } 16.05/8.99 } 16.05/8.99 } 16.05/8.99 return false; 16.05/8.99 } 16.05/8.99 /** 16.05/8.99 * Removes all of the elements from this list. 16.05/8.99 */ 16.05/8.99 public void clear() { 16.05/8.99 Entry e = header.next; 16.05/8.99 while (e != header) { 16.05/8.99 Entry next = e.next; 16.05/8.99 e.next = e.previous = null; 16.05/8.99 e.element = null; 16.05/8.99 e = next; 16.05/8.99 } 16.05/8.99 header.next = header.previous = header; 16.05/8.99 size = 0; 16.05/8.99 modCount++; 16.05/8.99 } 16.05/8.99 16.05/8.99 16.05/8.99 // Positional Access Operations 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns the element at the specified position in this list. 16.05/8.99 * 16.05/8.99 * @param index index of the element to return 16.05/8.99 * @return the element at the specified position in this list 16.05/8.99 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/8.99 */ 16.05/8.99 public E get(int index) { 16.05/8.99 return entry(index).element; 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Replaces the element at the specified position in this list with the 16.05/8.99 * specified element. 16.05/8.99 * 16.05/8.99 * @param index index of the element to replace 16.05/8.99 * @param element element to be stored at the specified position 16.05/8.99 * @return the element previously at the specified position 16.05/8.99 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/8.99 */ 16.05/8.99 public E set(int index, E element) { 16.05/8.99 Entry e = entry(index); 16.05/8.99 E oldVal = e.element; 16.05/8.99 e.element = element; 16.05/8.99 return oldVal; 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Inserts the specified element at the specified position in this list. 16.05/8.99 * Shifts the element currently at that position (if any) and any 16.05/8.99 * subsequent elements to the right (adds one to their indices). 16.05/8.99 * 16.05/8.99 * @param index index at which the specified element is to be inserted 16.05/8.99 * @param element element to be inserted 16.05/8.99 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/8.99 */ 16.05/8.99 public void add(int index, E element) { 16.05/8.99 addBefore(element, (index==size ? header : entry(index))); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Removes the element at the specified position in this list. Shifts any 16.05/8.99 * subsequent elements to the left (subtracts one from their indices). 16.05/8.99 * Returns the element that was removed from the list. 16.05/8.99 * 16.05/8.99 * @param index the index of the element to be removed 16.05/8.99 * @return the element previously at the specified position 16.05/8.99 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/8.99 */ 16.05/8.99 public E remove(int index) { 16.05/8.99 return remove(entry(index)); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns the indexed entry. 16.05/8.99 */ 16.05/8.99 private Entry entry(int index) { 16.05/8.99 if (index < 0 || index >= size) 16.05/8.99 throw new IndexOutOfBoundsException(); 16.05/8.99 Entry e = header; 16.05/8.99 if (index < (size >> 1)) { 16.05/8.99 for (int i = 0; i <= index; i++) 16.05/8.99 e = e.next; 16.05/8.99 } else { 16.05/8.99 for (int i = size; i > index; i--) 16.05/8.99 e = e.previous; 16.05/8.99 } 16.05/8.99 return e; 16.05/8.99 } 16.05/8.99 16.05/8.99 16.05/8.99 // Search Operations 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns the index of the first occurrence of the specified element 16.05/8.99 * in this list, or -1 if this list does not contain the element. 16.05/8.99 * More formally, returns the lowest index i such that 16.05/8.99 * (o==null ? get(i)==null : o.equals(get(i))), 16.05/8.99 * or -1 if there is no such index. 16.05/8.99 * 16.05/8.99 * @param o element to search for 16.05/8.99 * @return the index of the first occurrence of the specified element in 16.05/8.99 * this list, or -1 if this list does not contain the element 16.05/8.99 */ 16.05/8.99 public int indexOf(Object o) { 16.05/8.99 int index = 0; 16.05/8.99 if (o==null) { 16.05/8.99 for (Entry e = header.next; e != header; e = e.next) { 16.05/8.99 if (e.element==null) 16.05/8.99 return index; 16.05/8.99 index++; 16.05/8.99 } 16.05/8.99 } else { 16.05/8.99 for (Entry e = header.next; e != header; e = e.next) { 16.05/8.99 if (o.equals(e.element)) 16.05/8.99 return index; 16.05/8.99 index++; 16.05/8.99 } 16.05/8.99 } 16.05/8.99 return -1; 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns the index of the last occurrence of the specified element 16.05/8.99 * in this list, or -1 if this list does not contain the element. 16.05/8.99 * More formally, returns the highest index i such that 16.05/8.99 * (o==null ? get(i)==null : o.equals(get(i))), 16.05/8.99 * or -1 if there is no such index. 16.05/8.99 * 16.05/8.99 * @param o element to search for 16.05/8.99 * @return the index of the last occurrence of the specified element in 16.05/8.99 * this list, or -1 if this list does not contain the element 16.05/8.99 */ 16.05/8.99 public int lastIndexOf(Object o) { 16.05/8.99 int index = size; 16.05/8.99 if (o==null) { 16.05/8.99 for (Entry e = header.previous; e != header; e = e.previous) { 16.05/8.99 index--; 16.05/8.99 if (e.element==null) 16.05/8.99 return index; 16.05/8.99 } 16.05/8.99 } else { 16.05/8.99 for (Entry e = header.previous; e != header; e = e.previous) { 16.05/8.99 index--; 16.05/8.99 if (o.equals(e.element)) 16.05/8.99 return index; 16.05/8.99 } 16.05/8.99 } 16.05/8.99 return -1; 16.05/8.99 } 16.05/8.99 16.05/8.99 // Queue operations. 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Retrieves, but does not remove, the head (first element) of this list. 16.05/8.99 * @return the head of this list, or null if this list is empty 16.05/8.99 * @since 1.5 16.05/8.99 */ 16.05/8.99 public E peek() { 16.05/8.99 if (size==0) 16.05/8.99 return null; 16.05/8.99 return getFirst(); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Retrieves, but does not remove, the head (first element) of this list. 16.05/8.99 * @return the head of this list 16.05/8.99 * @throws NoSuchElementException if this list is empty 16.05/8.99 * @since 1.5 16.05/8.99 */ 16.05/8.99 public E element() { 16.05/8.99 return getFirst(); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Retrieves and removes the head (first element) of this list 16.05/8.99 * @return the head of this list, or null if this list is empty 16.05/8.99 * @since 1.5 16.05/8.99 */ 16.05/8.99 public E poll() { 16.05/8.99 if (size==0) 16.05/8.99 return null; 16.05/8.99 return removeFirst(); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Retrieves and removes the head (first element) of this list. 16.05/8.99 * 16.05/8.99 * @return the head of this list 16.05/8.99 * @throws NoSuchElementException if this list is empty 16.05/8.99 * @since 1.5 16.05/8.99 */ 16.05/8.99 public E remove() { 16.05/8.99 return removeFirst(); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Adds the specified element as the tail (last element) of this list. 16.05/8.99 * 16.05/8.99 * @param e the element to add 16.05/8.99 * @return true (as specified by {@link Queue#offer}) 16.05/8.99 * @since 1.5 16.05/8.99 */ 16.05/8.99 public boolean offer(E e) { 16.05/8.99 return add(e); 16.05/8.99 } 16.05/8.99 16.05/8.99 // Deque operations 16.05/8.99 /** 16.05/8.99 * Inserts the specified element at the front of this list. 16.05/8.99 * 16.05/8.99 * @param e the element to insert 16.05/8.99 * @return true (as specified by {@link Deque#offerFirst}) 16.05/8.99 * @since 1.6 16.05/8.99 */ 16.05/8.99 public boolean offerFirst(E e) { 16.05/8.99 addFirst(e); 16.05/8.99 return true; 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Inserts the specified element at the end of this list. 16.05/8.99 * 16.05/8.99 * @param e the element to insert 16.05/8.99 * @return true (as specified by {@link Deque#offerLast}) 16.05/8.99 * @since 1.6 16.05/8.99 */ 16.05/8.99 public boolean offerLast(E e) { 16.05/8.99 addLast(e); 16.05/8.99 return true; 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Retrieves, but does not remove, the first element of this list, 16.05/8.99 * or returns null if this list is empty. 16.05/8.99 * 16.05/8.99 * @return the first element of this list, or null 16.05/8.99 * if this list is empty 16.05/8.99 * @since 1.6 16.05/8.99 */ 16.05/8.99 public E peekFirst() { 16.05/8.99 if (size==0) 16.05/8.99 return null; 16.05/8.99 return getFirst(); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Retrieves, but does not remove, the last element of this list, 16.05/8.99 * or returns null if this list is empty. 16.05/8.99 * 16.05/8.99 * @return the last element of this list, or null 16.05/8.99 * if this list is empty 16.05/8.99 * @since 1.6 16.05/8.99 */ 16.05/8.99 public E peekLast() { 16.05/8.99 if (size==0) 16.05/8.99 return null; 16.05/8.99 return getLast(); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Retrieves and removes the first element of this list, 16.05/8.99 * or returns null if this list is empty. 16.05/8.99 * 16.05/8.99 * @return the first element of this list, or null if 16.05/8.99 * this list is empty 16.05/8.99 * @since 1.6 16.05/8.99 */ 16.05/8.99 public E pollFirst() { 16.05/8.99 if (size==0) 16.05/8.99 return null; 16.05/8.99 return removeFirst(); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Retrieves and removes the last element of this list, 16.05/8.99 * or returns null if this list is empty. 16.05/8.99 * 16.05/8.99 * @return the last element of this list, or null if 16.05/8.99 * this list is empty 16.05/8.99 * @since 1.6 16.05/8.99 */ 16.05/8.99 public E pollLast() { 16.05/8.99 if (size==0) 16.05/8.99 return null; 16.05/8.99 return removeLast(); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Pushes an element onto the stack represented by this list. In other 16.05/8.99 * words, inserts the element at the front of this list. 16.05/8.99 * 16.05/8.99 *

This method is equivalent to {@link #addFirst}. 16.05/8.99 * 16.05/8.99 * @param e the element to push 16.05/8.99 * @since 1.6 16.05/8.99 */ 16.05/8.99 public void push(E e) { 16.05/8.99 addFirst(e); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Pops an element from the stack represented by this list. In other 16.05/8.99 * words, removes and returns the first element of this list. 16.05/8.99 * 16.05/8.99 *

This method is equivalent to {@link #removeFirst()}. 16.05/8.99 * 16.05/8.99 * @return the element at the front of this list (which is the top 16.05/8.99 * of the stack represented by this list) 16.05/8.99 * @throws NoSuchElementException if this list is empty 16.05/8.99 * @since 1.6 16.05/8.99 */ 16.05/8.99 public E pop() { 16.05/8.99 return removeFirst(); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Removes the first occurrence of the specified element in this 16.05/8.99 * list (when traversing the list from head to tail). If the list 16.05/8.99 * does not contain the element, it is unchanged. 16.05/8.99 * 16.05/8.99 * @param o element to be removed from this list, if present 16.05/8.99 * @return true if the list contained the specified element 16.05/8.99 * @since 1.6 16.05/8.99 */ 16.05/8.99 public boolean removeFirstOccurrence(Object o) { 16.05/8.99 return remove(o); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Removes the last occurrence of the specified element in this 16.05/8.99 * list (when traversing the list from head to tail). If the list 16.05/8.99 * does not contain the element, it is unchanged. 16.05/8.99 * 16.05/8.99 * @param o element to be removed from this list, if present 16.05/8.99 * @return true if the list contained the specified element 16.05/8.99 * @since 1.6 16.05/8.99 */ 16.05/8.99 public boolean removeLastOccurrence(Object o) { 16.05/8.99 if (o==null) { 16.05/8.99 for (Entry e = header.previous; e != header; e = e.previous) { 16.05/8.99 if (e.element==null) { 16.05/8.99 remove(e); 16.05/8.99 return true; 16.05/8.99 } 16.05/8.99 } 16.05/8.99 } else { 16.05/8.99 for (Entry e = header.previous; e != header; e = e.previous) { 16.05/8.99 if (o.equals(e.element)) { 16.05/8.99 remove(e); 16.05/8.99 return true; 16.05/8.99 } 16.05/8.99 } 16.05/8.99 } 16.05/8.99 return false; 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns a list-iterator of the elements in this list (in proper 16.05/8.99 * sequence), starting at the specified position in the list. 16.05/8.99 * Obeys the general contract of List.listIterator(int).

16.05/8.99 * 16.05/8.99 * The list-iterator is fail-fast: if the list is structurally 16.05/8.99 * modified at any time after the Iterator is created, in any way except 16.05/8.99 * through the list-iterator's own remove or add 16.05/8.99 * methods, the list-iterator will throw a 16.05/8.99 * ConcurrentModificationException. Thus, in the face of 16.05/8.99 * concurrent modification, the iterator fails quickly and cleanly, rather 16.05/8.99 * than risking arbitrary, non-deterministic behavior at an undetermined 16.05/8.99 * time in the future. 16.05/8.99 * 16.05/8.99 * @param index index of the first element to be returned from the 16.05/8.99 * list-iterator (by a call to next) 16.05/8.99 * @return a ListIterator of the elements in this list (in proper 16.05/8.99 * sequence), starting at the specified position in the list 16.05/8.99 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/8.99 * @see List#listIterator(int) 16.05/8.99 */ 16.05/8.99 public ListIterator listIterator(int index) { 16.05/8.99 return new ListItr(index); 16.05/8.99 } 16.05/8.99 16.05/8.99 private class ListItr implements ListIterator { 16.05/8.99 private Entry lastReturned = header; 16.05/8.99 private Entry next; 16.05/8.99 private int nextIndex; 16.05/8.99 private int expectedModCount = modCount; 16.05/8.99 16.05/8.99 ListItr(int index) { 16.05/8.99 if (index < 0 || index > size) 16.05/8.99 throw new IndexOutOfBoundsException(); 16.05/8.99 if (index < (size >> 1)) { 16.05/8.99 next = header.next; 16.05/8.99 for (nextIndex=0; nextIndexindex; nextIndex--) 16.05/8.99 next = next.previous; 16.05/8.99 } 16.05/8.99 } 16.05/8.99 16.05/8.99 public boolean hasNext() { 16.05/8.99 return nextIndex != size; 16.05/8.99 } 16.05/8.99 16.05/8.99 public E next() { 16.05/8.99 checkForComodification(); 16.05/8.99 if (nextIndex == size) 16.05/8.99 throw new NoSuchElementException(); 16.05/8.99 16.05/8.99 lastReturned = next; 16.05/8.99 next = next.next; 16.05/8.99 nextIndex++; 16.05/8.99 return lastReturned.element; 16.05/8.99 } 16.05/8.99 16.05/8.99 public boolean hasPrevious() { 16.05/8.99 return nextIndex != 0; 16.05/8.99 } 16.05/8.99 16.05/8.99 public E previous() { 16.05/8.99 if (nextIndex == 0) 16.05/8.99 throw new NoSuchElementException(); 16.05/8.99 16.05/8.99 lastReturned = next = next.previous; 16.05/8.99 nextIndex--; 16.05/8.99 checkForComodification(); 16.05/8.99 return lastReturned.element; 16.05/8.99 } 16.05/8.99 16.05/8.99 public int nextIndex() { 16.05/8.99 return nextIndex; 16.05/8.99 } 16.05/8.99 16.05/8.99 public int previousIndex() { 16.05/8.99 return nextIndex-1; 16.05/8.99 } 16.05/8.99 16.05/8.99 public void remove() { 16.05/8.99 checkForComodification(); 16.05/8.99 Entry lastNext = lastReturned.next; 16.05/8.99 try { 16.05/8.99 LinkedList.this.remove(lastReturned); 16.05/8.99 } catch (NoSuchElementException e) { 16.05/8.99 throw new IllegalStateException(); 16.05/8.99 } 16.05/8.99 if (next==lastReturned) 16.05/8.99 next = lastNext; 16.05/8.99 else 16.05/8.99 nextIndex--; 16.05/8.99 lastReturned = header; 16.05/8.99 expectedModCount++; 16.05/8.99 } 16.05/8.99 16.05/8.99 public void set(E e) { 16.05/8.99 if (lastReturned == header) 16.05/8.99 throw new IllegalStateException(); 16.05/8.99 checkForComodification(); 16.05/8.99 lastReturned.element = e; 16.05/8.99 } 16.05/8.99 16.05/8.99 public void add(E e) { 16.05/8.99 checkForComodification(); 16.05/8.99 lastReturned = header; 16.05/8.99 addBefore(e, next); 16.05/8.99 nextIndex++; 16.05/8.99 expectedModCount++; 16.05/8.99 } 16.05/8.99 16.05/8.99 final void checkForComodification() { 16.05/8.99 if (modCount != expectedModCount) 16.05/8.99 throw new ConcurrentModificationException(); 16.05/8.99 } 16.05/8.99 } 16.05/8.99 16.05/8.99 private static class Entry { 16.05/8.99 E element; 16.05/8.99 Entry next; 16.05/8.99 Entry previous; 16.05/8.99 16.05/8.99 Entry(E element, Entry next, Entry previous) { 16.05/8.99 this.element = element; 16.05/8.99 this.next = next; 16.05/8.99 this.previous = previous; 16.05/8.99 } 16.05/8.99 } 16.05/8.99 16.05/8.99 private Entry addBefore(E e, Entry entry) { 16.05/8.99 Entry newEntry = new Entry(e, entry, entry.previous); 16.05/8.99 newEntry.previous.next = newEntry; 16.05/8.99 newEntry.next.previous = newEntry; 16.05/8.99 size++; 16.05/8.99 modCount++; 16.05/8.99 return newEntry; 16.05/8.99 } 16.05/8.99 16.05/8.99 private E remove(Entry e) { 16.05/8.99 if (e == header) 16.05/8.99 throw new NoSuchElementException(); 16.05/8.99 16.05/8.99 E result = e.element; 16.05/8.99 e.previous.next = e.next; 16.05/8.99 e.next.previous = e.previous; 16.05/8.99 e.next = e.previous = null; 16.05/8.99 e.element = null; 16.05/8.99 size--; 16.05/8.99 modCount++; 16.05/8.99 return result; 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * @since 1.6 16.05/8.99 */ 16.05/8.99 public Iterator descendingIterator() { 16.05/8.99 return new DescendingIterator(); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** Adapter to provide descending iterators via ListItr.previous */ 16.05/8.99 private class DescendingIterator implements Iterator { 16.05/8.99 final ListItr itr = new ListItr(size()); 16.05/8.99 public boolean hasNext() { 16.05/8.99 return itr.hasPrevious(); 16.05/8.99 } 16.05/8.99 public E next() { 16.05/8.99 return itr.previous(); 16.05/8.99 } 16.05/8.99 public void remove() { 16.05/8.99 itr.remove(); 16.05/8.99 } 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns an array containing all of the elements in this list 16.05/8.99 * in proper sequence (from first to last element). 16.05/8.99 * 16.05/8.99 *

The returned array will be "safe" in that no references to it are 16.05/8.99 * maintained by this list. (In other words, this method must allocate 16.05/8.99 * a new array). The caller is thus free to modify the returned array. 16.05/8.99 * 16.05/8.99 *

This method acts as bridge between array-based and collection-based 16.05/8.99 * APIs. 16.05/8.99 * 16.05/8.99 * @return an array containing all of the elements in this list 16.05/8.99 * in proper sequence 16.05/8.99 */ 16.05/8.99 public Object[] toArray() { 16.05/8.99 Object[] result = new Object[size]; 16.05/8.99 int i = 0; 16.05/8.99 for (Entry e = header.next; e != header; e = e.next) 16.05/8.99 result[i++] = e.element; 16.05/8.99 return result; 16.05/8.99 } 16.05/8.99 16.05/8.99 private static final long serialVersionUID = 876323262645176354L; 16.05/8.99 } 16.05/8.99 16.05/8.99 16.05/8.99 /* 16.05/8.99 * Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved. 16.05/8.99 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/8.99 * 16.05/8.99 * This code is free software; you can redistribute it and/or modify it 16.05/8.99 * under the terms of the GNU General Public License version 2 only, as 16.05/8.99 * published by the Free Software Foundation. Sun designates this 16.05/8.99 * particular file as subject to the "Classpath" exception as provided 16.05/8.99 * by Sun in the LICENSE file that accompanied this code. 16.05/8.99 * 16.05/8.99 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/8.99 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/8.99 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/8.99 * version 2 for more details (a copy is included in the LICENSE file that 16.05/8.99 * accompanied this code). 16.05/8.99 * 16.05/8.99 * You should have received a copy of the GNU General Public License version 16.05/8.99 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/8.99 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/8.99 * 16.05/8.99 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/8.99 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/8.99 * have any questions. 16.05/8.99 */ 16.05/8.99 16.05/8.99 package javaUtilEx; 16.05/8.99 16.05/8.99 /** 16.05/8.99 * An iterator for lists that allows the programmer 16.05/8.99 * to traverse the list in either direction, modify 16.05/8.99 * the list during iteration, and obtain the iterator's 16.05/8.99 * current position in the list. A {@code ListIterator} 16.05/8.99 * has no current element; its cursor position always 16.05/8.99 * lies between the element that would be returned by a call 16.05/8.99 * to {@code previous()} and the element that would be 16.05/8.99 * returned by a call to {@code next()}. 16.05/8.99 * An iterator for a list of length {@code n} has {@code n+1} possible 16.05/8.99 * cursor positions, as illustrated by the carets ({@code ^}) below: 16.05/8.99 *

16.05/8.99	 *                      Element(0)   Element(1)   Element(2)   ... Element(n-1)
16.05/8.99	 * cursor positions:  ^            ^            ^            ^                  ^
16.05/8.99	 * 
16.05/8.99 * Note that the {@link #remove} and {@link #set(Object)} methods are 16.05/8.99 * not defined in terms of the cursor position; they are defined to 16.05/8.99 * operate on the last element returned by a call to {@link #next} or 16.05/8.99 * {@link #previous()}. 16.05/8.99 * 16.05/8.99 *

This interface is a member of the 16.05/8.99 * 16.05/8.99 * Java Collections Framework. 16.05/8.99 * 16.05/8.99 * @author Josh Bloch 16.05/8.99 * @see Collection 16.05/8.99 * @see List 16.05/8.99 * @see Iterator 16.05/8.99 * @see Enumeration 16.05/8.99 * @see List#listIterator() 16.05/8.99 * @since 1.2 16.05/8.99 */ 16.05/8.99 public interface ListIterator extends Iterator { 16.05/8.99 // Query Operations 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns {@code true} if this list iterator has more elements when 16.05/8.99 * traversing the list in the forward direction. (In other words, 16.05/8.99 * returns {@code true} if {@link #next} would return an element rather 16.05/8.99 * than throwing an exception.) 16.05/8.99 * 16.05/8.99 * @return {@code true} if the list iterator has more elements when 16.05/8.99 * traversing the list in the forward direction 16.05/8.99 */ 16.05/8.99 boolean hasNext(); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns the next element in the list and advances the cursor position. 16.05/8.99 * This method may be called repeatedly to iterate through the list, 16.05/8.99 * or intermixed with calls to {@link #previous} to go back and forth. 16.05/8.99 * (Note that alternating calls to {@code next} and {@code previous} 16.05/8.99 * will return the same element repeatedly.) 16.05/8.99 * 16.05/8.99 * @return the next element in the list 16.05/8.99 * @throws NoSuchElementException if the iteration has no next element 16.05/8.99 */ 16.05/8.99 E next(); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns {@code true} if this list iterator has more elements when 16.05/8.99 * traversing the list in the reverse direction. (In other words, 16.05/8.99 * returns {@code true} if {@link #previous} would return an element 16.05/8.99 * rather than throwing an exception.) 16.05/8.99 * 16.05/8.99 * @return {@code true} if the list iterator has more elements when 16.05/8.99 * traversing the list in the reverse direction 16.05/8.99 */ 16.05/8.99 boolean hasPrevious(); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns the previous element in the list and moves the cursor 16.05/8.99 * position backwards. This method may be called repeatedly to 16.05/8.99 * iterate through the list backwards, or intermixed with calls to 16.05/8.99 * {@link #next} to go back and forth. (Note that alternating calls 16.05/8.99 * to {@code next} and {@code previous} will return the same 16.05/8.99 * element repeatedly.) 16.05/8.99 * 16.05/8.99 * @return the previous element in the list 16.05/8.99 * @throws NoSuchElementException if the iteration has no previous 16.05/8.99 * element 16.05/8.99 */ 16.05/8.99 E previous(); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns the index of the element that would be returned by a 16.05/8.99 * subsequent call to {@link #next}. (Returns list size if the list 16.05/8.99 * iterator is at the end of the list.) 16.05/8.99 * 16.05/8.99 * @return the index of the element that would be returned by a 16.05/8.99 * subsequent call to {@code next}, or list size if the list 16.05/8.99 * iterator is at the end of the list 16.05/8.99 */ 16.05/8.99 int nextIndex(); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns the index of the element that would be returned by a 16.05/8.99 * subsequent call to {@link #previous}. (Returns -1 if the list 16.05/8.99 * iterator is at the beginning of the list.) 16.05/8.99 * 16.05/8.99 * @return the index of the element that would be returned by a 16.05/8.99 * subsequent call to {@code previous}, or -1 if the list 16.05/8.99 * iterator is at the beginning of the list 16.05/8.99 */ 16.05/8.99 int previousIndex(); 16.05/8.99 16.05/8.99 16.05/8.99 // Modification Operations 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Removes from the list the last element that was returned by {@link 16.05/8.99 * #next} or {@link #previous} (optional operation). This call can 16.05/8.99 * only be made once per call to {@code next} or {@code previous}. 16.05/8.99 * It can be made only if {@link #add} has not been 16.05/8.99 * called after the last call to {@code next} or {@code previous}. 16.05/8.99 * 16.05/8.99 * @throws UnsupportedOperationException if the {@code remove} 16.05/8.99 * operation is not supported by this list iterator 16.05/8.99 * @throws IllegalStateException if neither {@code next} nor 16.05/8.99 * {@code previous} have been called, or {@code remove} or 16.05/8.99 * {@code add} have been called after the last call to 16.05/8.99 * {@code next} or {@code previous} 16.05/8.99 */ 16.05/8.99 void remove(); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Replaces the last element returned by {@link #next} or 16.05/8.99 * {@link #previous} with the specified element (optional operation). 16.05/8.99 * This call can be made only if neither {@link #remove} nor {@link 16.05/8.99 * #add} have been called after the last call to {@code next} or 16.05/8.99 * {@code previous}. 16.05/8.99 * 16.05/8.99 * @param e the element with which to replace the last element returned by 16.05/8.99 * {@code next} or {@code previous} 16.05/8.99 * @throws UnsupportedOperationException if the {@code set} operation 16.05/8.99 * is not supported by this list iterator 16.05/8.99 * @throws ClassCastException if the class of the specified element 16.05/8.99 * prevents it from being added to this list 16.05/8.99 * @throws IllegalArgumentException if some aspect of the specified 16.05/8.99 * element prevents it from being added to this list 16.05/8.99 * @throws IllegalStateException if neither {@code next} nor 16.05/8.99 * {@code previous} have been called, or {@code remove} or 16.05/8.99 * {@code add} have been called after the last call to 16.05/8.99 * {@code next} or {@code previous} 16.05/8.99 */ 16.05/8.99 void set(E e); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Inserts the specified element into the list (optional operation). 16.05/8.99 * The element is inserted immediately before the next element that 16.05/8.99 * would be returned by {@link #next}, if any, and after the next 16.05/8.99 * element that would be returned by {@link #previous}, if any. (If the 16.05/8.99 * list contains no elements, the new element becomes the sole element 16.05/8.99 * on the list.) The new element is inserted before the implicit 16.05/8.99 * cursor: a subsequent call to {@code next} would be unaffected, and a 16.05/8.99 * subsequent call to {@code previous} would return the new element. 16.05/8.99 * (This call increases by one the value that would be returned by a 16.05/8.99 * call to {@code nextIndex} or {@code previousIndex}.) 16.05/8.99 * 16.05/8.99 * @param e the element to insert 16.05/8.99 * @throws UnsupportedOperationException if the {@code add} method is 16.05/8.99 * not supported by this list iterator 16.05/8.99 * @throws ClassCastException if the class of the specified element 16.05/8.99 * prevents it from being added to this list 16.05/8.99 * @throws IllegalArgumentException if some aspect of this element 16.05/8.99 * prevents it from being added to this list 16.05/8.99 */ 16.05/8.99 void add(E e); 16.05/8.99 } 16.05/8.99 16.05/8.99 16.05/8.99 /* 16.05/8.99 * Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved. 16.05/8.99 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/8.99 * 16.05/8.99 * This code is free software; you can redistribute it and/or modify it 16.05/8.99 * under the terms of the GNU General Public License version 2 only, as 16.05/8.99 * published by the Free Software Foundation. Sun designates this 16.05/8.99 * particular file as subject to the "Classpath" exception as provided 16.05/8.99 * by Sun in the LICENSE file that accompanied this code. 16.05/8.99 * 16.05/8.99 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/8.99 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/8.99 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/8.99 * version 2 for more details (a copy is included in the LICENSE file that 16.05/8.99 * accompanied this code). 16.05/8.99 * 16.05/8.99 * You should have received a copy of the GNU General Public License version 16.05/8.99 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/8.99 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/8.99 * 16.05/8.99 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/8.99 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/8.99 * have any questions. 16.05/8.99 */ 16.05/8.99 16.05/8.99 package javaUtilEx; 16.05/8.99 16.05/8.99 /** 16.05/8.99 * An ordered collection (also known as a sequence). The user of this 16.05/8.99 * interface has precise control over where in the list each element is 16.05/8.99 * inserted. The user can access elements by their integer index (position in 16.05/8.99 * the list), and search for elements in the list.

16.05/8.99 * 16.05/8.99 * Unlike sets, lists typically allow duplicate elements. More formally, 16.05/8.99 * lists typically allow pairs of elements e1 and e2 16.05/8.99 * such that e1.equals(e2), and they typically allow multiple 16.05/8.99 * null elements if they allow null elements at all. It is not inconceivable 16.05/8.99 * that someone might wish to implement a list that prohibits duplicates, by 16.05/8.99 * throwing runtime exceptions when the user attempts to insert them, but we 16.05/8.99 * expect this usage to be rare.

16.05/8.99 * 16.05/8.99 * The List interface places additional stipulations, beyond those 16.05/8.99 * specified in the Collection interface, on the contracts of the 16.05/8.99 * iterator, add, remove, equals, and 16.05/8.99 * hashCode methods. Declarations for other inherited methods are 16.05/8.99 * also included here for convenience.

16.05/8.99 * 16.05/8.99 * The List interface provides four methods for positional (indexed) 16.05/8.99 * access to list elements. Lists (like Java arrays) are zero based. Note 16.05/8.99 * that these operations may execute in time proportional to the index value 16.05/8.99 * for some implementations (the LinkedList class, for 16.05/8.99 * example). Thus, iterating over the elements in a list is typically 16.05/8.99 * preferable to indexing through it if the caller does not know the 16.05/8.99 * implementation.

16.05/8.99 * 16.05/8.99 * The List interface provides a special iterator, called a 16.05/8.99 * ListIterator, that allows element insertion and replacement, and 16.05/8.99 * bidirectional access in addition to the normal operations that the 16.05/8.99 * Iterator interface provides. A method is provided to obtain a 16.05/8.99 * list iterator that starts at a specified position in the list.

16.05/8.99 * 16.05/8.99 * The List interface provides two methods to search for a specified 16.05/8.99 * object. From a performance standpoint, these methods should be used with 16.05/8.99 * caution. In many implementations they will perform costly linear 16.05/8.99 * searches.

16.05/8.99 * 16.05/8.99 * The List interface provides two methods to efficiently insert and 16.05/8.99 * remove multiple elements at an arbitrary point in the list.

16.05/8.99 * 16.05/8.99 * Note: While it is permissible for lists to contain themselves as elements, 16.05/8.99 * extreme caution is advised: the equals and hashCode 16.05/8.99 * methods are no longer well defined on such a list. 16.05/8.99 * 16.05/8.99 *

Some list implementations have restrictions on the elements that 16.05/8.99 * they may contain. For example, some implementations prohibit null elements, 16.05/8.99 * and some have restrictions on the types of their elements. Attempting to 16.05/8.99 * add an ineligible element throws an unchecked exception, typically 16.05/8.99 * NullPointerException or ClassCastException. Attempting 16.05/8.99 * to query the presence of an ineligible element may throw an exception, 16.05/8.99 * or it may simply return false; some implementations will exhibit the former 16.05/8.99 * behavior and some will exhibit the latter. More generally, attempting an 16.05/8.99 * operation on an ineligible element whose completion would not result in 16.05/8.99 * the insertion of an ineligible element into the list may throw an 16.05/8.99 * exception or it may succeed, at the option of the implementation. 16.05/8.99 * Such exceptions are marked as "optional" in the specification for this 16.05/8.99 * interface. 16.05/8.99 * 16.05/8.99 *

This interface is a member of the 16.05/8.99 * 16.05/8.99 * Java Collections Framework. 16.05/8.99 * 16.05/8.99 * @author Josh Bloch 16.05/8.99 * @author Neal Gafter 16.05/8.99 * @see Collection 16.05/8.99 * @see Set 16.05/8.99 * @see ArrayList 16.05/8.99 * @see LinkedList 16.05/8.99 * @see Vector 16.05/8.99 * @see Arrays#asList(Object[]) 16.05/8.99 * @see Collections#nCopies(int, Object) 16.05/8.99 * @see Collections#EMPTY_LIST 16.05/8.99 * @see AbstractList 16.05/8.99 * @see AbstractSequentialList 16.05/8.99 * @since 1.2 16.05/8.99 */ 16.05/8.99 16.05/8.99 public interface List extends Collection { 16.05/8.99 // Query Operations 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns the number of elements in this list. If this list contains 16.05/8.99 * more than Integer.MAX_VALUE elements, returns 16.05/8.99 * Integer.MAX_VALUE. 16.05/8.99 * 16.05/8.99 * @return the number of elements in this list 16.05/8.99 */ 16.05/8.99 int size(); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns true if this list contains no elements. 16.05/8.99 * 16.05/8.99 * @return true if this list contains no elements 16.05/8.99 */ 16.05/8.99 boolean isEmpty(); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns true if this list contains the specified element. 16.05/8.99 * More formally, returns true if and only if this list contains 16.05/8.99 * at least one element e such that 16.05/8.99 * (o==null ? e==null : o.equals(e)). 16.05/8.99 * 16.05/8.99 * @param o element whose presence in this list is to be tested 16.05/8.99 * @return true if this list contains the specified element 16.05/8.99 * @throws ClassCastException if the type of the specified element 16.05/8.99 * is incompatible with this list (optional) 16.05/8.99 * @throws NullPointerException if the specified element is null and this 16.05/8.99 * list does not permit null elements (optional) 16.05/8.99 */ 16.05/8.99 boolean contains(Object o); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns an iterator over the elements in this list in proper sequence. 16.05/8.99 * 16.05/8.99 * @return an iterator over the elements in this list in proper sequence 16.05/8.99 */ 16.05/8.99 Iterator iterator(); 16.05/8.99 16.05/8.99 // Modification Operations 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Appends the specified element to the end of this list (optional 16.05/8.99 * operation). 16.05/8.99 * 16.05/8.99 *

Lists that support this operation may place limitations on what 16.05/8.99 * elements may be added to this list. In particular, some 16.05/8.99 * lists will refuse to add null elements, and others will impose 16.05/8.99 * restrictions on the type of elements that may be added. List 16.05/8.99 * classes should clearly specify in their documentation any restrictions 16.05/8.99 * on what elements may be added. 16.05/8.99 * 16.05/8.99 * @param e element to be appended to this list 16.05/8.99 * @return true (as specified by {@link Collection#add}) 16.05/8.99 * @throws UnsupportedOperationException if the add operation 16.05/8.99 * is not supported by this list 16.05/8.99 * @throws ClassCastException if the class of the specified element 16.05/8.99 * prevents it from being added to this list 16.05/8.99 * @throws NullPointerException if the specified element is null and this 16.05/8.99 * list does not permit null elements 16.05/8.99 * @throws IllegalArgumentException if some property of this element 16.05/8.99 * prevents it from being added to this list 16.05/8.99 */ 16.05/8.99 boolean add(E e); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Removes the first occurrence of the specified element from this list, 16.05/8.99 * if it is present (optional operation). If this list does not contain 16.05/8.99 * the element, it is unchanged. More formally, removes the element with 16.05/8.99 * the lowest index i such that 16.05/8.99 * (o==null ? get(i)==null : o.equals(get(i))) 16.05/8.99 * (if such an element exists). Returns true if this list 16.05/8.99 * contained the specified element (or equivalently, if this list changed 16.05/8.99 * as a result of the call). 16.05/8.99 * 16.05/8.99 * @param o element to be removed from this list, if present 16.05/8.99 * @return true if this list contained the specified element 16.05/8.99 * @throws ClassCastException if the type of the specified element 16.05/8.99 * is incompatible with this list (optional) 16.05/8.99 * @throws NullPointerException if the specified element is null and this 16.05/8.99 * list does not permit null elements (optional) 16.05/8.99 * @throws UnsupportedOperationException if the remove operation 16.05/8.99 * is not supported by this list 16.05/8.99 */ 16.05/8.99 boolean remove(Object o); 16.05/8.99 16.05/8.99 16.05/8.99 // Bulk Modification Operations 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns true if this list contains all of the elements of the 16.05/8.99 * specified collection. 16.05/8.99 * 16.05/8.99 * @param c collection to be checked for containment in this list 16.05/8.99 * @return true if this list contains all of the elements of the 16.05/8.99 * specified collection 16.05/8.99 * @throws ClassCastException if the types of one or more elements 16.05/8.99 * in the specified collection are incompatible with this 16.05/8.99 * list (optional) 16.05/8.99 * @throws NullPointerException if the specified collection contains one 16.05/8.99 * or more null elements and this list does not permit null 16.05/8.99 * elements (optional), or if the specified collection is null 16.05/8.99 * @see #contains(Object) 16.05/8.99 */ 16.05/8.99 boolean containsAll(Collection c); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Appends all of the elements in the specified collection to the end of 16.05/8.99 * this list, in the order that they are returned by the specified 16.05/8.99 * collection's iterator (optional operation). The behavior of this 16.05/8.99 * operation is undefined if the specified collection is modified while 16.05/8.99 * the operation is in progress. (Note that this will occur if the 16.05/8.99 * specified collection is this list, and it's nonempty.) 16.05/8.99 * 16.05/8.99 * @param c collection containing elements to be added to this list 16.05/8.99 * @return true if this list changed as a result of the call 16.05/8.99 * @throws UnsupportedOperationException if the addAll operation 16.05/8.99 * is not supported by this list 16.05/8.99 * @throws ClassCastException if the class of an element of the specified 16.05/8.99 * collection prevents it from being added to this list 16.05/8.99 * @throws NullPointerException if the specified collection contains one 16.05/8.99 * or more null elements and this list does not permit null 16.05/8.99 * elements, or if the specified collection is null 16.05/8.99 * @throws IllegalArgumentException if some property of an element of the 16.05/8.99 * specified collection prevents it from being added to this list 16.05/8.99 * @see #add(Object) 16.05/8.99 */ 16.05/8.99 boolean addAll(Collection c); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Inserts all of the elements in the specified collection into this 16.05/8.99 * list at the specified position (optional operation). Shifts the 16.05/8.99 * element currently at that position (if any) and any subsequent 16.05/8.99 * elements to the right (increases their indices). The new elements 16.05/8.99 * will appear in this list in the order that they are returned by the 16.05/8.99 * specified collection's iterator. The behavior of this operation is 16.05/8.99 * undefined if the specified collection is modified while the 16.05/8.99 * operation is in progress. (Note that this will occur if the specified 16.05/8.99 * collection is this list, and it's nonempty.) 16.05/8.99 * 16.05/8.99 * @param index index at which to insert the first element from the 16.05/8.99 * specified collection 16.05/8.99 * @param c collection containing elements to be added to this list 16.05/8.99 * @return true if this list changed as a result of the call 16.05/8.99 * @throws UnsupportedOperationException if the addAll operation 16.05/8.99 * is not supported by this list 16.05/8.99 * @throws ClassCastException if the class of an element of the specified 16.05/8.99 * collection prevents it from being added to this list 16.05/8.99 * @throws NullPointerException if the specified collection contains one 16.05/8.99 * or more null elements and this list does not permit null 16.05/8.99 * elements, or if the specified collection is null 16.05/8.99 * @throws IllegalArgumentException if some property of an element of the 16.05/8.99 * specified collection prevents it from being added to this list 16.05/8.99 * @throws IndexOutOfBoundsException if the index is out of range 16.05/8.99 * (index < 0 || index > size()) 16.05/8.99 */ 16.05/8.99 boolean addAll(int index, Collection c); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Removes from this list all of its elements that are contained in the 16.05/8.99 * specified collection (optional operation). 16.05/8.99 * 16.05/8.99 * @param c collection containing elements to be removed from this list 16.05/8.99 * @return true if this list changed as a result of the call 16.05/8.99 * @throws UnsupportedOperationException if the removeAll operation 16.05/8.99 * is not supported by this list 16.05/8.99 * @throws ClassCastException if the class of an element of this list 16.05/8.99 * is incompatible with the specified collection (optional) 16.05/8.99 * @throws NullPointerException if this list contains a null element and the 16.05/8.99 * specified collection does not permit null elements (optional), 16.05/8.99 * or if the specified collection is null 16.05/8.99 * @see #remove(Object) 16.05/8.99 * @see #contains(Object) 16.05/8.99 */ 16.05/8.99 boolean removeAll(Collection c); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Retains only the elements in this list that are contained in the 16.05/8.99 * specified collection (optional operation). In other words, removes 16.05/8.99 * from this list all of its elements that are not contained in the 16.05/8.99 * specified collection. 16.05/8.99 * 16.05/8.99 * @param c collection containing elements to be retained in this list 16.05/8.99 * @return true if this list changed as a result of the call 16.05/8.99 * @throws UnsupportedOperationException if the retainAll operation 16.05/8.99 * is not supported by this list 16.05/8.99 * @throws ClassCastException if the class of an element of this list 16.05/8.99 * is incompatible with the specified collection (optional) 16.05/8.99 * @throws NullPointerException if this list contains a null element and the 16.05/8.99 * specified collection does not permit null elements (optional), 16.05/8.99 * or if the specified collection is null 16.05/8.99 * @see #remove(Object) 16.05/8.99 * @see #contains(Object) 16.05/8.99 */ 16.05/8.99 boolean retainAll(Collection c); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Removes all of the elements from this list (optional operation). 16.05/8.99 * The list will be empty after this call returns. 16.05/8.99 * 16.05/8.99 * @throws UnsupportedOperationException if the clear operation 16.05/8.99 * is not supported by this list 16.05/8.99 */ 16.05/8.99 void clear(); 16.05/8.99 16.05/8.99 16.05/8.99 // Comparison and hashing 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Compares the specified object with this list for equality. Returns 16.05/8.99 * true if and only if the specified object is also a list, both 16.05/8.99 * lists have the same size, and all corresponding pairs of elements in 16.05/8.99 * the two lists are equal. (Two elements e1 and 16.05/8.99 * e2 are equal if (e1==null ? e2==null : 16.05/8.99 * e1.equals(e2)).) In other words, two lists are defined to be 16.05/8.99 * equal if they contain the same elements in the same order. This 16.05/8.99 * definition ensures that the equals method works properly across 16.05/8.99 * different implementations of the List interface. 16.05/8.99 * 16.05/8.99 * @param o the object to be compared for equality with this list 16.05/8.99 * @return true if the specified object is equal to this list 16.05/8.99 */ 16.05/8.99 boolean equals(Object o); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns the hash code value for this list. The hash code of a list 16.05/8.99 * is defined to be the result of the following calculation: 16.05/8.99 *

16.05/8.99	     *  int hashCode = 1;
16.05/8.99	     *  for (E e : list)
16.05/8.99	     *      hashCode = 31*hashCode + (e==null ? 0 : e.hashCode());
16.05/8.99	     * 
16.05/8.99 * This ensures that list1.equals(list2) implies that 16.05/8.99 * list1.hashCode()==list2.hashCode() for any two lists, 16.05/8.99 * list1 and list2, as required by the general 16.05/8.99 * contract of {@link Object#hashCode}. 16.05/8.99 * 16.05/8.99 * @return the hash code value for this list 16.05/8.99 * @see Object#equals(Object) 16.05/8.99 * @see #equals(Object) 16.05/8.99 */ 16.05/8.99 int hashCode(); 16.05/8.99 16.05/8.99 16.05/8.99 // Positional Access Operations 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns the element at the specified position in this list. 16.05/8.99 * 16.05/8.99 * @param index index of the element to return 16.05/8.99 * @return the element at the specified position in this list 16.05/8.99 * @throws IndexOutOfBoundsException if the index is out of range 16.05/8.99 * (index < 0 || index >= size()) 16.05/8.99 */ 16.05/8.99 E get(int index); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Replaces the element at the specified position in this list with the 16.05/8.99 * specified element (optional operation). 16.05/8.99 * 16.05/8.99 * @param index index of the element to replace 16.05/8.99 * @param element element to be stored at the specified position 16.05/8.99 * @return the element previously at the specified position 16.05/8.99 * @throws UnsupportedOperationException if the set operation 16.05/8.99 * is not supported by this list 16.05/8.99 * @throws ClassCastException if the class of the specified element 16.05/8.99 * prevents it from being added to this list 16.05/8.99 * @throws NullPointerException if the specified element is null and 16.05/8.99 * this list does not permit null elements 16.05/8.99 * @throws IllegalArgumentException if some property of the specified 16.05/8.99 * element prevents it from being added to this list 16.05/8.99 * @throws IndexOutOfBoundsException if the index is out of range 16.05/8.99 * (index < 0 || index >= size()) 16.05/8.99 */ 16.05/8.99 E set(int index, E element); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Inserts the specified element at the specified position in this list 16.05/8.99 * (optional operation). Shifts the element currently at that position 16.05/8.99 * (if any) and any subsequent elements to the right (adds one to their 16.05/8.99 * indices). 16.05/8.99 * 16.05/8.99 * @param index index at which the specified element is to be inserted 16.05/8.99 * @param element element to be inserted 16.05/8.99 * @throws UnsupportedOperationException if the add operation 16.05/8.99 * is not supported by this list 16.05/8.99 * @throws ClassCastException if the class of the specified element 16.05/8.99 * prevents it from being added to this list 16.05/8.99 * @throws NullPointerException if the specified element is null and 16.05/8.99 * this list does not permit null elements 16.05/8.99 * @throws IllegalArgumentException if some property of the specified 16.05/8.99 * element prevents it from being added to this list 16.05/8.99 * @throws IndexOutOfBoundsException if the index is out of range 16.05/8.99 * (index < 0 || index > size()) 16.05/8.99 */ 16.05/8.99 void add(int index, E element); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Removes the element at the specified position in this list (optional 16.05/8.99 * operation). Shifts any subsequent elements to the left (subtracts one 16.05/8.99 * from their indices). Returns the element that was removed from the 16.05/8.99 * list. 16.05/8.99 * 16.05/8.99 * @param index the index of the element to be removed 16.05/8.99 * @return the element previously at the specified position 16.05/8.99 * @throws UnsupportedOperationException if the remove operation 16.05/8.99 * is not supported by this list 16.05/8.99 * @throws IndexOutOfBoundsException if the index is out of range 16.05/8.99 * (index < 0 || index >= size()) 16.05/8.99 */ 16.05/8.99 E remove(int index); 16.05/8.99 16.05/8.99 16.05/8.99 // Search Operations 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns the index of the first occurrence of the specified element 16.05/8.99 * in this list, or -1 if this list does not contain the element. 16.05/8.99 * More formally, returns the lowest index i such that 16.05/8.99 * (o==null ? get(i)==null : o.equals(get(i))), 16.05/8.99 * or -1 if there is no such index. 16.05/8.99 * 16.05/8.99 * @param o element to search for 16.05/8.99 * @return the index of the first occurrence of the specified element in 16.05/8.99 * this list, or -1 if this list does not contain the element 16.05/8.99 * @throws ClassCastException if the type of the specified element 16.05/8.99 * is incompatible with this list (optional) 16.05/8.99 * @throws NullPointerException if the specified element is null and this 16.05/8.99 * list does not permit null elements (optional) 16.05/8.99 */ 16.05/8.99 int indexOf(Object o); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns the index of the last occurrence of the specified element 16.05/8.99 * in this list, or -1 if this list does not contain the element. 16.05/8.99 * More formally, returns the highest index i such that 16.05/8.99 * (o==null ? get(i)==null : o.equals(get(i))), 16.05/8.99 * or -1 if there is no such index. 16.05/8.99 * 16.05/8.99 * @param o element to search for 16.05/8.99 * @return the index of the last occurrence of the specified element in 16.05/8.99 * this list, or -1 if this list does not contain the element 16.05/8.99 * @throws ClassCastException if the type of the specified element 16.05/8.99 * is incompatible with this list (optional) 16.05/8.99 * @throws NullPointerException if the specified element is null and this 16.05/8.99 * list does not permit null elements (optional) 16.05/8.99 */ 16.05/8.99 int lastIndexOf(Object o); 16.05/8.99 16.05/8.99 16.05/8.99 // List Iterators 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns a list iterator over the elements in this list (in proper 16.05/8.99 * sequence). 16.05/8.99 * 16.05/8.99 * @return a list iterator over the elements in this list (in proper 16.05/8.99 * sequence) 16.05/8.99 */ 16.05/8.99 ListIterator listIterator(); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns a list iterator over the elements in this list (in proper 16.05/8.99 * sequence), starting at the specified position in the list. 16.05/8.99 * The specified index indicates the first element that would be 16.05/8.99 * returned by an initial call to {@link ListIterator#next next}. 16.05/8.99 * An initial call to {@link ListIterator#previous previous} would 16.05/8.99 * return the element with the specified index minus one. 16.05/8.99 * 16.05/8.99 * @param index index of the first element to be returned from the 16.05/8.99 * list iterator (by a call to {@link ListIterator#next next}) 16.05/8.99 * @return a list iterator over the elements in this list (in proper 16.05/8.99 * sequence), starting at the specified position in the list 16.05/8.99 * @throws IndexOutOfBoundsException if the index is out of range 16.05/8.99 * ({@code index < 0 || index > size()}) 16.05/8.99 */ 16.05/8.99 ListIterator listIterator(int index); 16.05/8.99 16.05/8.99 // View 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns a view of the portion of this list between the specified 16.05/8.99 * fromIndex, inclusive, and toIndex, exclusive. (If 16.05/8.99 * fromIndex and toIndex are equal, the returned list is 16.05/8.99 * empty.) The returned list is backed by this list, so non-structural 16.05/8.99 * changes in the returned list are reflected in this list, and vice-versa. 16.05/8.99 * The returned list supports all of the optional list operations supported 16.05/8.99 * by this list.

16.05/8.99 * 16.05/8.99 * This method eliminates the need for explicit range operations (of 16.05/8.99 * the sort that commonly exist for arrays). Any operation that expects 16.05/8.99 * a list can be used as a range operation by passing a subList view 16.05/8.99 * instead of a whole list. For example, the following idiom 16.05/8.99 * removes a range of elements from a list: 16.05/8.99 *

16.05/8.99	     *      list.subList(from, to).clear();
16.05/8.99	     * 
16.05/8.99 * Similar idioms may be constructed for indexOf and 16.05/8.99 * lastIndexOf, and all of the algorithms in the 16.05/8.99 * Collections class can be applied to a subList.

16.05/8.99 * 16.05/8.99 * The semantics of the list returned by this method become undefined if 16.05/8.99 * the backing list (i.e., this list) is structurally modified in 16.05/8.99 * any way other than via the returned list. (Structural modifications are 16.05/8.99 * those that change the size of this list, or otherwise perturb it in such 16.05/8.99 * a fashion that iterations in progress may yield incorrect results.) 16.05/8.99 * 16.05/8.99 * @param fromIndex low endpoint (inclusive) of the subList 16.05/8.99 * @param toIndex high endpoint (exclusive) of the subList 16.05/8.99 * @return a view of the specified range within this list 16.05/8.99 * @throws IndexOutOfBoundsException for an illegal endpoint index value 16.05/8.99 * (fromIndex < 0 || toIndex > size || 16.05/8.99 * fromIndex > toIndex) 16.05/8.99 */ 16.05/8.99 List subList(int fromIndex, int toIndex); 16.05/8.99 } 16.05/8.99 16.05/8.99 16.05/8.99 /* 16.05/8.99 * Copyright 1994-1998 Sun Microsystems, Inc. All Rights Reserved. 16.05/8.99 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/8.99 * 16.05/8.99 * This code is free software; you can redistribute it and/or modify it 16.05/8.99 * under the terms of the GNU General Public License version 2 only, as 16.05/8.99 * published by the Free Software Foundation. Sun designates this 16.05/8.99 * particular file as subject to the "Classpath" exception as provided 16.05/8.99 * by Sun in the LICENSE file that accompanied this code. 16.05/8.99 * 16.05/8.99 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/8.99 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/8.99 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/8.99 * version 2 for more details (a copy is included in the LICENSE file that 16.05/8.99 * accompanied this code). 16.05/8.99 * 16.05/8.99 * You should have received a copy of the GNU General Public License version 16.05/8.99 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/8.99 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/8.99 * 16.05/8.99 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/8.99 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/8.99 * have any questions. 16.05/8.99 */ 16.05/8.99 16.05/8.99 package javaUtilEx; 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Thrown by the nextElement method of an 16.05/8.99 * Enumeration to indicate that there are no more 16.05/8.99 * elements in the enumeration. 16.05/8.99 * 16.05/8.99 * @author unascribed 16.05/8.99 * @see java.util.Enumeration 16.05/8.99 * @see java.util.Enumeration#nextElement() 16.05/8.99 * @since JDK1.0 16.05/8.99 */ 16.05/8.99 public 16.05/8.99 class NoSuchElementException extends RuntimeException { 16.05/8.99 /** 16.05/8.99 * Constructs a NoSuchElementException with null 16.05/8.99 * as its error message string. 16.05/8.99 */ 16.05/8.99 public NoSuchElementException() { 16.05/8.99 super(); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Constructs a NoSuchElementException, saving a reference 16.05/8.99 * to the error message string s for later retrieval by the 16.05/8.99 * getMessage method. 16.05/8.99 * 16.05/8.99 * @param s the detail message. 16.05/8.99 */ 16.05/8.99 public NoSuchElementException(String s) { 16.05/8.99 super(s); 16.05/8.99 } 16.05/8.99 } 16.05/8.99 16.05/8.99 16.05/8.99 /* 16.05/8.99 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/8.99 * 16.05/8.99 * This code is free software; you can redistribute it and/or modify it 16.05/8.99 * under the terms of the GNU General Public License version 2 only, as 16.05/8.99 * published by the Free Software Foundation. Sun designates this 16.05/8.99 * particular file as subject to the "Classpath" exception as provided 16.05/8.99 * by Sun in the LICENSE file that accompanied this code. 16.05/8.99 * 16.05/8.99 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/8.99 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/8.99 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/8.99 * version 2 for more details (a copy is included in the LICENSE file that 16.05/8.99 * accompanied this code). 16.05/8.99 * 16.05/8.99 * You should have received a copy of the GNU General Public License version 16.05/8.99 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/8.99 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/8.99 * 16.05/8.99 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/8.99 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/8.99 * have any questions. 16.05/8.99 */ 16.05/8.99 16.05/8.99 /* 16.05/8.99 * This file is available under and governed by the GNU General Public 16.05/8.99 * License version 2 only, as published by the Free Software Foundation. 16.05/8.99 * However, the following notice accompanied the original version of this 16.05/8.99 * file: 16.05/8.99 * 16.05/8.99 * Written by Doug Lea with assistance from members of JCP JSR-166 16.05/8.99 * Expert Group and released to the public domain, as explained at 16.05/8.99 * http://creativecommons.org/licenses/publicdomain 16.05/8.99 */ 16.05/8.99 16.05/8.99 package javaUtilEx; 16.05/8.99 16.05/8.99 /** 16.05/8.99 * A collection designed for holding elements prior to processing. 16.05/8.99 * Besides basic {@link java.util.Collection Collection} operations, 16.05/8.99 * queues provide additional insertion, extraction, and inspection 16.05/8.99 * operations. Each of these methods exists in two forms: one throws 16.05/8.99 * an exception if the operation fails, the other returns a special 16.05/8.99 * value (either null or false, depending on the 16.05/8.99 * operation). The latter form of the insert operation is designed 16.05/8.99 * specifically for use with capacity-restricted Queue 16.05/8.99 * implementations; in most implementations, insert operations cannot 16.05/8.99 * fail. 16.05/8.99 * 16.05/8.99 *

16.05/8.99 * 16.05/8.99 * 16.05/8.99 * 16.05/8.99 * 16.05/8.99 * 16.05/8.99 * 16.05/8.99 * 16.05/8.99 * 16.05/8.99 * 16.05/8.99 * 16.05/8.99 * 16.05/8.99 * 16.05/8.99 * 16.05/8.99 * 16.05/8.99 * 16.05/8.99 * 16.05/8.99 * 16.05/8.99 * 16.05/8.99 * 16.05/8.99 * 16.05/8.99 * 16.05/8.99 *
Throws exceptionReturns special value
Insert{@link #add add(e)}{@link #offer offer(e)}
Remove{@link #remove remove()}{@link #poll poll()}
Examine{@link #element element()}{@link #peek peek()}
16.05/8.99 * 16.05/8.99 *

Queues typically, but do not necessarily, order elements in a 16.05/8.99 * FIFO (first-in-first-out) manner. Among the exceptions are 16.05/8.99 * priority queues, which order elements according to a supplied 16.05/8.99 * comparator, or the elements' natural ordering, and LIFO queues (or 16.05/8.99 * stacks) which order the elements LIFO (last-in-first-out). 16.05/8.99 * Whatever the ordering used, the head of the queue is that 16.05/8.99 * element which would be removed by a call to {@link #remove() } or 16.05/8.99 * {@link #poll()}. In a FIFO queue, all new elements are inserted at 16.05/8.99 * the tail of the queue. Other kinds of queues may use 16.05/8.99 * different placement rules. Every Queue implementation 16.05/8.99 * must specify its ordering properties. 16.05/8.99 * 16.05/8.99 *

The {@link #offer offer} method inserts an element if possible, 16.05/8.99 * otherwise returning false. This differs from the {@link 16.05/8.99 * java.util.Collection#add Collection.add} method, which can fail to 16.05/8.99 * add an element only by throwing an unchecked exception. The 16.05/8.99 * offer method is designed for use when failure is a normal, 16.05/8.99 * rather than exceptional occurrence, for example, in fixed-capacity 16.05/8.99 * (or "bounded") queues. 16.05/8.99 * 16.05/8.99 *

The {@link #remove()} and {@link #poll()} methods remove and 16.05/8.99 * return the head of the queue. 16.05/8.99 * Exactly which element is removed from the queue is a 16.05/8.99 * function of the queue's ordering policy, which differs from 16.05/8.99 * implementation to implementation. The remove() and 16.05/8.99 * poll() methods differ only in their behavior when the 16.05/8.99 * queue is empty: the remove() method throws an exception, 16.05/8.99 * while the poll() method returns null. 16.05/8.99 * 16.05/8.99 *

The {@link #element()} and {@link #peek()} methods return, but do 16.05/8.99 * not remove, the head of the queue. 16.05/8.99 * 16.05/8.99 *

The Queue interface does not define the blocking queue 16.05/8.99 * methods, which are common in concurrent programming. These methods, 16.05/8.99 * which wait for elements to appear or for space to become available, are 16.05/8.99 * defined in the {@link java.util.concurrent.BlockingQueue} interface, which 16.05/8.99 * extends this interface. 16.05/8.99 * 16.05/8.99 *

Queue implementations generally do not allow insertion 16.05/8.99 * of null elements, although some implementations, such as 16.05/8.99 * {@link LinkedList}, do not prohibit insertion of null. 16.05/8.99 * Even in the implementations that permit it, null should 16.05/8.99 * not be inserted into a Queue, as null is also 16.05/8.99 * used as a special return value by the poll method to 16.05/8.99 * indicate that the queue contains no elements. 16.05/8.99 * 16.05/8.99 *

Queue implementations generally do not define 16.05/8.99 * element-based versions of methods equals and 16.05/8.99 * hashCode but instead inherit the identity based versions 16.05/8.99 * from class Object, because element-based equality is not 16.05/8.99 * always well-defined for queues with the same elements but different 16.05/8.99 * ordering properties. 16.05/8.99 * 16.05/8.99 * 16.05/8.99 *

This interface is a member of the 16.05/8.99 * 16.05/8.99 * Java Collections Framework. 16.05/8.99 * 16.05/8.99 * @see java.util.Collection 16.05/8.99 * @see LinkedList 16.05/8.99 * @see PriorityQueue 16.05/8.99 * @see java.util.concurrent.LinkedBlockingQueue 16.05/8.99 * @see java.util.concurrent.BlockingQueue 16.05/8.99 * @see java.util.concurrent.ArrayBlockingQueue 16.05/8.99 * @see java.util.concurrent.LinkedBlockingQueue 16.05/8.99 * @see java.util.concurrent.PriorityBlockingQueue 16.05/8.99 * @since 1.5 16.05/8.99 * @author Doug Lea 16.05/8.99 * @param the type of elements held in this collection 16.05/8.99 */ 16.05/8.99 public interface Queue extends Collection { 16.05/8.99 /** 16.05/8.99 * Inserts the specified element into this queue if it is possible to do so 16.05/8.99 * immediately without violating capacity restrictions, returning 16.05/8.99 * true upon success and throwing an IllegalStateException 16.05/8.99 * if no space is currently available. 16.05/8.99 * 16.05/8.99 * @param e the element to add 16.05/8.99 * @return true (as specified by {@link Collection#add}) 16.05/8.99 * @throws IllegalStateException if the element cannot be added at this 16.05/8.99 * time due to capacity restrictions 16.05/8.99 * @throws ClassCastException if the class of the specified element 16.05/8.99 * prevents it from being added to this queue 16.05/8.99 * @throws NullPointerException if the specified element is null and 16.05/8.99 * this queue does not permit null elements 16.05/8.99 * @throws IllegalArgumentException if some property of this element 16.05/8.99 * prevents it from being added to this queue 16.05/8.99 */ 16.05/8.99 boolean add(E e); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Inserts the specified element into this queue if it is possible to do 16.05/8.99 * so immediately without violating capacity restrictions. 16.05/8.99 * When using a capacity-restricted queue, this method is generally 16.05/8.99 * preferable to {@link #add}, which can fail to insert an element only 16.05/8.99 * by throwing an exception. 16.05/8.99 * 16.05/8.99 * @param e the element to add 16.05/8.99 * @return true if the element was added to this queue, else 16.05/8.99 * false 16.05/8.99 * @throws ClassCastException if the class of the specified element 16.05/8.99 * prevents it from being added to this queue 16.05/8.99 * @throws NullPointerException if the specified element is null and 16.05/8.99 * this queue does not permit null elements 16.05/8.99 * @throws IllegalArgumentException if some property of this element 16.05/8.99 * prevents it from being added to this queue 16.05/8.99 */ 16.05/8.99 boolean offer(E e); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Retrieves and removes the head of this queue. This method differs 16.05/8.99 * from {@link #poll poll} only in that it throws an exception if this 16.05/8.99 * queue is empty. 16.05/8.99 * 16.05/8.99 * @return the head of this queue 16.05/8.99 * @throws NoSuchElementException if this queue is empty 16.05/8.99 */ 16.05/8.99 E remove(); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Retrieves and removes the head of this queue, 16.05/8.99 * or returns null if this queue is empty. 16.05/8.99 * 16.05/8.99 * @return the head of this queue, or null if this queue is empty 16.05/8.99 */ 16.05/8.99 E poll(); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Retrieves, but does not remove, the head of this queue. This method 16.05/8.99 * differs from {@link #peek peek} only in that it throws an exception 16.05/8.99 * if this queue is empty. 16.05/8.99 * 16.05/8.99 * @return the head of this queue 16.05/8.99 * @throws NoSuchElementException if this queue is empty 16.05/8.99 */ 16.05/8.99 E element(); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Retrieves, but does not remove, the head of this queue, 16.05/8.99 * or returns null if this queue is empty. 16.05/8.99 * 16.05/8.99 * @return the head of this queue, or null if this queue is empty 16.05/8.99 */ 16.05/8.99 E peek(); 16.05/8.99 } 16.05/8.99 16.05/8.99 16.05/8.99 /* 16.05/8.99 * Copyright 2000-2006 Sun Microsystems, Inc. All Rights Reserved. 16.05/8.99 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/8.99 * 16.05/8.99 * This code is free software; you can redistribute it and/or modify it 16.05/8.99 * under the terms of the GNU General Public License version 2 only, as 16.05/8.99 * published by the Free Software Foundation. Sun designates this 16.05/8.99 * particular file as subject to the "Classpath" exception as provided 16.05/8.99 * by Sun in the LICENSE file that accompanied this code. 16.05/8.99 * 16.05/8.99 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/8.99 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/8.99 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/8.99 * version 2 for more details (a copy is included in the LICENSE file that 16.05/8.99 * accompanied this code). 16.05/8.99 * 16.05/8.99 * You should have received a copy of the GNU General Public License version 16.05/8.99 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/8.99 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/8.99 * 16.05/8.99 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/8.99 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/8.99 * have any questions. 16.05/8.99 */ 16.05/8.99 16.05/8.99 package javaUtilEx; 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Marker interface used by List implementations to indicate that 16.05/8.99 * they support fast (generally constant time) random access. The primary 16.05/8.99 * purpose of this interface is to allow generic algorithms to alter their 16.05/8.99 * behavior to provide good performance when applied to either random or 16.05/8.99 * sequential access lists. 16.05/8.99 * 16.05/8.99 *

The best algorithms for manipulating random access lists (such as 16.05/8.99 * ArrayList) can produce quadratic behavior when applied to 16.05/8.99 * sequential access lists (such as LinkedList). Generic list 16.05/8.99 * algorithms are encouraged to check whether the given list is an 16.05/8.99 * instanceof this interface before applying an algorithm that would 16.05/8.99 * provide poor performance if it were applied to a sequential access list, 16.05/8.99 * and to alter their behavior if necessary to guarantee acceptable 16.05/8.99 * performance. 16.05/8.99 * 16.05/8.99 *

It is recognized that the distinction between random and sequential 16.05/8.99 * access is often fuzzy. For example, some List implementations 16.05/8.99 * provide asymptotically linear access times if they get huge, but constant 16.05/8.99 * access times in practice. Such a List implementation 16.05/8.99 * should generally implement this interface. As a rule of thumb, a 16.05/8.99 * List implementation should implement this interface if, 16.05/8.99 * for typical instances of the class, this loop: 16.05/8.99 *

16.05/8.99	 *     for (int i=0, n=list.size(); i < n; i++)
16.05/8.99	 *         list.get(i);
16.05/8.99	 * 
16.05/8.99 * runs faster than this loop: 16.05/8.99 *
16.05/8.99	 *     for (Iterator i=list.iterator(); i.hasNext(); )
16.05/8.99	 *         i.next();
16.05/8.99	 * 
16.05/8.99 * 16.05/8.99 *

This interface is a member of the 16.05/8.99 * 16.05/8.99 * Java Collections Framework. 16.05/8.99 * 16.05/8.99 * @since 1.4 16.05/8.99 */ 16.05/8.99 public interface RandomAccess { 16.05/8.99 } 16.05/8.99 16.05/8.99 16.05/8.99 package javaUtilEx; 16.05/8.99 16.05/8.99 public class Random { 16.05/8.99 static String[] args; 16.05/8.99 static int index = 0; 16.05/8.99 16.05/8.99 public static int random() { 16.05/8.99 String string = args[index]; 16.05/8.99 index++; 16.05/8.99 return string.length(); 16.05/8.99 } 16.05/8.99 } 16.05/8.99 16.05/8.99 16.05/8.99 /* 16.05/8.99 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 16.05/8.99 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/8.99 * 16.05/8.99 * This code is free software; you can redistribute it and/or modify it 16.05/8.99 * under the terms of the GNU General Public License version 2 only, as 16.05/8.99 * published by the Free Software Foundation. Sun designates this 16.05/8.99 * particular file as subject to the "Classpath" exception as provided 16.05/8.99 * by Sun in the LICENSE file that accompanied this code. 16.05/8.99 * 16.05/8.99 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/8.99 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/8.99 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/8.99 * version 2 for more details (a copy is included in the LICENSE file that 16.05/8.99 * accompanied this code). 16.05/8.99 * 16.05/8.99 * You should have received a copy of the GNU General Public License version 16.05/8.99 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/8.99 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/8.99 * 16.05/8.99 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/8.99 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/8.99 * have any questions. 16.05/8.99 */ 16.05/8.99 16.05/8.99 package javaUtilEx; 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Thrown to indicate that the requested operation is not supported.

16.05/8.99 * 16.05/8.99 * This class is a member of the 16.05/8.99 * 16.05/8.99 * Java Collections Framework. 16.05/8.99 * 16.05/8.99 * @author Josh Bloch 16.05/8.99 * @since 1.2 16.05/8.99 */ 16.05/8.99 public class UnsupportedOperationException extends RuntimeException { 16.05/8.99 /** 16.05/8.99 * Constructs an UnsupportedOperationException with no detail message. 16.05/8.99 */ 16.05/8.99 public UnsupportedOperationException() { 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Constructs an UnsupportedOperationException with the specified 16.05/8.99 * detail message. 16.05/8.99 * 16.05/8.99 * @param message the detail message 16.05/8.99 */ 16.05/8.99 public UnsupportedOperationException(String message) { 16.05/8.99 super(message); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Constructs a new exception with the specified detail message and 16.05/8.99 * cause. 16.05/8.99 * 16.05/8.99 *

Note that the detail message associated with cause is 16.05/8.99 * not automatically incorporated in this exception's detail 16.05/8.99 * message. 16.05/8.99 * 16.05/8.99 * @param message the detail message (which is saved for later retrieval 16.05/8.99 * by the {@link Throwable#getMessage()} method). 16.05/8.99 * @param cause the cause (which is saved for later retrieval by the 16.05/8.99 * {@link Throwable#getCause()} method). (A null value 16.05/8.99 * is permitted, and indicates that the cause is nonexistent or 16.05/8.99 * unknown.) 16.05/8.99 * @since 1.5 16.05/8.99 */ 16.05/8.99 public UnsupportedOperationException(String message, Throwable cause) { 16.05/8.99 super(message, cause); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Constructs a new exception with the specified cause and a detail 16.05/8.99 * message of (cause==null ? null : cause.toString()) (which 16.05/8.99 * typically contains the class and detail message of cause). 16.05/8.99 * This constructor is useful for exceptions that are little more than 16.05/8.99 * wrappers for other throwables (for example, {@link 16.05/8.99 * java.security.PrivilegedActionException}). 16.05/8.99 * 16.05/8.99 * @param cause the cause (which is saved for later retrieval by the 16.05/8.99 * {@link Throwable#getCause()} method). (A null value is 16.05/8.99 * permitted, and indicates that the cause is nonexistent or 16.05/8.99 * unknown.) 16.05/8.99 * @since 1.5 16.05/8.99 */ 16.05/8.99 public UnsupportedOperationException(Throwable cause) { 16.05/8.99 super(cause); 16.05/8.99 } 16.05/8.99 16.05/8.99 static final long serialVersionUID = -1242599979055084673L; 16.05/8.99 } 16.05/8.99 16.05/8.99 16.05/8.99 16.05/8.99 ---------------------------------------- 16.05/8.99 16.05/8.99 (1) BareJBCToJBCProof (EQUIVALENT) 16.05/8.99 initialized classpath 16.05/8.99 ---------------------------------------- 16.05/8.99 16.05/8.99 (2) 16.05/8.99 Obligation: 16.05/8.99 need to prove termination of the following program: 16.05/8.99 /* 16.05/8.99 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 16.05/8.99 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/8.99 * 16.05/8.99 * This code is free software; you can redistribute it and/or modify it 16.05/8.99 * under the terms of the GNU General Public License version 2 only, as 16.05/8.99 * published by the Free Software Foundation. Sun designates this 16.05/8.99 * particular file as subject to the "Classpath" exception as provided 16.05/8.99 * by Sun in the LICENSE file that accompanied this code. 16.05/8.99 * 16.05/8.99 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/8.99 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/8.99 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/8.99 * version 2 for more details (a copy is included in the LICENSE file that 16.05/8.99 * accompanied this code). 16.05/8.99 * 16.05/8.99 * You should have received a copy of the GNU General Public License version 16.05/8.99 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/8.99 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/8.99 * 16.05/8.99 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/8.99 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/8.99 * have any questions. 16.05/8.99 */ 16.05/8.99 16.05/8.99 package javaUtilEx; 16.05/8.99 16.05/8.99 /** 16.05/8.99 * This class provides a skeletal implementation of the Collection 16.05/8.99 * interface, to minimize the effort required to implement this interface.

16.05/8.99 * 16.05/8.99 * To implement an unmodifiable collection, the programmer needs only to 16.05/8.99 * extend this class and provide implementations for the iterator and 16.05/8.99 * size methods. (The iterator returned by the iterator 16.05/8.99 * method must implement hasNext and next.)

16.05/8.99 * 16.05/8.99 * To implement a modifiable collection, the programmer must additionally 16.05/8.99 * override this class's add method (which otherwise throws an 16.05/8.99 * UnsupportedOperationException), and the iterator returned by the 16.05/8.99 * iterator method must additionally implement its remove 16.05/8.99 * method.

16.05/8.99 * 16.05/8.99 * The programmer should generally provide a void (no argument) and 16.05/8.99 * Collection constructor, as per the recommendation in the 16.05/8.99 * Collection interface specification.

16.05/8.99 * 16.05/8.99 * The documentation for each non-abstract method in this class describes its 16.05/8.99 * implementation in detail. Each of these methods may be overridden if 16.05/8.99 * the collection being implemented admits a more efficient implementation.

16.05/8.99 * 16.05/8.99 * This class is a member of the 16.05/8.99 * 16.05/8.99 * Java Collections Framework. 16.05/8.99 * 16.05/8.99 * @author Josh Bloch 16.05/8.99 * @author Neal Gafter 16.05/8.99 * @see Collection 16.05/8.99 * @since 1.2 16.05/8.99 */ 16.05/8.99 16.05/8.99 public abstract class AbstractCollection implements Collection { 16.05/8.99 /** 16.05/8.99 * Sole constructor. (For invocation by subclass constructors, typically 16.05/8.99 * implicit.) 16.05/8.99 */ 16.05/8.99 protected AbstractCollection() { 16.05/8.99 } 16.05/8.99 16.05/8.99 // Query Operations 16.05/8.99 16.05/8.99 /** 16.05/8.99 * Returns an iterator over the elements contained in this collection. 16.05/8.99 * 16.05/8.99 * @return an iterator over the elements contained in this collection 16.05/8.99 */ 16.05/8.99 public abstract Iterator iterator(); 16.05/8.99 16.05/8.99 public abstract int size(); 16.05/8.99 16.05/8.99 /** 16.05/8.99 * {@inheritDoc} 16.05/8.99 * 16.05/8.99 *

This implementation returns size() == 0. 16.05/8.99 */ 16.05/8.99 public boolean isEmpty() { 16.05/8.99 return size() == 0; 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * {@inheritDoc} 16.05/8.99 * 16.05/8.99 *

This implementation iterates over the elements in the collection, 16.05/8.99 * checking each element in turn for equality with the specified element. 16.05/8.99 * 16.05/8.99 * @throws ClassCastException {@inheritDoc} 16.05/8.99 * @throws NullPointerException {@inheritDoc} 16.05/8.99 */ 16.05/8.99 public boolean contains(Object o) { 16.05/8.99 Iterator e = iterator(); 16.05/8.99 if (o==null) { 16.05/8.99 while (e.hasNext()) 16.05/8.99 if (e.next()==null) 16.05/8.99 return true; 16.05/8.99 } else { 16.05/8.99 while (e.hasNext()) 16.05/8.99 if (o.equals(e.next())) 16.05/8.99 return true; 16.05/8.99 } 16.05/8.99 return false; 16.05/8.99 } 16.05/8.99 16.05/8.99 // Modification Operations 16.05/8.99 16.05/8.99 /** 16.05/8.99 * {@inheritDoc} 16.05/8.99 * 16.05/8.99 *

This implementation always throws an 16.05/8.99 * UnsupportedOperationException. 16.05/8.99 * 16.05/8.99 * @throws UnsupportedOperationException {@inheritDoc} 16.05/8.99 * @throws ClassCastException {@inheritDoc} 16.05/8.99 * @throws NullPointerException {@inheritDoc} 16.05/8.99 * @throws IllegalArgumentException {@inheritDoc} 16.05/8.99 * @throws IllegalStateException {@inheritDoc} 16.05/8.99 */ 16.05/8.99 public boolean add(E e) { 16.05/8.99 throw new UnsupportedOperationException(); 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * {@inheritDoc} 16.05/8.99 * 16.05/8.99 *

This implementation iterates over the collection looking for the 16.05/8.99 * specified element. If it finds the element, it removes the element 16.05/8.99 * from the collection using the iterator's remove method. 16.05/8.99 * 16.05/8.99 *

Note that this implementation throws an 16.05/8.99 * UnsupportedOperationException if the iterator returned by this 16.05/8.99 * collection's iterator method does not implement the remove 16.05/8.99 * method and this collection contains the specified object. 16.05/8.99 * 16.05/8.99 * @throws UnsupportedOperationException {@inheritDoc} 16.05/8.99 * @throws ClassCastException {@inheritDoc} 16.05/8.99 * @throws NullPointerException {@inheritDoc} 16.05/8.99 */ 16.05/8.99 public boolean remove(Object o) { 16.05/8.99 Iterator e = iterator(); 16.05/8.99 if (o==null) { 16.05/8.99 while (e.hasNext()) { 16.05/8.99 if (e.next()==null) { 16.05/8.99 e.remove(); 16.05/8.99 return true; 16.05/8.99 } 16.05/8.99 } 16.05/8.99 } else { 16.05/8.99 while (e.hasNext()) { 16.05/8.99 if (o.equals(e.next())) { 16.05/8.99 e.remove(); 16.05/8.99 return true; 16.05/8.99 } 16.05/8.99 } 16.05/8.99 } 16.05/8.99 return false; 16.05/8.99 } 16.05/8.99 16.05/8.99 16.05/8.99 // Bulk Operations 16.05/8.99 16.05/8.99 /** 16.05/8.99 * {@inheritDoc} 16.05/8.99 * 16.05/8.99 *

This implementation iterates over the specified collection, 16.05/8.99 * checking each element returned by the iterator in turn to see 16.05/8.99 * if it's contained in this collection. If all elements are so 16.05/8.99 * contained true is returned, otherwise false. 16.05/8.99 * 16.05/8.99 * @throws ClassCastException {@inheritDoc} 16.05/8.99 * @throws NullPointerException {@inheritDoc} 16.05/8.99 * @see #contains(Object) 16.05/8.99 */ 16.05/8.99 public boolean containsAll(Collection c) { 16.05/8.99 Iterator e = c.iterator(); 16.05/8.99 while (e.hasNext()) 16.05/8.99 if (!contains(e.next())) 16.05/8.99 return false; 16.05/8.99 return true; 16.05/8.99 } 16.05/8.99 16.05/8.99 /** 16.05/8.99 * {@inheritDoc} 16.05/8.99 * 16.05/8.99 *

This implementation iterates over the specified collection, and adds 16.05/8.99 * each object returned by the iterator to this collection, in turn. 16.05/8.99 * 16.05/8.99 *

Note that this implementation will throw an 16.05/9.00 * UnsupportedOperationException unless add is 16.05/9.00 * overridden (assuming the specified collection is non-empty). 16.05/9.00 * 16.05/9.00 * @throws UnsupportedOperationException {@inheritDoc} 16.05/9.00 * @throws ClassCastException {@inheritDoc} 16.05/9.00 * @throws NullPointerException {@inheritDoc} 16.05/9.00 * @throws IllegalArgumentException {@inheritDoc} 16.05/9.00 * @throws IllegalStateException {@inheritDoc} 16.05/9.00 * 16.05/9.00 * @see #add(Object) 16.05/9.00 */ 16.05/9.00 public boolean addAll(Collection c) { 16.05/9.00 boolean modified = false; 16.05/9.00 Iterator e = c.iterator(); 16.05/9.00 while (e.hasNext()) { 16.05/9.00 if (add(e.next())) 16.05/9.00 modified = true; 16.05/9.00 } 16.05/9.00 return modified; 16.05/9.00 } 16.05/9.00 16.05/9.00 /** 16.05/9.00 * {@inheritDoc} 16.05/9.00 * 16.05/9.00 *

This implementation iterates over this collection, checking each 16.05/9.00 * element returned by the iterator in turn to see if it's contained 16.05/9.00 * in the specified collection. If it's so contained, it's removed from 16.05/9.00 * this collection with the iterator's remove method. 16.05/9.00 * 16.05/9.00 *

Note that this implementation will throw an 16.05/9.00 * UnsupportedOperationException if the iterator returned by the 16.05/9.00 * iterator method does not implement the remove method 16.05/9.00 * and this collection contains one or more elements in common with the 16.05/9.00 * specified collection. 16.05/9.00 * 16.05/9.00 * @throws UnsupportedOperationException {@inheritDoc} 16.05/9.00 * @throws ClassCastException {@inheritDoc} 16.05/9.00 * @throws NullPointerException {@inheritDoc} 16.05/9.00 * 16.05/9.00 * @see #remove(Object) 16.05/9.00 * @see #contains(Object) 16.05/9.00 */ 16.05/9.00 public boolean removeAll(Collection c) { 16.05/9.00 boolean modified = false; 16.05/9.00 Iterator e = iterator(); 16.05/9.00 while (e.hasNext()) { 16.05/9.00 if (c.contains(e.next())) { 16.05/9.00 e.remove(); 16.05/9.00 modified = true; 16.05/9.00 } 16.05/9.00 } 16.05/9.00 return modified; 16.05/9.00 } 16.05/9.00 16.05/9.00 /** 16.05/9.00 * {@inheritDoc} 16.05/9.00 * 16.05/9.00 *

This implementation iterates over this collection, checking each 16.05/9.00 * element returned by the iterator in turn to see if it's contained 16.05/9.00 * in the specified collection. If it's not so contained, it's removed 16.05/9.00 * from this collection with the iterator's remove method. 16.05/9.00 * 16.05/9.00 *

Note that this implementation will throw an 16.05/9.00 * UnsupportedOperationException if the iterator returned by the 16.05/9.00 * iterator method does not implement the remove method 16.05/9.00 * and this collection contains one or more elements not present in the 16.05/9.00 * specified collection. 16.05/9.00 * 16.05/9.00 * @throws UnsupportedOperationException {@inheritDoc} 16.05/9.00 * @throws ClassCastException {@inheritDoc} 16.05/9.00 * @throws NullPointerException {@inheritDoc} 16.05/9.00 * 16.05/9.00 * @see #remove(Object) 16.05/9.00 * @see #contains(Object) 16.05/9.00 */ 16.05/9.00 public boolean retainAll(Collection c) { 16.05/9.00 boolean modified = false; 16.05/9.00 Iterator e = iterator(); 16.05/9.00 while (e.hasNext()) { 16.05/9.00 if (!c.contains(e.next())) { 16.05/9.00 e.remove(); 16.05/9.00 modified = true; 16.05/9.00 } 16.05/9.00 } 16.05/9.00 return modified; 16.05/9.00 } 16.05/9.00 16.05/9.00 /** 16.05/9.00 * {@inheritDoc} 16.05/9.00 * 16.05/9.00 *

This implementation iterates over this collection, removing each 16.05/9.00 * element using the Iterator.remove operation. Most 16.05/9.00 * implementations will probably choose to override this method for 16.05/9.00 * efficiency. 16.05/9.00 * 16.05/9.00 *

Note that this implementation will throw an 16.05/9.00 * UnsupportedOperationException if the iterator returned by this 16.05/9.00 * collection's iterator method does not implement the 16.05/9.00 * remove method and this collection is non-empty. 16.05/9.00 * 16.05/9.00 * @throws UnsupportedOperationException {@inheritDoc} 16.05/9.00 */ 16.05/9.00 public void clear() { 16.05/9.00 Iterator e = iterator(); 16.05/9.00 while (e.hasNext()) { 16.05/9.00 e.next(); 16.05/9.00 e.remove(); 16.05/9.00 } 16.05/9.00 } 16.05/9.00 16.05/9.00 16.05/9.00 // String conversion 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Returns a string representation of this collection. The string 16.05/9.00 * representation consists of a list of the collection's elements in the 16.05/9.00 * order they are returned by its iterator, enclosed in square brackets 16.05/9.00 * ("[]"). Adjacent elements are separated by the characters 16.05/9.00 * ", " (comma and space). Elements are converted to strings as 16.05/9.00 * by {@link String#valueOf(Object)}. 16.05/9.00 * 16.05/9.00 * @return a string representation of this collection 16.05/9.00 */ 16.05/9.00 public String toString() { 16.05/9.00 Iterator i = iterator(); 16.05/9.00 if (! i.hasNext()) 16.05/9.00 return "[]"; 16.05/9.00 16.05/9.00 String sb = ""; 16.05/9.00 sb = sb + "["; 16.05/9.00 for (;;) { 16.05/9.00 E e = i.next(); 16.05/9.00 sb = sb + (e == this ? "(this Collection)" : e); 16.05/9.00 if (! i.hasNext()) { 16.05/9.00 sb = sb + "]"; 16.05/9.00 return sb; 16.05/9.00 } 16.05/9.00 sb = sb + ", "; 16.05/9.00 } 16.05/9.00 } 16.05/9.00 16.05/9.00 } 16.05/9.00 16.05/9.00 16.05/9.00 /* 16.05/9.00 * Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved. 16.05/9.00 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/9.00 * 16.05/9.00 * This code is free software; you can redistribute it and/or modify it 16.05/9.00 * under the terms of the GNU General Public License version 2 only, as 16.05/9.00 * published by the Free Software Foundation. Sun designates this 16.05/9.00 * particular file as subject to the "Classpath" exception as provided 16.05/9.00 * by Sun in the LICENSE file that accompanied this code. 16.05/9.00 * 16.05/9.00 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/9.00 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/9.00 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/9.00 * version 2 for more details (a copy is included in the LICENSE file that 16.05/9.00 * accompanied this code). 16.05/9.00 * 16.05/9.00 * You should have received a copy of the GNU General Public License version 16.05/9.00 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/9.00 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/9.00 * 16.05/9.00 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/9.00 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/9.00 * have any questions. 16.05/9.00 */ 16.05/9.00 16.05/9.00 package javaUtilEx; 16.05/9.00 16.05/9.00 /** 16.05/9.00 * This class provides a skeletal implementation of the {@link List} 16.05/9.00 * interface to minimize the effort required to implement this interface 16.05/9.00 * backed by a "random access" data store (such as an array). For sequential 16.05/9.00 * access data (such as a linked list), {@link AbstractSequentialList} should 16.05/9.00 * be used in preference to this class. 16.05/9.00 * 16.05/9.00 *

To implement an unmodifiable list, the programmer needs only to extend 16.05/9.00 * this class and provide implementations for the {@link #get(int)} and 16.05/9.00 * {@link List#size() size()} methods. 16.05/9.00 * 16.05/9.00 *

To implement a modifiable list, the programmer must additionally 16.05/9.00 * override the {@link #set(int, Object) set(int, E)} method (which otherwise 16.05/9.00 * throws an {@code UnsupportedOperationException}). If the list is 16.05/9.00 * variable-size the programmer must additionally override the 16.05/9.00 * {@link #add(int, Object) add(int, E)} and {@link #remove(int)} methods. 16.05/9.00 * 16.05/9.00 *

The programmer should generally provide a void (no argument) and collection 16.05/9.00 * constructor, as per the recommendation in the {@link Collection} interface 16.05/9.00 * specification. 16.05/9.00 * 16.05/9.00 *

Unlike the other abstract collection implementations, the programmer does 16.05/9.00 * not have to provide an iterator implementation; the iterator and 16.05/9.00 * list iterator are implemented by this class, on top of the "random access" 16.05/9.00 * methods: 16.05/9.00 * {@link #get(int)}, 16.05/9.00 * {@link #set(int, Object) set(int, E)}, 16.05/9.00 * {@link #add(int, Object) add(int, E)} and 16.05/9.00 * {@link #remove(int)}. 16.05/9.00 * 16.05/9.00 *

The documentation for each non-abstract method in this class describes its 16.05/9.00 * implementation in detail. Each of these methods may be overridden if the 16.05/9.00 * collection being implemented admits a more efficient implementation. 16.05/9.00 * 16.05/9.00 *

This class is a member of the 16.05/9.00 * 16.05/9.00 * Java Collections Framework. 16.05/9.00 * 16.05/9.00 * @author Josh Bloch 16.05/9.00 * @author Neal Gafter 16.05/9.00 * @since 1.2 16.05/9.00 */ 16.05/9.00 16.05/9.00 public abstract class AbstractList extends AbstractCollection implements List { 16.05/9.00 /** 16.05/9.00 * Sole constructor. (For invocation by subclass constructors, typically 16.05/9.00 * implicit.) 16.05/9.00 */ 16.05/9.00 protected AbstractList() { 16.05/9.00 } 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Appends the specified element to the end of this list (optional 16.05/9.00 * operation). 16.05/9.00 * 16.05/9.00 *

Lists that support this operation may place limitations on what 16.05/9.00 * elements may be added to this list. In particular, some 16.05/9.00 * lists will refuse to add null elements, and others will impose 16.05/9.00 * restrictions on the type of elements that may be added. List 16.05/9.00 * classes should clearly specify in their documentation any restrictions 16.05/9.00 * on what elements may be added. 16.05/9.00 * 16.05/9.00 *

This implementation calls {@code add(size(), e)}. 16.05/9.00 * 16.05/9.00 *

Note that this implementation throws an 16.05/9.00 * {@code UnsupportedOperationException} unless 16.05/9.00 * {@link #add(int, Object) add(int, E)} is overridden. 16.05/9.00 * 16.05/9.00 * @param e element to be appended to this list 16.05/9.00 * @return {@code true} (as specified by {@link Collection#add}) 16.05/9.00 * @throws UnsupportedOperationException if the {@code add} operation 16.05/9.00 * is not supported by this list 16.05/9.00 * @throws ClassCastException if the class of the specified element 16.05/9.00 * prevents it from being added to this list 16.05/9.00 * @throws NullPointerException if the specified element is null and this 16.05/9.00 * list does not permit null elements 16.05/9.00 * @throws IllegalArgumentException if some property of this element 16.05/9.00 * prevents it from being added to this list 16.05/9.00 */ 16.05/9.00 public boolean add(E e) { 16.05/9.00 add(size(), e); 16.05/9.00 return true; 16.05/9.00 } 16.05/9.00 16.05/9.00 /** 16.05/9.00 * {@inheritDoc} 16.05/9.00 * 16.05/9.00 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/9.00 */ 16.05/9.00 abstract public E get(int index); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * {@inheritDoc} 16.05/9.00 * 16.05/9.00 *

This implementation always throws an 16.05/9.00 * {@code UnsupportedOperationException}. 16.05/9.00 * 16.05/9.00 * @throws UnsupportedOperationException {@inheritDoc} 16.05/9.00 * @throws ClassCastException {@inheritDoc} 16.05/9.00 * @throws NullPointerException {@inheritDoc} 16.05/9.00 * @throws IllegalArgumentException {@inheritDoc} 16.05/9.00 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/9.00 */ 16.05/9.00 public E set(int index, E element) { 16.05/9.00 throw new UnsupportedOperationException(); 16.05/9.00 } 16.05/9.00 16.05/9.00 /** 16.05/9.00 * {@inheritDoc} 16.05/9.00 * 16.05/9.00 *

This implementation always throws an 16.05/9.00 * {@code UnsupportedOperationException}. 16.05/9.00 * 16.05/9.00 * @throws UnsupportedOperationException {@inheritDoc} 16.05/9.00 * @throws ClassCastException {@inheritDoc} 16.05/9.00 * @throws NullPointerException {@inheritDoc} 16.05/9.00 * @throws IllegalArgumentException {@inheritDoc} 16.05/9.00 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/9.00 */ 16.05/9.00 public void add(int index, E element) { 16.05/9.00 throw new UnsupportedOperationException(); 16.05/9.00 } 16.05/9.00 16.05/9.00 /** 16.05/9.00 * {@inheritDoc} 16.05/9.00 * 16.05/9.00 *

This implementation always throws an 16.05/9.00 * {@code UnsupportedOperationException}. 16.05/9.00 * 16.05/9.00 * @throws UnsupportedOperationException {@inheritDoc} 16.05/9.00 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/9.00 */ 16.05/9.00 public E remove(int index) { 16.05/9.00 throw new UnsupportedOperationException(); 16.05/9.00 } 16.05/9.00 16.05/9.00 16.05/9.00 // Search Operations 16.05/9.00 16.05/9.00 /** 16.05/9.00 * {@inheritDoc} 16.05/9.00 * 16.05/9.00 *

This implementation first gets a list iterator (with 16.05/9.00 * {@code listIterator()}). Then, it iterates over the list until the 16.05/9.00 * specified element is found or the end of the list is reached. 16.05/9.00 * 16.05/9.00 * @throws ClassCastException {@inheritDoc} 16.05/9.00 * @throws NullPointerException {@inheritDoc} 16.05/9.00 */ 16.05/9.00 public int indexOf(Object o) { 16.05/9.00 ListIterator e = listIterator(); 16.05/9.00 if (o==null) { 16.05/9.00 while (e.hasNext()) 16.05/9.00 if (e.next()==null) 16.05/9.00 return e.previousIndex(); 16.05/9.00 } else { 16.05/9.00 while (e.hasNext()) 16.05/9.00 if (o.equals(e.next())) 16.05/9.00 return e.previousIndex(); 16.05/9.00 } 16.05/9.00 return -1; 16.05/9.00 } 16.05/9.00 16.05/9.00 /** 16.05/9.00 * {@inheritDoc} 16.05/9.00 * 16.05/9.00 *

This implementation first gets a list iterator that points to the end 16.05/9.00 * of the list (with {@code listIterator(size())}). Then, it iterates 16.05/9.00 * backwards over the list until the specified element is found, or the 16.05/9.00 * beginning of the list is reached. 16.05/9.00 * 16.05/9.00 * @throws ClassCastException {@inheritDoc} 16.05/9.00 * @throws NullPointerException {@inheritDoc} 16.05/9.00 */ 16.05/9.00 public int lastIndexOf(Object o) { 16.05/9.00 ListIterator e = listIterator(size()); 16.05/9.00 if (o==null) { 16.05/9.00 while (e.hasPrevious()) 16.05/9.00 if (e.previous()==null) 16.05/9.00 return e.nextIndex(); 16.05/9.00 } else { 16.05/9.00 while (e.hasPrevious()) 16.05/9.00 if (o.equals(e.previous())) 16.05/9.00 return e.nextIndex(); 16.05/9.00 } 16.05/9.00 return -1; 16.05/9.00 } 16.05/9.00 16.05/9.00 16.05/9.00 // Bulk Operations 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Removes all of the elements from this list (optional operation). 16.05/9.00 * The list will be empty after this call returns. 16.05/9.00 * 16.05/9.00 *

This implementation calls {@code removeRange(0, size())}. 16.05/9.00 * 16.05/9.00 *

Note that this implementation throws an 16.05/9.00 * {@code UnsupportedOperationException} unless {@code remove(int 16.05/9.00 * index)} or {@code removeRange(int fromIndex, int toIndex)} is 16.05/9.00 * overridden. 16.05/9.00 * 16.05/9.00 * @throws UnsupportedOperationException if the {@code clear} operation 16.05/9.00 * is not supported by this list 16.05/9.00 */ 16.05/9.00 public void clear() { 16.05/9.00 removeRange(0, size()); 16.05/9.00 } 16.05/9.00 16.05/9.00 /** 16.05/9.00 * {@inheritDoc} 16.05/9.00 * 16.05/9.00 *

This implementation gets an iterator over the specified collection 16.05/9.00 * and iterates over it, inserting the elements obtained from the 16.05/9.00 * iterator into this list at the appropriate position, one at a time, 16.05/9.00 * using {@code add(int, E)}. 16.05/9.00 * Many implementations will override this method for efficiency. 16.05/9.00 * 16.05/9.00 *

Note that this implementation throws an 16.05/9.00 * {@code UnsupportedOperationException} unless 16.05/9.00 * {@link #add(int, Object) add(int, E)} is overridden. 16.05/9.00 * 16.05/9.00 * @throws UnsupportedOperationException {@inheritDoc} 16.05/9.00 * @throws ClassCastException {@inheritDoc} 16.05/9.00 * @throws NullPointerException {@inheritDoc} 16.05/9.00 * @throws IllegalArgumentException {@inheritDoc} 16.05/9.00 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/9.00 */ 16.05/9.00 public boolean addAll(int index, Collection c) { 16.05/9.00 rangeCheckForAdd(index); 16.05/9.00 boolean modified = false; 16.05/9.00 Iterator e = c.iterator(); 16.05/9.00 while (e.hasNext()) { 16.05/9.00 add(index++, e.next()); 16.05/9.00 modified = true; 16.05/9.00 } 16.05/9.00 return modified; 16.05/9.00 } 16.05/9.00 16.05/9.00 16.05/9.00 // Iterators 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Returns an iterator over the elements in this list in proper sequence. 16.05/9.00 * 16.05/9.00 *

This implementation returns a straightforward implementation of the 16.05/9.00 * iterator interface, relying on the backing list's {@code size()}, 16.05/9.00 * {@code get(int)}, and {@code remove(int)} methods. 16.05/9.00 * 16.05/9.00 *

Note that the iterator returned by this method will throw an 16.05/9.00 * {@link UnsupportedOperationException} in response to its 16.05/9.00 * {@code remove} method unless the list's {@code remove(int)} method is 16.05/9.00 * overridden. 16.05/9.00 * 16.05/9.00 *

This implementation can be made to throw runtime exceptions in the 16.05/9.00 * face of concurrent modification, as described in the specification 16.05/9.00 * for the (protected) {@link #modCount} field. 16.05/9.00 * 16.05/9.00 * @return an iterator over the elements in this list in proper sequence 16.05/9.00 */ 16.05/9.00 public Iterator iterator() { 16.05/9.00 return new Itr(); 16.05/9.00 } 16.05/9.00 16.05/9.00 /** 16.05/9.00 * {@inheritDoc} 16.05/9.00 * 16.05/9.00 *

This implementation returns {@code listIterator(0)}. 16.05/9.00 * 16.05/9.00 * @see #listIterator(int) 16.05/9.00 */ 16.05/9.00 public ListIterator listIterator() { 16.05/9.00 return listIterator(0); 16.05/9.00 } 16.05/9.00 16.05/9.00 /** 16.05/9.00 * {@inheritDoc} 16.05/9.00 * 16.05/9.00 *

This implementation returns a straightforward implementation of the 16.05/9.00 * {@code ListIterator} interface that extends the implementation of the 16.05/9.00 * {@code Iterator} interface returned by the {@code iterator()} method. 16.05/9.00 * The {@code ListIterator} implementation relies on the backing list's 16.05/9.00 * {@code get(int)}, {@code set(int, E)}, {@code add(int, E)} 16.05/9.00 * and {@code remove(int)} methods. 16.05/9.00 * 16.05/9.00 *

Note that the list iterator returned by this implementation will 16.05/9.00 * throw an {@link UnsupportedOperationException} in response to its 16.05/9.00 * {@code remove}, {@code set} and {@code add} methods unless the 16.05/9.00 * list's {@code remove(int)}, {@code set(int, E)}, and 16.05/9.00 * {@code add(int, E)} methods are overridden. 16.05/9.00 * 16.05/9.00 *

This implementation can be made to throw runtime exceptions in the 16.05/9.00 * face of concurrent modification, as described in the specification for 16.05/9.00 * the (protected) {@link #modCount} field. 16.05/9.00 * 16.05/9.00 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/9.00 */ 16.05/9.00 public ListIterator listIterator(final int index) { 16.05/9.00 rangeCheckForAdd(index); 16.05/9.00 16.05/9.00 return new ListItr(index); 16.05/9.00 } 16.05/9.00 16.05/9.00 private class Itr implements Iterator { 16.05/9.00 /** 16.05/9.00 * Index of element to be returned by subsequent call to next. 16.05/9.00 */ 16.05/9.00 int cursor = 0; 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Index of element returned by most recent call to next or 16.05/9.00 * previous. Reset to -1 if this element is deleted by a call 16.05/9.00 * to remove. 16.05/9.00 */ 16.05/9.00 int lastRet = -1; 16.05/9.00 16.05/9.00 /** 16.05/9.00 * The modCount value that the iterator believes that the backing 16.05/9.00 * List should have. If this expectation is violated, the iterator 16.05/9.00 * has detected concurrent modification. 16.05/9.00 */ 16.05/9.00 int expectedModCount = modCount; 16.05/9.00 16.05/9.00 public boolean hasNext() { 16.05/9.00 return cursor != size(); 16.05/9.00 } 16.05/9.00 16.05/9.00 public E next() { 16.05/9.00 checkForComodification(); 16.05/9.00 try { 16.05/9.00 int i = cursor; 16.05/9.00 E next = get(i); 16.05/9.00 lastRet = i; 16.05/9.00 cursor = i + 1; 16.05/9.00 return next; 16.05/9.00 } catch (IndexOutOfBoundsException e) { 16.05/9.00 checkForComodification(); 16.05/9.00 throw new NoSuchElementException(); 16.05/9.00 } 16.05/9.00 } 16.05/9.00 16.05/9.00 public void remove() { 16.05/9.00 if (lastRet < 0) 16.05/9.00 throw new IllegalStateException(); 16.05/9.00 checkForComodification(); 16.05/9.00 16.05/9.00 try { 16.05/9.00 AbstractList.this.remove(lastRet); 16.05/9.00 if (lastRet < cursor) 16.05/9.00 cursor--; 16.05/9.00 lastRet = -1; 16.05/9.00 expectedModCount = modCount; 16.05/9.00 } catch (IndexOutOfBoundsException e) { 16.05/9.00 throw new ConcurrentModificationException(); 16.05/9.00 } 16.05/9.00 } 16.05/9.00 16.05/9.00 final void checkForComodification() { 16.05/9.00 if (modCount != expectedModCount) 16.05/9.00 throw new ConcurrentModificationException(); 16.05/9.00 } 16.05/9.00 } 16.05/9.00 16.05/9.00 private class ListItr extends Itr implements ListIterator { 16.05/9.00 ListItr(int index) { 16.05/9.00 cursor = index; 16.05/9.00 } 16.05/9.00 16.05/9.00 public boolean hasPrevious() { 16.05/9.00 return cursor != 0; 16.05/9.00 } 16.05/9.00 16.05/9.00 public E previous() { 16.05/9.00 checkForComodification(); 16.05/9.00 try { 16.05/9.00 int i = cursor - 1; 16.05/9.00 E previous = get(i); 16.05/9.00 lastRet = cursor = i; 16.05/9.00 return previous; 16.05/9.00 } catch (IndexOutOfBoundsException e) { 16.05/9.00 checkForComodification(); 16.05/9.00 throw new NoSuchElementException(); 16.05/9.00 } 16.05/9.00 } 16.05/9.00 16.05/9.00 public int nextIndex() { 16.05/9.00 return cursor; 16.05/9.00 } 16.05/9.00 16.05/9.00 public int previousIndex() { 16.05/9.00 return cursor-1; 16.05/9.00 } 16.05/9.00 16.05/9.00 public void set(E e) { 16.05/9.00 if (lastRet < 0) 16.05/9.00 throw new IllegalStateException(); 16.05/9.00 checkForComodification(); 16.05/9.00 16.05/9.00 try { 16.05/9.00 AbstractList.this.set(lastRet, e); 16.05/9.00 expectedModCount = modCount; 16.05/9.00 } catch (IndexOutOfBoundsException ex) { 16.05/9.00 throw new ConcurrentModificationException(); 16.05/9.00 } 16.05/9.00 } 16.05/9.00 16.05/9.00 public void add(E e) { 16.05/9.00 checkForComodification(); 16.05/9.00 16.05/9.00 try { 16.05/9.00 int i = cursor; 16.05/9.00 AbstractList.this.add(i, e); 16.05/9.00 lastRet = -1; 16.05/9.00 cursor = i + 1; 16.05/9.00 expectedModCount = modCount; 16.05/9.00 } catch (IndexOutOfBoundsException ex) { 16.05/9.00 throw new ConcurrentModificationException(); 16.05/9.00 } 16.05/9.00 } 16.05/9.00 } 16.05/9.00 16.05/9.00 /** 16.05/9.00 * {@inheritDoc} 16.05/9.00 * 16.05/9.00 *

This implementation returns a list that subclasses 16.05/9.00 * {@code AbstractList}. The subclass stores, in private fields, the 16.05/9.00 * offset of the subList within the backing list, the size of the subList 16.05/9.00 * (which can change over its lifetime), and the expected 16.05/9.00 * {@code modCount} value of the backing list. There are two variants 16.05/9.00 * of the subclass, one of which implements {@code RandomAccess}. 16.05/9.00 * If this list implements {@code RandomAccess} the returned list will 16.05/9.00 * be an instance of the subclass that implements {@code RandomAccess}. 16.05/9.00 * 16.05/9.00 *

The subclass's {@code set(int, E)}, {@code get(int)}, 16.05/9.00 * {@code add(int, E)}, {@code remove(int)}, {@code addAll(int, 16.05/9.00 * Collection)} and {@code removeRange(int, int)} methods all 16.05/9.00 * delegate to the corresponding methods on the backing abstract list, 16.05/9.00 * after bounds-checking the index and adjusting for the offset. The 16.05/9.00 * {@code addAll(Collection c)} method merely returns {@code addAll(size, 16.05/9.00 * c)}. 16.05/9.00 * 16.05/9.00 *

The {@code listIterator(int)} method returns a "wrapper object" 16.05/9.00 * over a list iterator on the backing list, which is created with the 16.05/9.00 * corresponding method on the backing list. The {@code iterator} method 16.05/9.00 * merely returns {@code listIterator()}, and the {@code size} method 16.05/9.00 * merely returns the subclass's {@code size} field. 16.05/9.00 * 16.05/9.00 *

All methods first check to see if the actual {@code modCount} of 16.05/9.00 * the backing list is equal to its expected value, and throw a 16.05/9.00 * {@code ConcurrentModificationException} if it is not. 16.05/9.00 * 16.05/9.00 * @throws IndexOutOfBoundsException if an endpoint index value is out of range 16.05/9.00 * {@code (fromIndex < 0 || toIndex > size)} 16.05/9.00 * @throws IllegalArgumentException if the endpoint indices are out of order 16.05/9.00 * {@code (fromIndex > toIndex)} 16.05/9.00 */ 16.05/9.00 public List subList(int fromIndex, int toIndex) { 16.05/9.00 return (this instanceof RandomAccess ? 16.05/9.00 new RandomAccessSubList(this, fromIndex, toIndex) : 16.05/9.00 new SubList(this, fromIndex, toIndex)); 16.05/9.00 } 16.05/9.00 16.05/9.00 // Comparison and hashing 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Compares the specified object with this list for equality. Returns 16.05/9.00 * {@code true} if and only if the specified object is also a list, both 16.05/9.00 * lists have the same size, and all corresponding pairs of elements in 16.05/9.00 * the two lists are equal. (Two elements {@code e1} and 16.05/9.00 * {@code e2} are equal if {@code (e1==null ? e2==null : 16.05/9.00 * e1.equals(e2))}.) In other words, two lists are defined to be 16.05/9.00 * equal if they contain the same elements in the same order.

16.05/9.00 * 16.05/9.00 * This implementation first checks if the specified object is this 16.05/9.00 * list. If so, it returns {@code true}; if not, it checks if the 16.05/9.00 * specified object is a list. If not, it returns {@code false}; if so, 16.05/9.00 * it iterates over both lists, comparing corresponding pairs of elements. 16.05/9.00 * If any comparison returns {@code false}, this method returns 16.05/9.00 * {@code false}. If either iterator runs out of elements before the 16.05/9.00 * other it returns {@code false} (as the lists are of unequal length); 16.05/9.00 * otherwise it returns {@code true} when the iterations complete. 16.05/9.00 * 16.05/9.00 * @param o the object to be compared for equality with this list 16.05/9.00 * @return {@code true} if the specified object is equal to this list 16.05/9.00 */ 16.05/9.00 public boolean equals(Object o) { 16.05/9.00 if (o == this) 16.05/9.00 return true; 16.05/9.00 if (!(o instanceof List)) 16.05/9.00 return false; 16.05/9.00 16.05/9.00 ListIterator e1 = listIterator(); 16.05/9.00 ListIterator e2 = ((List) o).listIterator(); 16.05/9.00 while(e1.hasNext() && e2.hasNext()) { 16.05/9.00 E o1 = e1.next(); 16.05/9.00 Object o2 = e2.next(); 16.05/9.00 if (!(o1==null ? o2==null : o1.equals(o2))) 16.05/9.00 return false; 16.05/9.00 } 16.05/9.00 return !(e1.hasNext() || e2.hasNext()); 16.05/9.00 } 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Returns the hash code value for this list. 16.05/9.00 * 16.05/9.00 *

This implementation uses exactly the code that is used to define the 16.05/9.00 * list hash function in the documentation for the {@link List#hashCode} 16.05/9.00 * method. 16.05/9.00 * 16.05/9.00 * @return the hash code value for this list 16.05/9.00 */ 16.05/9.00 public int hashCode() { 16.05/9.00 int hashCode = 1; 16.05/9.00 Iterator it = this.iterator(); 16.05/9.00 while (it.hasNext()) { 16.05/9.00 E e = it.next(); 16.05/9.00 hashCode = 31*hashCode + (e==null ? 0 : e.hashCode()); 16.05/9.00 } 16.05/9.00 return hashCode; 16.05/9.00 } 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Removes from this list all of the elements whose index is between 16.05/9.00 * {@code fromIndex}, inclusive, and {@code toIndex}, exclusive. 16.05/9.00 * Shifts any succeeding elements to the left (reduces their index). 16.05/9.00 * This call shortens the list by {@code (toIndex - fromIndex)} elements. 16.05/9.00 * (If {@code toIndex==fromIndex}, this operation has no effect.) 16.05/9.00 * 16.05/9.00 *

This method is called by the {@code clear} operation on this list 16.05/9.00 * and its subLists. Overriding this method to take advantage of 16.05/9.00 * the internals of the list implementation can substantially 16.05/9.00 * improve the performance of the {@code clear} operation on this list 16.05/9.00 * and its subLists. 16.05/9.00 * 16.05/9.00 *

This implementation gets a list iterator positioned before 16.05/9.00 * {@code fromIndex}, and repeatedly calls {@code ListIterator.next} 16.05/9.00 * followed by {@code ListIterator.remove} until the entire range has 16.05/9.00 * been removed. Note: if {@code ListIterator.remove} requires linear 16.05/9.00 * time, this implementation requires quadratic time. 16.05/9.00 * 16.05/9.00 * @param fromIndex index of first element to be removed 16.05/9.00 * @param toIndex index after last element to be removed 16.05/9.00 */ 16.05/9.00 protected void removeRange(int fromIndex, int toIndex) { 16.05/9.00 ListIterator it = listIterator(fromIndex); 16.05/9.00 for (int i=0, n=toIndex-fromIndex; istructurally modified. 16.05/9.00 * Structural modifications are those that change the size of the 16.05/9.00 * list, or otherwise perturb it in such a fashion that iterations in 16.05/9.00 * progress may yield incorrect results. 16.05/9.00 * 16.05/9.00 *

This field is used by the iterator and list iterator implementation 16.05/9.00 * returned by the {@code iterator} and {@code listIterator} methods. 16.05/9.00 * If the value of this field changes unexpectedly, the iterator (or list 16.05/9.00 * iterator) will throw a {@code ConcurrentModificationException} in 16.05/9.00 * response to the {@code next}, {@code remove}, {@code previous}, 16.05/9.00 * {@code set} or {@code add} operations. This provides 16.05/9.00 * fail-fast behavior, rather than non-deterministic behavior in 16.05/9.00 * the face of concurrent modification during iteration. 16.05/9.00 * 16.05/9.00 *

Use of this field by subclasses is optional. If a subclass 16.05/9.00 * wishes to provide fail-fast iterators (and list iterators), then it 16.05/9.00 * merely has to increment this field in its {@code add(int, E)} and 16.05/9.00 * {@code remove(int)} methods (and any other methods that it overrides 16.05/9.00 * that result in structural modifications to the list). A single call to 16.05/9.00 * {@code add(int, E)} or {@code remove(int)} must add no more than 16.05/9.00 * one to this field, or the iterators (and list iterators) will throw 16.05/9.00 * bogus {@code ConcurrentModificationExceptions}. If an implementation 16.05/9.00 * does not wish to provide fail-fast iterators, this field may be 16.05/9.00 * ignored. 16.05/9.00 */ 16.05/9.00 protected transient int modCount = 0; 16.05/9.00 16.05/9.00 private void rangeCheckForAdd(int index) { 16.05/9.00 if (index < 0 || index > size()) 16.05/9.00 throw new IndexOutOfBoundsException(outOfBoundsMsg(index)); 16.05/9.00 } 16.05/9.00 16.05/9.00 private String outOfBoundsMsg(int index) { 16.05/9.00 return ""; 16.05/9.00 } 16.05/9.00 } 16.05/9.00 16.05/9.00 class SubList extends AbstractList { 16.05/9.00 private final AbstractList l; 16.05/9.00 private final int offset; 16.05/9.00 private int size; 16.05/9.00 16.05/9.00 SubList(AbstractList list, int fromIndex, int toIndex) { 16.05/9.00 if (fromIndex < 0) 16.05/9.00 throw new IndexOutOfBoundsException(); 16.05/9.00 if (toIndex > list.size()) 16.05/9.00 throw new IndexOutOfBoundsException(); 16.05/9.00 if (fromIndex > toIndex) 16.05/9.00 throw new IllegalArgumentException(); 16.05/9.00 l = list; 16.05/9.00 offset = fromIndex; 16.05/9.00 size = toIndex - fromIndex; 16.05/9.00 this.modCount = l.modCount; 16.05/9.00 } 16.05/9.00 16.05/9.00 public E set(int index, E element) { 16.05/9.00 rangeCheck(index); 16.05/9.00 checkForComodification(); 16.05/9.00 return l.set(index+offset, element); 16.05/9.00 } 16.05/9.00 16.05/9.00 public E get(int index) { 16.05/9.00 rangeCheck(index); 16.05/9.00 checkForComodification(); 16.05/9.00 return l.get(index+offset); 16.05/9.00 } 16.05/9.00 16.05/9.00 public int size() { 16.05/9.00 checkForComodification(); 16.05/9.00 return size; 16.05/9.00 } 16.05/9.00 16.05/9.00 public void add(int index, E element) { 16.05/9.00 rangeCheckForAdd(index); 16.05/9.00 checkForComodification(); 16.05/9.00 l.add(index+offset, element); 16.05/9.00 this.modCount = l.modCount; 16.05/9.00 size++; 16.05/9.00 } 16.05/9.00 16.05/9.00 public E remove(int index) { 16.05/9.00 rangeCheck(index); 16.05/9.00 checkForComodification(); 16.05/9.00 E result = l.remove(index+offset); 16.05/9.00 this.modCount = l.modCount; 16.05/9.00 size--; 16.05/9.00 return result; 16.05/9.00 } 16.05/9.00 16.05/9.00 protected void removeRange(int fromIndex, int toIndex) { 16.05/9.00 checkForComodification(); 16.05/9.00 l.removeRange(fromIndex+offset, toIndex+offset); 16.05/9.00 this.modCount = l.modCount; 16.05/9.00 size -= (toIndex-fromIndex); 16.05/9.00 } 16.05/9.00 16.05/9.00 public boolean addAll(Collection c) { 16.05/9.00 return addAll(size, c); 16.05/9.00 } 16.05/9.00 16.05/9.00 public boolean addAll(int index, Collection c) { 16.05/9.00 rangeCheckForAdd(index); 16.05/9.00 int cSize = c.size(); 16.05/9.00 if (cSize==0) 16.05/9.00 return false; 16.05/9.00 16.05/9.00 checkForComodification(); 16.05/9.00 l.addAll(offset+index, c); 16.05/9.00 this.modCount = l.modCount; 16.05/9.00 size += cSize; 16.05/9.00 return true; 16.05/9.00 } 16.05/9.00 16.05/9.00 public Iterator iterator() { 16.05/9.00 return listIterator(); 16.05/9.00 } 16.05/9.00 16.05/9.00 public ListIterator listIterator(final int index) { 16.05/9.00 checkForComodification(); 16.05/9.00 rangeCheckForAdd(index); 16.05/9.00 16.05/9.00 return new ListIterator() { 16.05/9.00 private final ListIterator i = l.listIterator(index+offset); 16.05/9.00 16.05/9.00 public boolean hasNext() { 16.05/9.00 return nextIndex() < size; 16.05/9.00 } 16.05/9.00 16.05/9.00 public E next() { 16.05/9.00 if (hasNext()) 16.05/9.00 return i.next(); 16.05/9.00 else 16.05/9.00 throw new NoSuchElementException(); 16.05/9.00 } 16.05/9.00 16.05/9.00 public boolean hasPrevious() { 16.05/9.00 return previousIndex() >= 0; 16.05/9.00 } 16.05/9.00 16.05/9.00 public E previous() { 16.05/9.00 if (hasPrevious()) 16.05/9.00 return i.previous(); 16.05/9.00 else 16.05/9.00 throw new NoSuchElementException(); 16.05/9.00 } 16.05/9.00 16.05/9.00 public int nextIndex() { 16.05/9.00 return i.nextIndex() - offset; 16.05/9.00 } 16.05/9.00 16.05/9.00 public int previousIndex() { 16.05/9.00 return i.previousIndex() - offset; 16.05/9.00 } 16.05/9.00 16.05/9.00 public void remove() { 16.05/9.00 i.remove(); 16.05/9.00 SubList.this.modCount = l.modCount; 16.05/9.00 size--; 16.05/9.00 } 16.05/9.00 16.05/9.00 public void set(E e) { 16.05/9.00 i.set(e); 16.05/9.00 } 16.05/9.00 16.05/9.00 public void add(E e) { 16.05/9.00 i.add(e); 16.05/9.00 SubList.this.modCount = l.modCount; 16.05/9.00 size++; 16.05/9.00 } 16.05/9.00 }; 16.05/9.00 } 16.05/9.00 16.05/9.00 public List subList(int fromIndex, int toIndex) { 16.05/9.00 return new SubList(this, fromIndex, toIndex); 16.05/9.00 } 16.05/9.00 16.05/9.00 private void rangeCheck(int index) { 16.05/9.00 if (index < 0 || index >= size) 16.05/9.00 throw new IndexOutOfBoundsException(outOfBoundsMsg(index)); 16.05/9.00 } 16.05/9.00 16.05/9.00 private void rangeCheckForAdd(int index) { 16.05/9.00 if (index < 0 || index > size) 16.05/9.00 throw new IndexOutOfBoundsException(outOfBoundsMsg(index)); 16.05/9.00 } 16.05/9.00 16.05/9.00 private String outOfBoundsMsg(int index) { 16.05/9.00 return ""; 16.05/9.00 } 16.05/9.00 16.05/9.00 private void checkForComodification() { 16.05/9.00 if (this.modCount != l.modCount) 16.05/9.00 throw new ConcurrentModificationException(); 16.05/9.00 } 16.05/9.00 } 16.05/9.00 16.05/9.00 class RandomAccessSubList extends SubList implements RandomAccess { 16.05/9.00 RandomAccessSubList(AbstractList list, int fromIndex, int toIndex) { 16.05/9.00 super(list, fromIndex, toIndex); 16.05/9.00 } 16.05/9.00 16.05/9.00 public List subList(int fromIndex, int toIndex) { 16.05/9.00 return new RandomAccessSubList(this, fromIndex, toIndex); 16.05/9.00 } 16.05/9.00 } 16.05/9.00 16.05/9.00 16.05/9.00 /* 16.05/9.00 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 16.05/9.00 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/9.00 * 16.05/9.00 * This code is free software; you can redistribute it and/or modify it 16.05/9.00 * under the terms of the GNU General Public License version 2 only, as 16.05/9.00 * published by the Free Software Foundation. Sun designates this 16.05/9.00 * particular file as subject to the "Classpath" exception as provided 16.05/9.00 * by Sun in the LICENSE file that accompanied this code. 16.05/9.00 * 16.05/9.00 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/9.00 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/9.00 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/9.00 * version 2 for more details (a copy is included in the LICENSE file that 16.05/9.00 * accompanied this code). 16.05/9.00 * 16.05/9.00 * You should have received a copy of the GNU General Public License version 16.05/9.00 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/9.00 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/9.00 * 16.05/9.00 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/9.00 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/9.00 * have any questions. 16.05/9.00 */ 16.05/9.00 16.05/9.00 package javaUtilEx; 16.05/9.00 16.05/9.00 /** 16.05/9.00 * This class provides a skeletal implementation of the List 16.05/9.00 * interface to minimize the effort required to implement this interface 16.05/9.00 * backed by a "sequential access" data store (such as a linked list). For 16.05/9.00 * random access data (such as an array), AbstractList should be used 16.05/9.00 * in preference to this class.

16.05/9.00 * 16.05/9.00 * This class is the opposite of the AbstractList class in the sense 16.05/9.00 * that it implements the "random access" methods (get(int index), 16.05/9.00 * set(int index, E element), add(int index, E element) and 16.05/9.00 * remove(int index)) on top of the list's list iterator, instead of 16.05/9.00 * the other way around.

16.05/9.00 * 16.05/9.00 * To implement a list the programmer needs only to extend this class and 16.05/9.00 * provide implementations for the listIterator and size 16.05/9.00 * methods. For an unmodifiable list, the programmer need only implement the 16.05/9.00 * list iterator's hasNext, next, hasPrevious, 16.05/9.00 * previous and index methods.

16.05/9.00 * 16.05/9.00 * For a modifiable list the programmer should additionally implement the list 16.05/9.00 * iterator's set method. For a variable-size list the programmer 16.05/9.00 * should additionally implement the list iterator's remove and 16.05/9.00 * add methods.

16.05/9.00 * 16.05/9.00 * The programmer should generally provide a void (no argument) and collection 16.05/9.00 * constructor, as per the recommendation in the Collection interface 16.05/9.00 * specification.

16.05/9.00 * 16.05/9.00 * This class is a member of the 16.05/9.00 * 16.05/9.00 * Java Collections Framework. 16.05/9.00 * 16.05/9.00 * @author Josh Bloch 16.05/9.00 * @author Neal Gafter 16.05/9.00 * @see Collection 16.05/9.00 * @see List 16.05/9.00 * @see AbstractList 16.05/9.00 * @see AbstractCollection 16.05/9.00 * @since 1.2 16.05/9.00 */ 16.05/9.00 16.05/9.00 public abstract class AbstractSequentialList extends AbstractList { 16.05/9.00 /** 16.05/9.00 * Sole constructor. (For invocation by subclass constructors, typically 16.05/9.00 * implicit.) 16.05/9.00 */ 16.05/9.00 protected AbstractSequentialList() { 16.05/9.00 } 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Returns the element at the specified position in this list. 16.05/9.00 * 16.05/9.00 *

This implementation first gets a list iterator pointing to the 16.05/9.00 * indexed element (with listIterator(index)). Then, it gets 16.05/9.00 * the element using ListIterator.next and returns it. 16.05/9.00 * 16.05/9.00 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/9.00 */ 16.05/9.00 public E get(int index) { 16.05/9.00 try { 16.05/9.00 return listIterator(index).next(); 16.05/9.00 } catch (NoSuchElementException exc) { 16.05/9.00 throw new IndexOutOfBoundsException(); 16.05/9.00 } 16.05/9.00 } 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Replaces the element at the specified position in this list with the 16.05/9.00 * specified element (optional operation). 16.05/9.00 * 16.05/9.00 *

This implementation first gets a list iterator pointing to the 16.05/9.00 * indexed element (with listIterator(index)). Then, it gets 16.05/9.00 * the current element using ListIterator.next and replaces it 16.05/9.00 * with ListIterator.set. 16.05/9.00 * 16.05/9.00 *

Note that this implementation will throw an 16.05/9.00 * UnsupportedOperationException if the list iterator does not 16.05/9.00 * implement the set operation. 16.05/9.00 * 16.05/9.00 * @throws UnsupportedOperationException {@inheritDoc} 16.05/9.00 * @throws ClassCastException {@inheritDoc} 16.05/9.00 * @throws NullPointerException {@inheritDoc} 16.05/9.00 * @throws IllegalArgumentException {@inheritDoc} 16.05/9.00 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/9.00 */ 16.05/9.00 public E set(int index, E element) { 16.05/9.00 try { 16.05/9.00 ListIterator e = listIterator(index); 16.05/9.00 E oldVal = e.next(); 16.05/9.00 e.set(element); 16.05/9.00 return oldVal; 16.05/9.00 } catch (NoSuchElementException exc) { 16.05/9.00 throw new IndexOutOfBoundsException(); 16.05/9.00 } 16.05/9.00 } 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Inserts the specified element at the specified position in this list 16.05/9.00 * (optional operation). Shifts the element currently at that position 16.05/9.00 * (if any) and any subsequent elements to the right (adds one to their 16.05/9.00 * indices). 16.05/9.00 * 16.05/9.00 *

This implementation first gets a list iterator pointing to the 16.05/9.00 * indexed element (with listIterator(index)). Then, it 16.05/9.00 * inserts the specified element with ListIterator.add. 16.05/9.00 * 16.05/9.00 *

Note that this implementation will throw an 16.05/9.00 * UnsupportedOperationException if the list iterator does not 16.05/9.00 * implement the add operation. 16.05/9.00 * 16.05/9.00 * @throws UnsupportedOperationException {@inheritDoc} 16.05/9.00 * @throws ClassCastException {@inheritDoc} 16.05/9.00 * @throws NullPointerException {@inheritDoc} 16.05/9.00 * @throws IllegalArgumentException {@inheritDoc} 16.05/9.00 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/9.00 */ 16.05/9.00 public void add(int index, E element) { 16.05/9.00 try { 16.05/9.00 listIterator(index).add(element); 16.05/9.00 } catch (NoSuchElementException exc) { 16.05/9.00 throw new IndexOutOfBoundsException(); 16.05/9.00 } 16.05/9.00 } 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Removes the element at the specified position in this list (optional 16.05/9.00 * operation). Shifts any subsequent elements to the left (subtracts one 16.05/9.00 * from their indices). Returns the element that was removed from the 16.05/9.00 * list. 16.05/9.00 * 16.05/9.00 *

This implementation first gets a list iterator pointing to the 16.05/9.00 * indexed element (with listIterator(index)). Then, it removes 16.05/9.00 * the element with ListIterator.remove. 16.05/9.00 * 16.05/9.00 *

Note that this implementation will throw an 16.05/9.00 * UnsupportedOperationException if the list iterator does not 16.05/9.00 * implement the remove operation. 16.05/9.00 * 16.05/9.00 * @throws UnsupportedOperationException {@inheritDoc} 16.05/9.00 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/9.00 */ 16.05/9.00 public E remove(int index) { 16.05/9.00 try { 16.05/9.00 ListIterator e = listIterator(index); 16.05/9.00 E outCast = e.next(); 16.05/9.00 e.remove(); 16.05/9.00 return outCast; 16.05/9.00 } catch (NoSuchElementException exc) { 16.05/9.00 throw new IndexOutOfBoundsException(); 16.05/9.00 } 16.05/9.00 } 16.05/9.00 16.05/9.00 16.05/9.00 // Bulk Operations 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Inserts all of the elements in the specified collection into this 16.05/9.00 * list at the specified position (optional operation). Shifts the 16.05/9.00 * element currently at that position (if any) and any subsequent 16.05/9.00 * elements to the right (increases their indices). The new elements 16.05/9.00 * will appear in this list in the order that they are returned by the 16.05/9.00 * specified collection's iterator. The behavior of this operation is 16.05/9.00 * undefined if the specified collection is modified while the 16.05/9.00 * operation is in progress. (Note that this will occur if the specified 16.05/9.00 * collection is this list, and it's nonempty.) 16.05/9.00 * 16.05/9.00 *

This implementation gets an iterator over the specified collection and 16.05/9.00 * a list iterator over this list pointing to the indexed element (with 16.05/9.00 * listIterator(index)). Then, it iterates over the specified 16.05/9.00 * collection, inserting the elements obtained from the iterator into this 16.05/9.00 * list, one at a time, using ListIterator.add followed by 16.05/9.00 * ListIterator.next (to skip over the added element). 16.05/9.00 * 16.05/9.00 *

Note that this implementation will throw an 16.05/9.00 * UnsupportedOperationException if the list iterator returned by 16.05/9.00 * the listIterator method does not implement the add 16.05/9.00 * operation. 16.05/9.00 * 16.05/9.00 * @throws UnsupportedOperationException {@inheritDoc} 16.05/9.00 * @throws ClassCastException {@inheritDoc} 16.05/9.00 * @throws NullPointerException {@inheritDoc} 16.05/9.00 * @throws IllegalArgumentException {@inheritDoc} 16.05/9.00 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/9.00 */ 16.05/9.00 public boolean addAll(int index, Collection c) { 16.05/9.00 try { 16.05/9.00 boolean modified = false; 16.05/9.00 ListIterator e1 = listIterator(index); 16.05/9.00 Iterator e2 = c.iterator(); 16.05/9.00 while (e2.hasNext()) { 16.05/9.00 e1.add(e2.next()); 16.05/9.00 modified = true; 16.05/9.00 } 16.05/9.00 return modified; 16.05/9.00 } catch (NoSuchElementException exc) { 16.05/9.00 throw new IndexOutOfBoundsException(); 16.05/9.00 } 16.05/9.00 } 16.05/9.00 16.05/9.00 16.05/9.00 // Iterators 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Returns an iterator over the elements in this list (in proper 16.05/9.00 * sequence).

16.05/9.00 * 16.05/9.00 * This implementation merely returns a list iterator over the list. 16.05/9.00 * 16.05/9.00 * @return an iterator over the elements in this list (in proper sequence) 16.05/9.00 */ 16.05/9.00 public Iterator iterator() { 16.05/9.00 return listIterator(); 16.05/9.00 } 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Returns a list iterator over the elements in this list (in proper 16.05/9.00 * sequence). 16.05/9.00 * 16.05/9.00 * @param index index of first element to be returned from the list 16.05/9.00 * iterator (by a call to the next method) 16.05/9.00 * @return a list iterator over the elements in this list (in proper 16.05/9.00 * sequence) 16.05/9.00 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/9.00 */ 16.05/9.00 public abstract ListIterator listIterator(int index); 16.05/9.00 } 16.05/9.00 16.05/9.00 16.05/9.00 /* 16.05/9.00 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 16.05/9.00 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/9.00 * 16.05/9.00 * This code is free software; you can redistribute it and/or modify it 16.05/9.00 * under the terms of the GNU General Public License version 2 only, as 16.05/9.00 * published by the Free Software Foundation. Sun designates this 16.05/9.00 * particular file as subject to the "Classpath" exception as provided 16.05/9.00 * by Sun in the LICENSE file that accompanied this code. 16.05/9.00 * 16.05/9.00 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/9.00 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/9.00 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/9.00 * version 2 for more details (a copy is included in the LICENSE file that 16.05/9.00 * accompanied this code). 16.05/9.00 * 16.05/9.00 * You should have received a copy of the GNU General Public License version 16.05/9.00 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/9.00 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/9.00 * 16.05/9.00 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/9.00 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/9.00 * have any questions. 16.05/9.00 */ 16.05/9.00 16.05/9.00 package javaUtilEx; 16.05/9.00 16.05/9.00 /** 16.05/9.00 * The root interface in the collection hierarchy. A collection 16.05/9.00 * represents a group of objects, known as its elements. Some 16.05/9.00 * collections allow duplicate elements and others do not. Some are ordered 16.05/9.00 * and others unordered. The JDK does not provide any direct 16.05/9.00 * implementations of this interface: it provides implementations of more 16.05/9.00 * specific subinterfaces like Set and List. This interface 16.05/9.00 * is typically used to pass collections around and manipulate them where 16.05/9.00 * maximum generality is desired. 16.05/9.00 * 16.05/9.00 *

Bags or multisets (unordered collections that may contain 16.05/9.00 * duplicate elements) should implement this interface directly. 16.05/9.00 * 16.05/9.00 *

All general-purpose Collection implementation classes (which 16.05/9.00 * typically implement Collection indirectly through one of its 16.05/9.00 * subinterfaces) should provide two "standard" constructors: a void (no 16.05/9.00 * arguments) constructor, which creates an empty collection, and a 16.05/9.00 * constructor with a single argument of type Collection, which 16.05/9.00 * creates a new collection with the same elements as its argument. In 16.05/9.00 * effect, the latter constructor allows the user to copy any collection, 16.05/9.00 * producing an equivalent collection of the desired implementation type. 16.05/9.00 * There is no way to enforce this convention (as interfaces cannot contain 16.05/9.00 * constructors) but all of the general-purpose Collection 16.05/9.00 * implementations in the Java platform libraries comply. 16.05/9.00 * 16.05/9.00 *

The "destructive" methods contained in this interface, that is, the 16.05/9.00 * methods that modify the collection on which they operate, are specified to 16.05/9.00 * throw UnsupportedOperationException if this collection does not 16.05/9.00 * support the operation. If this is the case, these methods may, but are not 16.05/9.00 * required to, throw an UnsupportedOperationException if the 16.05/9.00 * invocation would have no effect on the collection. For example, invoking 16.05/9.00 * the {@link #addAll(Collection)} method on an unmodifiable collection may, 16.05/9.00 * but is not required to, throw the exception if the collection to be added 16.05/9.00 * is empty. 16.05/9.00 * 16.05/9.00 *

Some collection implementations have restrictions on the elements that 16.05/9.00 * they may contain. For example, some implementations prohibit null elements, 16.05/9.00 * and some have restrictions on the types of their elements. Attempting to 16.05/9.00 * add an ineligible element throws an unchecked exception, typically 16.05/9.00 * NullPointerException or ClassCastException. Attempting 16.05/9.00 * to query the presence of an ineligible element may throw an exception, 16.05/9.00 * or it may simply return false; some implementations will exhibit the former 16.05/9.00 * behavior and some will exhibit the latter. More generally, attempting an 16.05/9.00 * operation on an ineligible element whose completion would not result in 16.05/9.00 * the insertion of an ineligible element into the collection may throw an 16.05/9.00 * exception or it may succeed, at the option of the implementation. 16.05/9.00 * Such exceptions are marked as "optional" in the specification for this 16.05/9.00 * interface. 16.05/9.00 * 16.05/9.00 *

It is up to each collection to determine its own synchronization 16.05/9.00 * policy. In the absence of a stronger guarantee by the 16.05/9.00 * implementation, undefined behavior may result from the invocation 16.05/9.00 * of any method on a collection that is being mutated by another 16.05/9.00 * thread; this includes direct invocations, passing the collection to 16.05/9.00 * a method that might perform invocations, and using an existing 16.05/9.00 * iterator to examine the collection. 16.05/9.00 * 16.05/9.00 *

Many methods in Collections Framework interfaces are defined in 16.05/9.00 * terms of the {@link Object#equals(Object) equals} method. For example, 16.05/9.00 * the specification for the {@link #contains(Object) contains(Object o)} 16.05/9.00 * method says: "returns true if and only if this collection 16.05/9.00 * contains at least one element e such that 16.05/9.00 * (o==null ? e==null : o.equals(e))." This specification should 16.05/9.00 * not be construed to imply that invoking Collection.contains 16.05/9.00 * with a non-null argument o will cause o.equals(e) to be 16.05/9.00 * invoked for any element e. Implementations are free to implement 16.05/9.00 * optimizations whereby the equals invocation is avoided, for 16.05/9.00 * example, by first comparing the hash codes of the two elements. (The 16.05/9.00 * {@link Object#hashCode()} specification guarantees that two objects with 16.05/9.00 * unequal hash codes cannot be equal.) More generally, implementations of 16.05/9.00 * the various Collections Framework interfaces are free to take advantage of 16.05/9.00 * the specified behavior of underlying {@link Object} methods wherever the 16.05/9.00 * implementor deems it appropriate. 16.05/9.00 * 16.05/9.00 *

This interface is a member of the 16.05/9.00 * 16.05/9.00 * Java Collections Framework. 16.05/9.00 * 16.05/9.00 * @author Josh Bloch 16.05/9.00 * @author Neal Gafter 16.05/9.00 * @see Set 16.05/9.00 * @see List 16.05/9.00 * @see Map 16.05/9.00 * @see SortedSet 16.05/9.00 * @see SortedMap 16.05/9.00 * @see HashSet 16.05/9.00 * @see TreeSet 16.05/9.00 * @see ArrayList 16.05/9.00 * @see LinkedList 16.05/9.00 * @see Vector 16.05/9.00 * @see Collections 16.05/9.00 * @see Arrays 16.05/9.00 * @see AbstractCollection 16.05/9.00 * @since 1.2 16.05/9.00 */ 16.05/9.00 16.05/9.00 public interface Collection { 16.05/9.00 // Query Operations 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Returns the number of elements in this collection. If this collection 16.05/9.00 * contains more than Integer.MAX_VALUE elements, returns 16.05/9.00 * Integer.MAX_VALUE. 16.05/9.00 * 16.05/9.00 * @return the number of elements in this collection 16.05/9.00 */ 16.05/9.00 int size(); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Returns true if this collection contains no elements. 16.05/9.00 * 16.05/9.00 * @return true if this collection contains no elements 16.05/9.00 */ 16.05/9.00 boolean isEmpty(); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Returns true if this collection contains the specified element. 16.05/9.00 * More formally, returns true if and only if this collection 16.05/9.00 * contains at least one element e such that 16.05/9.00 * (o==null ? e==null : o.equals(e)). 16.05/9.00 * 16.05/9.00 * @param o element whose presence in this collection is to be tested 16.05/9.00 * @return true if this collection contains the specified 16.05/9.00 * element 16.05/9.00 * @throws ClassCastException if the type of the specified element 16.05/9.00 * is incompatible with this collection (optional) 16.05/9.00 * @throws NullPointerException if the specified element is null and this 16.05/9.00 * collection does not permit null elements (optional) 16.05/9.00 */ 16.05/9.00 boolean contains(Object o); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Returns an iterator over the elements in this collection. There are no 16.05/9.00 * guarantees concerning the order in which the elements are returned 16.05/9.00 * (unless this collection is an instance of some class that provides a 16.05/9.00 * guarantee). 16.05/9.00 * 16.05/9.00 * @return an Iterator over the elements in this collection 16.05/9.00 */ 16.05/9.00 Iterator iterator(); 16.05/9.00 16.05/9.00 // Modification Operations 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Ensures that this collection contains the specified element (optional 16.05/9.00 * operation). Returns true if this collection changed as a 16.05/9.00 * result of the call. (Returns false if this collection does 16.05/9.00 * not permit duplicates and already contains the specified element.)

16.05/9.00 * 16.05/9.00 * Collections that support this operation may place limitations on what 16.05/9.00 * elements may be added to this collection. In particular, some 16.05/9.00 * collections will refuse to add null elements, and others will 16.05/9.00 * impose restrictions on the type of elements that may be added. 16.05/9.00 * Collection classes should clearly specify in their documentation any 16.05/9.00 * restrictions on what elements may be added.

16.05/9.00 * 16.05/9.00 * If a collection refuses to add a particular element for any reason 16.05/9.00 * other than that it already contains the element, it must throw 16.05/9.00 * an exception (rather than returning false). This preserves 16.05/9.00 * the invariant that a collection always contains the specified element 16.05/9.00 * after this call returns. 16.05/9.00 * 16.05/9.00 * @param e element whose presence in this collection is to be ensured 16.05/9.00 * @return true if this collection changed as a result of the 16.05/9.00 * call 16.05/9.00 * @throws UnsupportedOperationException if the add operation 16.05/9.00 * is not supported by this collection 16.05/9.00 * @throws ClassCastException if the class of the specified element 16.05/9.00 * prevents it from being added to this collection 16.05/9.00 * @throws NullPointerException if the specified element is null and this 16.05/9.00 * collection does not permit null elements 16.05/9.00 * @throws IllegalArgumentException if some property of the element 16.05/9.00 * prevents it from being added to this collection 16.05/9.00 * @throws IllegalStateException if the element cannot be added at this 16.05/9.00 * time due to insertion restrictions 16.05/9.00 */ 16.05/9.00 boolean add(E e); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Removes a single instance of the specified element from this 16.05/9.00 * collection, if it is present (optional operation). More formally, 16.05/9.00 * removes an element e such that 16.05/9.00 * (o==null ? e==null : o.equals(e)), if 16.05/9.00 * this collection contains one or more such elements. Returns 16.05/9.00 * true if this collection contained the specified element (or 16.05/9.00 * equivalently, if this collection changed as a result of the call). 16.05/9.00 * 16.05/9.00 * @param o element to be removed from this collection, if present 16.05/9.00 * @return true if an element was removed as a result of this call 16.05/9.00 * @throws ClassCastException if the type of the specified element 16.05/9.00 * is incompatible with this collection (optional) 16.05/9.00 * @throws NullPointerException if the specified element is null and this 16.05/9.00 * collection does not permit null elements (optional) 16.05/9.00 * @throws UnsupportedOperationException if the remove operation 16.05/9.00 * is not supported by this collection 16.05/9.00 */ 16.05/9.00 boolean remove(Object o); 16.05/9.00 16.05/9.00 16.05/9.00 // Bulk Operations 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Returns true if this collection contains all of the elements 16.05/9.00 * in the specified collection. 16.05/9.00 * 16.05/9.00 * @param c collection to be checked for containment in this collection 16.05/9.00 * @return true if this collection contains all of the elements 16.05/9.00 * in the specified collection 16.05/9.00 * @throws ClassCastException if the types of one or more elements 16.05/9.00 * in the specified collection are incompatible with this 16.05/9.00 * collection (optional) 16.05/9.00 * @throws NullPointerException if the specified collection contains one 16.05/9.00 * or more null elements and this collection does not permit null 16.05/9.00 * elements (optional), or if the specified collection is null 16.05/9.00 * @see #contains(Object) 16.05/9.00 */ 16.05/9.00 boolean containsAll(Collection c); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Adds all of the elements in the specified collection to this collection 16.05/9.00 * (optional operation). The behavior of this operation is undefined if 16.05/9.00 * the specified collection is modified while the operation is in progress. 16.05/9.00 * (This implies that the behavior of this call is undefined if the 16.05/9.00 * specified collection is this collection, and this collection is 16.05/9.00 * nonempty.) 16.05/9.00 * 16.05/9.00 * @param c collection containing elements to be added to this collection 16.05/9.00 * @return true if this collection changed as a result of the call 16.05/9.00 * @throws UnsupportedOperationException if the addAll operation 16.05/9.00 * is not supported by this collection 16.05/9.00 * @throws ClassCastException if the class of an element of the specified 16.05/9.00 * collection prevents it from being added to this collection 16.05/9.00 * @throws NullPointerException if the specified collection contains a 16.05/9.00 * null element and this collection does not permit null elements, 16.05/9.00 * or if the specified collection is null 16.05/9.00 * @throws IllegalArgumentException if some property of an element of the 16.05/9.00 * specified collection prevents it from being added to this 16.05/9.00 * collection 16.05/9.00 * @throws IllegalStateException if not all the elements can be added at 16.05/9.00 * this time due to insertion restrictions 16.05/9.00 * @see #add(Object) 16.05/9.00 */ 16.05/9.00 boolean addAll(Collection c); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Removes all of this collection's elements that are also contained in the 16.05/9.00 * specified collection (optional operation). After this call returns, 16.05/9.00 * this collection will contain no elements in common with the specified 16.05/9.00 * collection. 16.05/9.00 * 16.05/9.00 * @param c collection containing elements to be removed from this collection 16.05/9.00 * @return true if this collection changed as a result of the 16.05/9.00 * call 16.05/9.00 * @throws UnsupportedOperationException if the removeAll method 16.05/9.00 * is not supported by this collection 16.05/9.00 * @throws ClassCastException if the types of one or more elements 16.05/9.00 * in this collection are incompatible with the specified 16.05/9.00 * collection (optional) 16.05/9.00 * @throws NullPointerException if this collection contains one or more 16.05/9.00 * null elements and the specified collection does not support 16.05/9.00 * null elements (optional), or if the specified collection is null 16.05/9.00 * @see #remove(Object) 16.05/9.00 * @see #contains(Object) 16.05/9.00 */ 16.05/9.00 boolean removeAll(Collection c); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Retains only the elements in this collection that are contained in the 16.05/9.00 * specified collection (optional operation). In other words, removes from 16.05/9.00 * this collection all of its elements that are not contained in the 16.05/9.00 * specified collection. 16.05/9.00 * 16.05/9.00 * @param c collection containing elements to be retained in this collection 16.05/9.00 * @return true if this collection changed as a result of the call 16.05/9.00 * @throws UnsupportedOperationException if the retainAll operation 16.05/9.00 * is not supported by this collection 16.05/9.00 * @throws ClassCastException if the types of one or more elements 16.05/9.00 * in this collection are incompatible with the specified 16.05/9.00 * collection (optional) 16.05/9.00 * @throws NullPointerException if this collection contains one or more 16.05/9.00 * null elements and the specified collection does not permit null 16.05/9.00 * elements (optional), or if the specified collection is null 16.05/9.00 * @see #remove(Object) 16.05/9.00 * @see #contains(Object) 16.05/9.00 */ 16.05/9.00 boolean retainAll(Collection c); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Removes all of the elements from this collection (optional operation). 16.05/9.00 * The collection will be empty after this method returns. 16.05/9.00 * 16.05/9.00 * @throws UnsupportedOperationException if the clear operation 16.05/9.00 * is not supported by this collection 16.05/9.00 */ 16.05/9.00 void clear(); 16.05/9.00 16.05/9.00 16.05/9.00 // Comparison and hashing 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Compares the specified object with this collection for equality.

16.05/9.00 * 16.05/9.00 * While the Collection interface adds no stipulations to the 16.05/9.00 * general contract for the Object.equals, programmers who 16.05/9.00 * implement the Collection interface "directly" (in other words, 16.05/9.00 * create a class that is a Collection but is not a Set 16.05/9.00 * or a List) must exercise care if they choose to override the 16.05/9.00 * Object.equals. It is not necessary to do so, and the simplest 16.05/9.00 * course of action is to rely on Object's implementation, but 16.05/9.00 * the implementor may wish to implement a "value comparison" in place of 16.05/9.00 * the default "reference comparison." (The List and 16.05/9.00 * Set interfaces mandate such value comparisons.)

16.05/9.00 * 16.05/9.00 * The general contract for the Object.equals method states that 16.05/9.00 * equals must be symmetric (in other words, a.equals(b) if and 16.05/9.00 * only if b.equals(a)). The contracts for List.equals 16.05/9.00 * and Set.equals state that lists are only equal to other lists, 16.05/9.00 * and sets to other sets. Thus, a custom equals method for a 16.05/9.00 * collection class that implements neither the List nor 16.05/9.00 * Set interface must return false when this collection 16.05/9.00 * is compared to any list or set. (By the same logic, it is not possible 16.05/9.00 * to write a class that correctly implements both the Set and 16.05/9.00 * List interfaces.) 16.05/9.00 * 16.05/9.00 * @param o object to be compared for equality with this collection 16.05/9.00 * @return true if the specified object is equal to this 16.05/9.00 * collection 16.05/9.00 * 16.05/9.00 * @see Object#equals(Object) 16.05/9.00 * @see Set#equals(Object) 16.05/9.00 * @see List#equals(Object) 16.05/9.00 */ 16.05/9.00 boolean equals(Object o); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Returns the hash code value for this collection. While the 16.05/9.00 * Collection interface adds no stipulations to the general 16.05/9.00 * contract for the Object.hashCode method, programmers should 16.05/9.00 * take note that any class that overrides the Object.equals 16.05/9.00 * method must also override the Object.hashCode method in order 16.05/9.00 * to satisfy the general contract for the Object.hashCodemethod. 16.05/9.00 * In particular, c1.equals(c2) implies that 16.05/9.00 * c1.hashCode()==c2.hashCode(). 16.05/9.00 * 16.05/9.00 * @return the hash code value for this collection 16.05/9.00 * 16.05/9.00 * @see Object#hashCode() 16.05/9.00 * @see Object#equals(Object) 16.05/9.00 */ 16.05/9.00 int hashCode(); 16.05/9.00 } 16.05/9.00 16.05/9.00 16.05/9.00 /* 16.05/9.00 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 16.05/9.00 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/9.00 * 16.05/9.00 * This code is free software; you can redistribute it and/or modify it 16.05/9.00 * under the terms of the GNU General Public License version 2 only, as 16.05/9.00 * published by the Free Software Foundation. Sun designates this 16.05/9.00 * particular file as subject to the "Classpath" exception as provided 16.05/9.00 * by Sun in the LICENSE file that accompanied this code. 16.05/9.00 * 16.05/9.00 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/9.00 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/9.00 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/9.00 * version 2 for more details (a copy is included in the LICENSE file that 16.05/9.00 * accompanied this code). 16.05/9.00 * 16.05/9.00 * You should have received a copy of the GNU General Public License version 16.05/9.00 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/9.00 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/9.00 * 16.05/9.00 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/9.00 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/9.00 * have any questions. 16.05/9.00 */ 16.05/9.00 16.05/9.00 package javaUtilEx; 16.05/9.00 16.05/9.00 /** 16.05/9.00 * This exception may be thrown by methods that have detected concurrent 16.05/9.00 * modification of an object when such modification is not permissible. 16.05/9.00 *

16.05/9.00 * For example, it is not generally permissible for one thread to modify a Collection 16.05/9.00 * while another thread is iterating over it. In general, the results of the 16.05/9.00 * iteration are undefined under these circumstances. Some Iterator 16.05/9.00 * implementations (including those of all the general purpose collection implementations 16.05/9.00 * provided by the JRE) may choose to throw this exception if this behavior is 16.05/9.00 * detected. Iterators that do this are known as fail-fast iterators, 16.05/9.00 * as they fail quickly and cleanly, rather that risking arbitrary, 16.05/9.00 * non-deterministic behavior at an undetermined time in the future. 16.05/9.00 *

16.05/9.00 * Note that this exception does not always indicate that an object has 16.05/9.00 * been concurrently modified by a different thread. If a single 16.05/9.00 * thread issues a sequence of method invocations that violates the 16.05/9.00 * contract of an object, the object may throw this exception. For 16.05/9.00 * example, if a thread modifies a collection directly while it is 16.05/9.00 * iterating over the collection with a fail-fast iterator, the iterator 16.05/9.00 * will throw this exception. 16.05/9.00 * 16.05/9.00 *

Note that fail-fast behavior cannot be guaranteed as it is, generally 16.05/9.00 * speaking, impossible to make any hard guarantees in the presence of 16.05/9.00 * unsynchronized concurrent modification. Fail-fast operations 16.05/9.00 * throw ConcurrentModificationException on a best-effort basis. 16.05/9.00 * Therefore, it would be wrong to write a program that depended on this 16.05/9.00 * exception for its correctness: ConcurrentModificationException 16.05/9.00 * should be used only to detect bugs. 16.05/9.00 * 16.05/9.00 * @author Josh Bloch 16.05/9.00 * @see Collection 16.05/9.00 * @see Iterator 16.05/9.00 * @see ListIterator 16.05/9.00 * @see Vector 16.05/9.00 * @see LinkedList 16.05/9.00 * @see HashSet 16.05/9.00 * @see Hashtable 16.05/9.00 * @see TreeMap 16.05/9.00 * @see AbstractList 16.05/9.00 * @since 1.2 16.05/9.00 */ 16.05/9.00 public class ConcurrentModificationException extends RuntimeException { 16.05/9.00 /** 16.05/9.00 * Constructs a ConcurrentModificationException with no 16.05/9.00 * detail message. 16.05/9.00 */ 16.05/9.00 public ConcurrentModificationException() { 16.05/9.00 } 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Constructs a ConcurrentModificationException with the 16.05/9.00 * specified detail message. 16.05/9.00 * 16.05/9.00 * @param message the detail message pertaining to this exception. 16.05/9.00 */ 16.05/9.00 public ConcurrentModificationException(String message) { 16.05/9.00 super(message); 16.05/9.00 } 16.05/9.00 } 16.05/9.00 16.05/9.00 16.05/9.00 /* 16.05/9.00 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/9.00 * 16.05/9.00 * This code is free software; you can redistribute it and/or modify it 16.05/9.00 * under the terms of the GNU General Public License version 2 only, as 16.05/9.00 * published by the Free Software Foundation. Sun designates this 16.05/9.00 * particular file as subject to the "Classpath" exception as provided 16.05/9.00 * by Sun in the LICENSE file that accompanied this code. 16.05/9.00 * 16.05/9.00 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/9.00 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/9.00 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/9.00 * version 2 for more details (a copy is included in the LICENSE file that 16.05/9.00 * accompanied this code). 16.05/9.00 * 16.05/9.00 * You should have received a copy of the GNU General Public License version 16.05/9.00 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/9.00 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/9.00 * 16.05/9.00 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/9.00 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/9.00 * have any questions. 16.05/9.00 */ 16.05/9.00 16.05/9.00 /* 16.05/9.00 * This file is available under and governed by the GNU General Public 16.05/9.00 * License version 2 only, as published by the Free Software Foundation. 16.05/9.00 * However, the following notice accompanied the original version of this 16.05/9.00 * file: 16.05/9.00 * 16.05/9.00 * Written by Doug Lea and Josh Bloch with assistance from members of 16.05/9.00 * JCP JSR-166 Expert Group and released to the public domain, as explained 16.05/9.00 * at http://creativecommons.org/licenses/publicdomain 16.05/9.00 */ 16.05/9.00 16.05/9.00 package javaUtilEx; 16.05/9.00 16.05/9.00 /** 16.05/9.00 * A linear collection that supports element insertion and removal at 16.05/9.00 * both ends. The name deque is short for "double ended queue" 16.05/9.00 * and is usually pronounced "deck". Most Deque 16.05/9.00 * implementations place no fixed limits on the number of elements 16.05/9.00 * they may contain, but this interface supports capacity-restricted 16.05/9.00 * deques as well as those with no fixed size limit. 16.05/9.00 * 16.05/9.00 *

This interface defines methods to access the elements at both 16.05/9.00 * ends of the deque. Methods are provided to insert, remove, and 16.05/9.00 * examine the element. Each of these methods exists in two forms: 16.05/9.00 * one throws an exception if the operation fails, the other returns a 16.05/9.00 * special value (either null or false, depending on 16.05/9.00 * the operation). The latter form of the insert operation is 16.05/9.00 * designed specifically for use with capacity-restricted 16.05/9.00 * Deque implementations; in most implementations, insert 16.05/9.00 * operations cannot fail. 16.05/9.00 * 16.05/9.00 *

The twelve methods described above are summarized in the 16.05/9.00 * following table: 16.05/9.00 * 16.05/9.00 *

16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 *
First Element (Head) Last Element (Tail)
Throws exceptionSpecial valueThrows exceptionSpecial value
Insert{@link #addFirst addFirst(e)}{@link #offerFirst offerFirst(e)}{@link #addLast addLast(e)}{@link #offerLast offerLast(e)}
Remove{@link #removeFirst removeFirst()}{@link #pollFirst pollFirst()}{@link #removeLast removeLast()}{@link #pollLast pollLast()}
Examine{@link #getFirst getFirst()}{@link #peekFirst peekFirst()}{@link #getLast getLast()}{@link #peekLast peekLast()}
16.05/9.00 * 16.05/9.00 *

This interface extends the {@link Queue} interface. When a deque is 16.05/9.00 * used as a queue, FIFO (First-In-First-Out) behavior results. Elements are 16.05/9.00 * added at the end of the deque and removed from the beginning. The methods 16.05/9.00 * inherited from the Queue interface are precisely equivalent to 16.05/9.00 * Deque methods as indicated in the following table: 16.05/9.00 * 16.05/9.00 *

16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 *
Queue Method Equivalent Deque Method
{@link java.util.Queue#add add(e)}{@link #addLast addLast(e)}
{@link java.util.Queue#offer offer(e)}{@link #offerLast offerLast(e)}
{@link java.util.Queue#remove remove()}{@link #removeFirst removeFirst()}
{@link java.util.Queue#poll poll()}{@link #pollFirst pollFirst()}
{@link java.util.Queue#element element()}{@link #getFirst getFirst()}
{@link java.util.Queue#peek peek()}{@link #peek peekFirst()}
16.05/9.00 * 16.05/9.00 *

Deques can also be used as LIFO (Last-In-First-Out) stacks. This 16.05/9.00 * interface should be used in preference to the legacy {@link Stack} class. 16.05/9.00 * When a deque is used as a stack, elements are pushed and popped from the 16.05/9.00 * beginning of the deque. Stack methods are precisely equivalent to 16.05/9.00 * Deque methods as indicated in the table below: 16.05/9.00 * 16.05/9.00 *

16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 * 16.05/9.00 *
Stack Method Equivalent Deque Method
{@link #push push(e)}{@link #addFirst addFirst(e)}
{@link #pop pop()}{@link #removeFirst removeFirst()}
{@link #peek peek()}{@link #peekFirst peekFirst()}
16.05/9.00 * 16.05/9.00 *

Note that the {@link #peek peek} method works equally well when 16.05/9.00 * a deque is used as a queue or a stack; in either case, elements are 16.05/9.00 * drawn from the beginning of the deque. 16.05/9.00 * 16.05/9.00 *

This interface provides two methods to remove interior 16.05/9.00 * elements, {@link #removeFirstOccurrence removeFirstOccurrence} and 16.05/9.00 * {@link #removeLastOccurrence removeLastOccurrence}. 16.05/9.00 * 16.05/9.00 *

Unlike the {@link List} interface, this interface does not 16.05/9.00 * provide support for indexed access to elements. 16.05/9.00 * 16.05/9.00 *

While Deque implementations are not strictly required 16.05/9.00 * to prohibit the insertion of null elements, they are strongly 16.05/9.00 * encouraged to do so. Users of any Deque implementations 16.05/9.00 * that do allow null elements are strongly encouraged not to 16.05/9.00 * take advantage of the ability to insert nulls. This is so because 16.05/9.00 * null is used as a special return value by various methods 16.05/9.00 * to indicated that the deque is empty. 16.05/9.00 * 16.05/9.00 *

Deque implementations generally do not define 16.05/9.00 * element-based versions of the equals and hashCode 16.05/9.00 * methods, but instead inherit the identity-based versions from class 16.05/9.00 * Object. 16.05/9.00 * 16.05/9.00 *

This interface is a member of the Java Collections 16.05/9.00 * Framework. 16.05/9.00 * 16.05/9.00 * @author Doug Lea 16.05/9.00 * @author Josh Bloch 16.05/9.00 * @since 1.6 16.05/9.00 * @param the type of elements held in this collection 16.05/9.00 */ 16.05/9.00 16.05/9.00 public interface Deque extends Queue { 16.05/9.00 /** 16.05/9.00 * Inserts the specified element at the front of this deque if it is 16.05/9.00 * possible to do so immediately without violating capacity restrictions. 16.05/9.00 * When using a capacity-restricted deque, it is generally preferable to 16.05/9.00 * use method {@link #offerFirst}. 16.05/9.00 * 16.05/9.00 * @param e the element to add 16.05/9.00 * @throws IllegalStateException if the element cannot be added at this 16.05/9.00 * time due to capacity restrictions 16.05/9.00 * @throws ClassCastException if the class of the specified element 16.05/9.00 * prevents it from being added to this deque 16.05/9.00 * @throws NullPointerException if the specified element is null and this 16.05/9.00 * deque does not permit null elements 16.05/9.00 * @throws IllegalArgumentException if some property of the specified 16.05/9.00 * element prevents it from being added to this deque 16.05/9.00 */ 16.05/9.00 void addFirst(E e); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Inserts the specified element at the end of this deque if it is 16.05/9.00 * possible to do so immediately without violating capacity restrictions. 16.05/9.00 * When using a capacity-restricted deque, it is generally preferable to 16.05/9.00 * use method {@link #offerLast}. 16.05/9.00 * 16.05/9.00 *

This method is equivalent to {@link #add}. 16.05/9.00 * 16.05/9.00 * @param e the element to add 16.05/9.00 * @throws IllegalStateException if the element cannot be added at this 16.05/9.00 * time due to capacity restrictions 16.05/9.00 * @throws ClassCastException if the class of the specified element 16.05/9.00 * prevents it from being added to this deque 16.05/9.00 * @throws NullPointerException if the specified element is null and this 16.05/9.00 * deque does not permit null elements 16.05/9.00 * @throws IllegalArgumentException if some property of the specified 16.05/9.00 * element prevents it from being added to this deque 16.05/9.00 */ 16.05/9.00 void addLast(E e); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Inserts the specified element at the front of this deque unless it would 16.05/9.00 * violate capacity restrictions. When using a capacity-restricted deque, 16.05/9.00 * this method is generally preferable to the {@link #addFirst} method, 16.05/9.00 * which can fail to insert an element only by throwing an exception. 16.05/9.00 * 16.05/9.00 * @param e the element to add 16.05/9.00 * @return true if the element was added to this deque, else 16.05/9.00 * false 16.05/9.00 * @throws ClassCastException if the class of the specified element 16.05/9.00 * prevents it from being added to this deque 16.05/9.00 * @throws NullPointerException if the specified element is null and this 16.05/9.00 * deque does not permit null elements 16.05/9.00 * @throws IllegalArgumentException if some property of the specified 16.05/9.00 * element prevents it from being added to this deque 16.05/9.00 */ 16.05/9.00 boolean offerFirst(E e); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Inserts the specified element at the end of this deque unless it would 16.05/9.00 * violate capacity restrictions. When using a capacity-restricted deque, 16.05/9.00 * this method is generally preferable to the {@link #addLast} method, 16.05/9.00 * which can fail to insert an element only by throwing an exception. 16.05/9.00 * 16.05/9.00 * @param e the element to add 16.05/9.00 * @return true if the element was added to this deque, else 16.05/9.00 * false 16.05/9.00 * @throws ClassCastException if the class of the specified element 16.05/9.00 * prevents it from being added to this deque 16.05/9.00 * @throws NullPointerException if the specified element is null and this 16.05/9.00 * deque does not permit null elements 16.05/9.00 * @throws IllegalArgumentException if some property of the specified 16.05/9.00 * element prevents it from being added to this deque 16.05/9.00 */ 16.05/9.00 boolean offerLast(E e); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Retrieves and removes the first element of this deque. This method 16.05/9.00 * differs from {@link #pollFirst pollFirst} only in that it throws an 16.05/9.00 * exception if this deque is empty. 16.05/9.00 * 16.05/9.00 * @return the head of this deque 16.05/9.00 * @throws NoSuchElementException if this deque is empty 16.05/9.00 */ 16.05/9.00 E removeFirst(); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Retrieves and removes the last element of this deque. This method 16.05/9.00 * differs from {@link #pollLast pollLast} only in that it throws an 16.05/9.00 * exception if this deque is empty. 16.05/9.00 * 16.05/9.00 * @return the tail of this deque 16.05/9.00 * @throws NoSuchElementException if this deque is empty 16.05/9.00 */ 16.05/9.00 E removeLast(); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Retrieves and removes the first element of this deque, 16.05/9.00 * or returns null if this deque is empty. 16.05/9.00 * 16.05/9.00 * @return the head of this deque, or null if this deque is empty 16.05/9.00 */ 16.05/9.00 E pollFirst(); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Retrieves and removes the last element of this deque, 16.05/9.00 * or returns null if this deque is empty. 16.05/9.00 * 16.05/9.00 * @return the tail of this deque, or null if this deque is empty 16.05/9.00 */ 16.05/9.00 E pollLast(); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Retrieves, but does not remove, the first element of this deque. 16.05/9.00 * 16.05/9.00 * This method differs from {@link #peekFirst peekFirst} only in that it 16.05/9.00 * throws an exception if this deque is empty. 16.05/9.00 * 16.05/9.00 * @return the head of this deque 16.05/9.00 * @throws NoSuchElementException if this deque is empty 16.05/9.00 */ 16.05/9.00 E getFirst(); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Retrieves, but does not remove, the last element of this deque. 16.05/9.00 * This method differs from {@link #peekLast peekLast} only in that it 16.05/9.00 * throws an exception if this deque is empty. 16.05/9.00 * 16.05/9.00 * @return the tail of this deque 16.05/9.00 * @throws NoSuchElementException if this deque is empty 16.05/9.00 */ 16.05/9.00 E getLast(); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Retrieves, but does not remove, the first element of this deque, 16.05/9.00 * or returns null if this deque is empty. 16.05/9.00 * 16.05/9.00 * @return the head of this deque, or null if this deque is empty 16.05/9.00 */ 16.05/9.00 E peekFirst(); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Retrieves, but does not remove, the last element of this deque, 16.05/9.00 * or returns null if this deque is empty. 16.05/9.00 * 16.05/9.00 * @return the tail of this deque, or null if this deque is empty 16.05/9.00 */ 16.05/9.00 E peekLast(); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Removes the first occurrence of the specified element from this deque. 16.05/9.00 * If the deque does not contain the element, it is unchanged. 16.05/9.00 * More formally, removes the first element e such that 16.05/9.00 * (o==null ? e==null : o.equals(e)) 16.05/9.00 * (if such an element exists). 16.05/9.00 * Returns true if this deque contained the specified element 16.05/9.00 * (or equivalently, if this deque changed as a result of the call). 16.05/9.00 * 16.05/9.00 * @param o element to be removed from this deque, if present 16.05/9.00 * @return true if an element was removed as a result of this call 16.05/9.00 * @throws ClassCastException if the class of the specified element 16.05/9.00 * is incompatible with this deque (optional) 16.05/9.00 * @throws NullPointerException if the specified element is null and this 16.05/9.00 * deque does not permit null elements (optional) 16.05/9.00 */ 16.05/9.00 boolean removeFirstOccurrence(Object o); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Removes the last occurrence of the specified element from this deque. 16.05/9.00 * If the deque does not contain the element, it is unchanged. 16.05/9.00 * More formally, removes the last element e such that 16.05/9.00 * (o==null ? e==null : o.equals(e)) 16.05/9.00 * (if such an element exists). 16.05/9.00 * Returns true if this deque contained the specified element 16.05/9.00 * (or equivalently, if this deque changed as a result of the call). 16.05/9.00 * 16.05/9.00 * @param o element to be removed from this deque, if present 16.05/9.00 * @return true if an element was removed as a result of this call 16.05/9.00 * @throws ClassCastException if the class of the specified element 16.05/9.00 * is incompatible with this deque (optional) 16.05/9.00 * @throws NullPointerException if the specified element is null and this 16.05/9.00 * deque does not permit null elements (optional) 16.05/9.00 */ 16.05/9.00 boolean removeLastOccurrence(Object o); 16.05/9.00 16.05/9.00 // *** Queue methods *** 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Inserts the specified element into the queue represented by this deque 16.05/9.00 * (in other words, at the tail of this deque) if it is possible to do so 16.05/9.00 * immediately without violating capacity restrictions, returning 16.05/9.00 * true upon success and throwing an 16.05/9.00 * IllegalStateException if no space is currently available. 16.05/9.00 * When using a capacity-restricted deque, it is generally preferable to 16.05/9.00 * use {@link #offer(Object) offer}. 16.05/9.00 * 16.05/9.00 *

This method is equivalent to {@link #addLast}. 16.05/9.00 * 16.05/9.00 * @param e the element to add 16.05/9.00 * @return true (as specified by {@link Collection#add}) 16.05/9.00 * @throws IllegalStateException if the element cannot be added at this 16.05/9.00 * time due to capacity restrictions 16.05/9.00 * @throws ClassCastException if the class of the specified element 16.05/9.00 * prevents it from being added to this deque 16.05/9.00 * @throws NullPointerException if the specified element is null and this 16.05/9.00 * deque does not permit null elements 16.05/9.00 * @throws IllegalArgumentException if some property of the specified 16.05/9.00 * element prevents it from being added to this deque 16.05/9.00 */ 16.05/9.00 boolean add(E e); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Inserts the specified element into the queue represented by this deque 16.05/9.00 * (in other words, at the tail of this deque) if it is possible to do so 16.05/9.00 * immediately without violating capacity restrictions, returning 16.05/9.00 * true upon success and false if no space is currently 16.05/9.00 * available. When using a capacity-restricted deque, this method is 16.05/9.00 * generally preferable to the {@link #add} method, which can fail to 16.05/9.00 * insert an element only by throwing an exception. 16.05/9.00 * 16.05/9.00 *

This method is equivalent to {@link #offerLast}. 16.05/9.00 * 16.05/9.00 * @param e the element to add 16.05/9.00 * @return true if the element was added to this deque, else 16.05/9.00 * false 16.05/9.00 * @throws ClassCastException if the class of the specified element 16.05/9.00 * prevents it from being added to this deque 16.05/9.00 * @throws NullPointerException if the specified element is null and this 16.05/9.00 * deque does not permit null elements 16.05/9.00 * @throws IllegalArgumentException if some property of the specified 16.05/9.00 * element prevents it from being added to this deque 16.05/9.00 */ 16.05/9.00 boolean offer(E e); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Retrieves and removes the head of the queue represented by this deque 16.05/9.00 * (in other words, the first element of this deque). 16.05/9.00 * This method differs from {@link #poll poll} only in that it throws an 16.05/9.00 * exception if this deque is empty. 16.05/9.00 * 16.05/9.00 *

This method is equivalent to {@link #removeFirst()}. 16.05/9.00 * 16.05/9.00 * @return the head of the queue represented by this deque 16.05/9.00 * @throws NoSuchElementException if this deque is empty 16.05/9.00 */ 16.05/9.00 E remove(); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Retrieves and removes the head of the queue represented by this deque 16.05/9.00 * (in other words, the first element of this deque), or returns 16.05/9.00 * null if this deque is empty. 16.05/9.00 * 16.05/9.00 *

This method is equivalent to {@link #pollFirst()}. 16.05/9.00 * 16.05/9.00 * @return the first element of this deque, or null if 16.05/9.00 * this deque is empty 16.05/9.00 */ 16.05/9.00 E poll(); 16.05/9.00 16.05/9.00 /** 16.05/9.00 * Retrieves, but does not remove, the head of the queue represented by 16.05/9.00 * this deque (in other words, the first element of this deque). 16.05/9.01 * This method differs from {@link #peek peek} only in that it throws an 16.05/9.01 * exception if this deque is empty. 16.05/9.01 * 16.05/9.01 *

This method is equivalent to {@link #getFirst()}. 16.05/9.01 * 16.05/9.01 * @return the head of the queue represented by this deque 16.05/9.01 * @throws NoSuchElementException if this deque is empty 16.05/9.01 */ 16.05/9.01 E element(); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Retrieves, but does not remove, the head of the queue represented by 16.05/9.01 * this deque (in other words, the first element of this deque), or 16.05/9.01 * returns null if this deque is empty. 16.05/9.01 * 16.05/9.01 *

This method is equivalent to {@link #peekFirst()}. 16.05/9.01 * 16.05/9.01 * @return the head of the queue represented by this deque, or 16.05/9.01 * null if this deque is empty 16.05/9.01 */ 16.05/9.01 E peek(); 16.05/9.01 16.05/9.01 16.05/9.01 // *** Stack methods *** 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Pushes an element onto the stack represented by this deque (in other 16.05/9.01 * words, at the head of this deque) if it is possible to do so 16.05/9.01 * immediately without violating capacity restrictions, returning 16.05/9.01 * true upon success and throwing an 16.05/9.01 * IllegalStateException if no space is currently available. 16.05/9.01 * 16.05/9.01 *

This method is equivalent to {@link #addFirst}. 16.05/9.01 * 16.05/9.01 * @param e the element to push 16.05/9.01 * @throws IllegalStateException if the element cannot be added at this 16.05/9.01 * time due to capacity restrictions 16.05/9.01 * @throws ClassCastException if the class of the specified element 16.05/9.01 * prevents it from being added to this deque 16.05/9.01 * @throws NullPointerException if the specified element is null and this 16.05/9.01 * deque does not permit null elements 16.05/9.01 * @throws IllegalArgumentException if some property of the specified 16.05/9.01 * element prevents it from being added to this deque 16.05/9.01 */ 16.05/9.01 void push(E e); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Pops an element from the stack represented by this deque. In other 16.05/9.01 * words, removes and returns the first element of this deque. 16.05/9.01 * 16.05/9.01 *

This method is equivalent to {@link #removeFirst()}. 16.05/9.01 * 16.05/9.01 * @return the element at the front of this deque (which is the top 16.05/9.01 * of the stack represented by this deque) 16.05/9.01 * @throws NoSuchElementException if this deque is empty 16.05/9.01 */ 16.05/9.01 E pop(); 16.05/9.01 16.05/9.01 16.05/9.01 // *** Collection methods *** 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Removes the first occurrence of the specified element from this deque. 16.05/9.01 * If the deque does not contain the element, it is unchanged. 16.05/9.01 * More formally, removes the first element e such that 16.05/9.01 * (o==null ? e==null : o.equals(e)) 16.05/9.01 * (if such an element exists). 16.05/9.01 * Returns true if this deque contained the specified element 16.05/9.01 * (or equivalently, if this deque changed as a result of the call). 16.05/9.01 * 16.05/9.01 *

This method is equivalent to {@link #removeFirstOccurrence}. 16.05/9.01 * 16.05/9.01 * @param o element to be removed from this deque, if present 16.05/9.01 * @return true if an element was removed as a result of this call 16.05/9.01 * @throws ClassCastException if the class of the specified element 16.05/9.01 * is incompatible with this deque (optional) 16.05/9.01 * @throws NullPointerException if the specified element is null and this 16.05/9.01 * deque does not permit null elements (optional) 16.05/9.01 */ 16.05/9.01 boolean remove(Object o); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns true if this deque contains the specified element. 16.05/9.01 * More formally, returns true if and only if this deque contains 16.05/9.01 * at least one element e such that 16.05/9.01 * (o==null ? e==null : o.equals(e)). 16.05/9.01 * 16.05/9.01 * @param o element whose presence in this deque is to be tested 16.05/9.01 * @return true if this deque contains the specified element 16.05/9.01 * @throws ClassCastException if the type of the specified element 16.05/9.01 * is incompatible with this deque (optional) 16.05/9.01 * @throws NullPointerException if the specified element is null and this 16.05/9.01 * deque does not permit null elements (optional) 16.05/9.01 */ 16.05/9.01 boolean contains(Object o); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns the number of elements in this deque. 16.05/9.01 * 16.05/9.01 * @return the number of elements in this deque 16.05/9.01 */ 16.05/9.01 public int size(); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns an iterator over the elements in this deque in proper sequence. 16.05/9.01 * The elements will be returned in order from first (head) to last (tail). 16.05/9.01 * 16.05/9.01 * @return an iterator over the elements in this deque in proper sequence 16.05/9.01 */ 16.05/9.01 Iterator iterator(); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns an iterator over the elements in this deque in reverse 16.05/9.01 * sequential order. The elements will be returned in order from 16.05/9.01 * last (tail) to first (head). 16.05/9.01 * 16.05/9.01 * @return an iterator over the elements in this deque in reverse 16.05/9.01 * sequence 16.05/9.01 */ 16.05/9.01 Iterator descendingIterator(); 16.05/9.01 16.05/9.01 } 16.05/9.01 16.05/9.01 16.05/9.01 /* 16.05/9.01 * Copyright 1994-2003 Sun Microsystems, Inc. All Rights Reserved. 16.05/9.01 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/9.01 * 16.05/9.01 * This code is free software; you can redistribute it and/or modify it 16.05/9.01 * under the terms of the GNU General Public License version 2 only, as 16.05/9.01 * published by the Free Software Foundation. Sun designates this 16.05/9.01 * particular file as subject to the "Classpath" exception as provided 16.05/9.01 * by Sun in the LICENSE file that accompanied this code. 16.05/9.01 * 16.05/9.01 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/9.01 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/9.01 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/9.01 * version 2 for more details (a copy is included in the LICENSE file that 16.05/9.01 * accompanied this code). 16.05/9.01 * 16.05/9.01 * You should have received a copy of the GNU General Public License version 16.05/9.01 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/9.01 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/9.01 * 16.05/9.01 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/9.01 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/9.01 * have any questions. 16.05/9.01 */ 16.05/9.01 16.05/9.01 package javaUtilEx; 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Thrown to indicate that a method has been passed an illegal or 16.05/9.01 * inappropriate argument. 16.05/9.01 * 16.05/9.01 * @author unascribed 16.05/9.01 * @see java.lang.Thread#setPriority(int) 16.05/9.01 * @since JDK1.0 16.05/9.01 */ 16.05/9.01 public 16.05/9.01 class IllegalArgumentException extends RuntimeException { 16.05/9.01 /** 16.05/9.01 * Constructs an IllegalArgumentException with no 16.05/9.01 * detail message. 16.05/9.01 */ 16.05/9.01 public IllegalArgumentException() { 16.05/9.01 super(); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Constructs an IllegalArgumentException with the 16.05/9.01 * specified detail message. 16.05/9.01 * 16.05/9.01 * @param s the detail message. 16.05/9.01 */ 16.05/9.01 public IllegalArgumentException(String s) { 16.05/9.01 super(s); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Constructs a new exception with the specified detail message and 16.05/9.01 * cause. 16.05/9.01 * 16.05/9.01 *

Note that the detail message associated with cause is 16.05/9.01 * not automatically incorporated in this exception's detail 16.05/9.01 * message. 16.05/9.01 * 16.05/9.01 * @param message the detail message (which is saved for later retrieval 16.05/9.01 * by the {@link Throwable#getMessage()} method). 16.05/9.01 * @param cause the cause (which is saved for later retrieval by the 16.05/9.01 * {@link Throwable#getCause()} method). (A null value 16.05/9.01 * is permitted, and indicates that the cause is nonexistent or 16.05/9.01 * unknown.) 16.05/9.01 * @since 1.5 16.05/9.01 */ 16.05/9.01 public IllegalArgumentException(String message, Throwable cause) { 16.05/9.01 super(message, cause); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Constructs a new exception with the specified cause and a detail 16.05/9.01 * message of (cause==null ? null : cause.toString()) (which 16.05/9.01 * typically contains the class and detail message of cause). 16.05/9.01 * This constructor is useful for exceptions that are little more than 16.05/9.01 * wrappers for other throwables (for example, {@link 16.05/9.01 * java.security.PrivilegedActionException}). 16.05/9.01 * 16.05/9.01 * @param cause the cause (which is saved for later retrieval by the 16.05/9.01 * {@link Throwable#getCause()} method). (A null value is 16.05/9.01 * permitted, and indicates that the cause is nonexistent or 16.05/9.01 * unknown.) 16.05/9.01 * @since 1.5 16.05/9.01 */ 16.05/9.01 public IllegalArgumentException(Throwable cause) { 16.05/9.01 super(cause); 16.05/9.01 } 16.05/9.01 16.05/9.01 private static final long serialVersionUID = -5365630128856068164L; 16.05/9.01 } 16.05/9.01 16.05/9.01 16.05/9.01 /* 16.05/9.01 * Copyright 1996-2003 Sun Microsystems, Inc. All Rights Reserved. 16.05/9.01 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/9.01 * 16.05/9.01 * This code is free software; you can redistribute it and/or modify it 16.05/9.01 * under the terms of the GNU General Public License version 2 only, as 16.05/9.01 * published by the Free Software Foundation. Sun designates this 16.05/9.01 * particular file as subject to the "Classpath" exception as provided 16.05/9.01 * by Sun in the LICENSE file that accompanied this code. 16.05/9.01 * 16.05/9.01 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/9.01 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/9.01 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/9.01 * version 2 for more details (a copy is included in the LICENSE file that 16.05/9.01 * accompanied this code). 16.05/9.01 * 16.05/9.01 * You should have received a copy of the GNU General Public License version 16.05/9.01 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/9.01 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/9.01 * 16.05/9.01 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/9.01 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/9.01 * have any questions. 16.05/9.01 */ 16.05/9.01 16.05/9.01 package javaUtilEx; 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Signals that a method has been invoked at an illegal or 16.05/9.01 * inappropriate time. In other words, the Java environment or 16.05/9.01 * Java application is not in an appropriate state for the requested 16.05/9.01 * operation. 16.05/9.01 * 16.05/9.01 * @author Jonni Kanerva 16.05/9.01 * @since JDK1.1 16.05/9.01 */ 16.05/9.01 public 16.05/9.01 class IllegalStateException extends RuntimeException { 16.05/9.01 /** 16.05/9.01 * Constructs an IllegalStateException with no detail message. 16.05/9.01 * A detail message is a String that describes this particular exception. 16.05/9.01 */ 16.05/9.01 public IllegalStateException() { 16.05/9.01 super(); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Constructs an IllegalStateException with the specified detail 16.05/9.01 * message. A detail message is a String that describes this particular 16.05/9.01 * exception. 16.05/9.01 * 16.05/9.01 * @param s the String that contains a detailed message 16.05/9.01 */ 16.05/9.01 public IllegalStateException(String s) { 16.05/9.01 super(s); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Constructs a new exception with the specified detail message and 16.05/9.01 * cause. 16.05/9.01 * 16.05/9.01 *

Note that the detail message associated with cause is 16.05/9.01 * not automatically incorporated in this exception's detail 16.05/9.01 * message. 16.05/9.01 * 16.05/9.01 * @param message the detail message (which is saved for later retrieval 16.05/9.01 * by the {@link Throwable#getMessage()} method). 16.05/9.01 * @param cause the cause (which is saved for later retrieval by the 16.05/9.01 * {@link Throwable#getCause()} method). (A null value 16.05/9.01 * is permitted, and indicates that the cause is nonexistent or 16.05/9.01 * unknown.) 16.05/9.01 * @since 1.5 16.05/9.01 */ 16.05/9.01 public IllegalStateException(String message, Throwable cause) { 16.05/9.01 super(message, cause); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Constructs a new exception with the specified cause and a detail 16.05/9.01 * message of (cause==null ? null : cause.toString()) (which 16.05/9.01 * typically contains the class and detail message of cause). 16.05/9.01 * This constructor is useful for exceptions that are little more than 16.05/9.01 * wrappers for other throwables (for example, {@link 16.05/9.01 * java.security.PrivilegedActionException}). 16.05/9.01 * 16.05/9.01 * @param cause the cause (which is saved for later retrieval by the 16.05/9.01 * {@link Throwable#getCause()} method). (A null value is 16.05/9.01 * permitted, and indicates that the cause is nonexistent or 16.05/9.01 * unknown.) 16.05/9.01 * @since 1.5 16.05/9.01 */ 16.05/9.01 public IllegalStateException(Throwable cause) { 16.05/9.01 super(cause); 16.05/9.01 } 16.05/9.01 16.05/9.01 static final long serialVersionUID = -1848914673093119416L; 16.05/9.01 } 16.05/9.01 16.05/9.01 16.05/9.01 /* 16.05/9.01 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 16.05/9.01 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/9.01 * 16.05/9.01 * This code is free software; you can redistribute it and/or modify it 16.05/9.01 * under the terms of the GNU General Public License version 2 only, as 16.05/9.01 * published by the Free Software Foundation. Sun designates this 16.05/9.01 * particular file as subject to the "Classpath" exception as provided 16.05/9.01 * by Sun in the LICENSE file that accompanied this code. 16.05/9.01 * 16.05/9.01 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/9.01 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/9.01 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/9.01 * version 2 for more details (a copy is included in the LICENSE file that 16.05/9.01 * accompanied this code). 16.05/9.01 * 16.05/9.01 * You should have received a copy of the GNU General Public License version 16.05/9.01 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/9.01 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/9.01 * 16.05/9.01 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/9.01 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/9.01 * have any questions. 16.05/9.01 */ 16.05/9.01 16.05/9.01 package javaUtilEx; 16.05/9.01 16.05/9.01 /** 16.05/9.01 * An iterator over a collection. {@code Iterator} takes the place of 16.05/9.01 * {@link Enumeration} in the Java Collections Framework. Iterators 16.05/9.01 * differ from enumerations in two ways: 16.05/9.01 * 16.05/9.01 *

16.05/9.01 * 16.05/9.01 *

This interface is a member of the 16.05/9.01 * 16.05/9.01 * Java Collections Framework. 16.05/9.01 * 16.05/9.01 * @author Josh Bloch 16.05/9.01 * @see Collection 16.05/9.01 * @see ListIterator 16.05/9.01 * @see Iterable 16.05/9.01 * @since 1.2 16.05/9.01 */ 16.05/9.01 public interface Iterator { 16.05/9.01 /** 16.05/9.01 * Returns {@code true} if the iteration has more elements. 16.05/9.01 * (In other words, returns {@code true} if {@link #next} would 16.05/9.01 * return an element rather than throwing an exception.) 16.05/9.01 * 16.05/9.01 * @return {@code true} if the iteration has more elements 16.05/9.01 */ 16.05/9.01 boolean hasNext(); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns the next element in the iteration. 16.05/9.01 * 16.05/9.01 * @return the next element in the iteration 16.05/9.01 * @throws NoSuchElementException if the iteration has no more elements 16.05/9.01 */ 16.05/9.01 E next(); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Removes from the underlying collection the last element returned 16.05/9.01 * by this iterator (optional operation). This method can be called 16.05/9.01 * only once per call to {@link #next}. The behavior of an iterator 16.05/9.01 * is unspecified if the underlying collection is modified while the 16.05/9.01 * iteration is in progress in any way other than by calling this 16.05/9.01 * method. 16.05/9.01 * 16.05/9.01 * @throws UnsupportedOperationException if the {@code remove} 16.05/9.01 * operation is not supported by this iterator 16.05/9.01 * 16.05/9.01 * @throws IllegalStateException if the {@code next} method has not 16.05/9.01 * yet been called, or the {@code remove} method has already 16.05/9.01 * been called after the last call to the {@code next} 16.05/9.01 * method 16.05/9.01 */ 16.05/9.01 void remove(); 16.05/9.01 } 16.05/9.01 16.05/9.01 16.05/9.01 package javaUtilEx; 16.05/9.01 16.05/9.01 public class juLinkedListCreateGetFirst { 16.05/9.01 public static void main(String[] args) { 16.05/9.01 Random.args = args; 16.05/9.01 16.05/9.01 LinkedList l = createList(Random.random()); 16.05/9.01 Content c = l.getFirst(); 16.05/9.01 } 16.05/9.01 16.05/9.01 public static LinkedList createList(int n) { 16.05/9.01 LinkedList l = new LinkedList(); 16.05/9.01 while (n > 0) { 16.05/9.01 l.addLast(new Content(Random.random())); 16.05/9.01 n--; 16.05/9.01 } 16.05/9.01 return l; 16.05/9.01 } 16.05/9.01 } 16.05/9.01 16.05/9.01 final class Content { 16.05/9.01 int val; 16.05/9.01 16.05/9.01 public Content(int v) { 16.05/9.01 this.val = v; 16.05/9.01 } 16.05/9.01 16.05/9.01 public int hashCode() { 16.05/9.01 return val^31; 16.05/9.01 } 16.05/9.01 16.05/9.01 public boolean equals(Object o) { 16.05/9.01 if (o instanceof Content) { 16.05/9.01 return this.val == ((Content) o).val; 16.05/9.01 } 16.05/9.01 return false; 16.05/9.01 } 16.05/9.01 } 16.05/9.01 16.05/9.01 16.05/9.01 /* 16.05/9.01 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 16.05/9.01 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/9.01 * 16.05/9.01 * This code is free software; you can redistribute it and/or modify it 16.05/9.01 * under the terms of the GNU General Public License version 2 only, as 16.05/9.01 * published by the Free Software Foundation. Sun designates this 16.05/9.01 * particular file as subject to the "Classpath" exception as provided 16.05/9.01 * by Sun in the LICENSE file that accompanied this code. 16.05/9.01 * 16.05/9.01 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/9.01 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/9.01 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/9.01 * version 2 for more details (a copy is included in the LICENSE file that 16.05/9.01 * accompanied this code). 16.05/9.01 * 16.05/9.01 * You should have received a copy of the GNU General Public License version 16.05/9.01 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/9.01 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/9.01 * 16.05/9.01 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/9.01 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/9.01 * have any questions. 16.05/9.01 */ 16.05/9.01 16.05/9.01 package javaUtilEx; 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Linked list implementation of the List interface. Implements all 16.05/9.01 * optional list operations, and permits all elements (including 16.05/9.01 * null). In addition to implementing the List interface, 16.05/9.01 * the LinkedList class provides uniformly named methods to 16.05/9.01 * get, remove and insert an element at the 16.05/9.01 * beginning and end of the list. These operations allow linked lists to be 16.05/9.01 * used as a stack, {@linkplain Queue queue}, or {@linkplain Deque 16.05/9.01 * double-ended queue}.

16.05/9.01 * 16.05/9.01 * The class implements the Deque interface, providing 16.05/9.01 * first-in-first-out queue operations for add, 16.05/9.01 * poll, along with other stack and deque operations.

16.05/9.01 * 16.05/9.01 * All of the operations perform as could be expected for a doubly-linked 16.05/9.01 * list. Operations that index into the list will traverse the list from 16.05/9.01 * the beginning or the end, whichever is closer to the specified index.

16.05/9.01 * 16.05/9.01 *

Note that this implementation is not synchronized. 16.05/9.01 * If multiple threads access a linked list concurrently, and at least 16.05/9.01 * one of the threads modifies the list structurally, it must be 16.05/9.01 * synchronized externally. (A structural modification is any operation 16.05/9.01 * that adds or deletes one or more elements; merely setting the value of 16.05/9.01 * an element is not a structural modification.) This is typically 16.05/9.01 * accomplished by synchronizing on some object that naturally 16.05/9.01 * encapsulates the list. 16.05/9.01 * 16.05/9.01 * If no such object exists, the list should be "wrapped" using the 16.05/9.01 * {@link Collections#synchronizedList Collections.synchronizedList} 16.05/9.01 * method. This is best done at creation time, to prevent accidental 16.05/9.01 * unsynchronized access to the list:

16.05/9.01	 *   List list = Collections.synchronizedList(new LinkedList(...));
16.05/9.01 * 16.05/9.01 *

The iterators returned by this class's iterator and 16.05/9.01 * listIterator methods are fail-fast: if the list is 16.05/9.01 * structurally modified at any time after the iterator is created, in 16.05/9.01 * any way except through the Iterator's own remove or 16.05/9.01 * add methods, the iterator will throw a {@link 16.05/9.01 * ConcurrentModificationException}. Thus, in the face of concurrent 16.05/9.01 * modification, the iterator fails quickly and cleanly, rather than 16.05/9.01 * risking arbitrary, non-deterministic behavior at an undetermined 16.05/9.01 * time in the future. 16.05/9.01 * 16.05/9.01 *

Note that the fail-fast behavior of an iterator cannot be guaranteed 16.05/9.01 * as it is, generally speaking, impossible to make any hard guarantees in the 16.05/9.01 * presence of unsynchronized concurrent modification. Fail-fast iterators 16.05/9.01 * throw ConcurrentModificationException on a best-effort basis. 16.05/9.01 * Therefore, it would be wrong to write a program that depended on this 16.05/9.01 * exception for its correctness: the fail-fast behavior of iterators 16.05/9.01 * should be used only to detect bugs. 16.05/9.01 * 16.05/9.01 *

This class is a member of the 16.05/9.01 * 16.05/9.01 * Java Collections Framework. 16.05/9.01 * 16.05/9.01 * @author Josh Bloch 16.05/9.01 * @see List 16.05/9.01 * @see ArrayList 16.05/9.01 * @see Vector 16.05/9.01 * @since 1.2 16.05/9.01 * @param the type of elements held in this collection 16.05/9.01 */ 16.05/9.01 16.05/9.01 public class LinkedList 16.05/9.01 extends AbstractSequentialList 16.05/9.01 implements List, Deque 16.05/9.01 { 16.05/9.01 private transient Entry header = new Entry(null, null, null); 16.05/9.01 private transient int size = 0; 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Constructs an empty list. 16.05/9.01 */ 16.05/9.01 public LinkedList() { 16.05/9.01 header.next = header.previous = header; 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Constructs a list containing the elements of the specified 16.05/9.01 * collection, in the order they are returned by the collection's 16.05/9.01 * iterator. 16.05/9.01 * 16.05/9.01 * @param c the collection whose elements are to be placed into this list 16.05/9.01 * @throws NullPointerException if the specified collection is null 16.05/9.01 */ 16.05/9.01 public LinkedList(Collection c) { 16.05/9.01 this(); 16.05/9.01 addAll(c); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns the first element in this list. 16.05/9.01 * 16.05/9.01 * @return the first element in this list 16.05/9.01 * @throws NoSuchElementException if this list is empty 16.05/9.01 */ 16.05/9.01 public E getFirst() { 16.05/9.01 if (size==0) 16.05/9.01 throw new NoSuchElementException(); 16.05/9.01 16.05/9.01 return header.next.element; 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns the last element in this list. 16.05/9.01 * 16.05/9.01 * @return the last element in this list 16.05/9.01 * @throws NoSuchElementException if this list is empty 16.05/9.01 */ 16.05/9.01 public E getLast() { 16.05/9.01 if (size==0) 16.05/9.01 throw new NoSuchElementException(); 16.05/9.01 16.05/9.01 return header.previous.element; 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Removes and returns the first element from this list. 16.05/9.01 * 16.05/9.01 * @return the first element from this list 16.05/9.01 * @throws NoSuchElementException if this list is empty 16.05/9.01 */ 16.05/9.01 public E removeFirst() { 16.05/9.01 return remove(header.next); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Removes and returns the last element from this list. 16.05/9.01 * 16.05/9.01 * @return the last element from this list 16.05/9.01 * @throws NoSuchElementException if this list is empty 16.05/9.01 */ 16.05/9.01 public E removeLast() { 16.05/9.01 return remove(header.previous); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Inserts the specified element at the beginning of this list. 16.05/9.01 * 16.05/9.01 * @param e the element to add 16.05/9.01 */ 16.05/9.01 public void addFirst(E e) { 16.05/9.01 addBefore(e, header.next); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Appends the specified element to the end of this list. 16.05/9.01 * 16.05/9.01 *

This method is equivalent to {@link #add}. 16.05/9.01 * 16.05/9.01 * @param e the element to add 16.05/9.01 */ 16.05/9.01 public void addLast(E e) { 16.05/9.01 addBefore(e, header); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns true if this list contains the specified element. 16.05/9.01 * More formally, returns true if and only if this list contains 16.05/9.01 * at least one element e such that 16.05/9.01 * (o==null ? e==null : o.equals(e)). 16.05/9.01 * 16.05/9.01 * @param o element whose presence in this list is to be tested 16.05/9.01 * @return true if this list contains the specified element 16.05/9.01 */ 16.05/9.01 public boolean contains(Object o) { 16.05/9.01 return indexOf(o) != -1; 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns the number of elements in this list. 16.05/9.01 * 16.05/9.01 * @return the number of elements in this list 16.05/9.01 */ 16.05/9.01 public int size() { 16.05/9.01 return size; 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Appends the specified element to the end of this list. 16.05/9.01 * 16.05/9.01 *

This method is equivalent to {@link #addLast}. 16.05/9.01 * 16.05/9.01 * @param e element to be appended to this list 16.05/9.01 * @return true (as specified by {@link Collection#add}) 16.05/9.01 */ 16.05/9.01 public boolean add(E e) { 16.05/9.01 addBefore(e, header); 16.05/9.01 return true; 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Removes the first occurrence of the specified element from this list, 16.05/9.01 * if it is present. If this list does not contain the element, it is 16.05/9.01 * unchanged. More formally, removes the element with the lowest index 16.05/9.01 * i such that 16.05/9.01 * (o==null ? get(i)==null : o.equals(get(i))) 16.05/9.01 * (if such an element exists). Returns true if this list 16.05/9.01 * contained the specified element (or equivalently, if this list 16.05/9.01 * changed as a result of the call). 16.05/9.01 * 16.05/9.01 * @param o element to be removed from this list, if present 16.05/9.01 * @return true if this list contained the specified element 16.05/9.01 */ 16.05/9.01 public boolean remove(Object o) { 16.05/9.01 if (o==null) { 16.05/9.01 for (Entry e = header.next; e != header; e = e.next) { 16.05/9.01 if (e.element==null) { 16.05/9.01 remove(e); 16.05/9.01 return true; 16.05/9.01 } 16.05/9.01 } 16.05/9.01 } else { 16.05/9.01 for (Entry e = header.next; e != header; e = e.next) { 16.05/9.01 if (o.equals(e.element)) { 16.05/9.01 remove(e); 16.05/9.01 return true; 16.05/9.01 } 16.05/9.01 } 16.05/9.01 } 16.05/9.01 return false; 16.05/9.01 } 16.05/9.01 /** 16.05/9.01 * Removes all of the elements from this list. 16.05/9.01 */ 16.05/9.01 public void clear() { 16.05/9.01 Entry e = header.next; 16.05/9.01 while (e != header) { 16.05/9.01 Entry next = e.next; 16.05/9.01 e.next = e.previous = null; 16.05/9.01 e.element = null; 16.05/9.01 e = next; 16.05/9.01 } 16.05/9.01 header.next = header.previous = header; 16.05/9.01 size = 0; 16.05/9.01 modCount++; 16.05/9.01 } 16.05/9.01 16.05/9.01 16.05/9.01 // Positional Access Operations 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns the element at the specified position in this list. 16.05/9.01 * 16.05/9.01 * @param index index of the element to return 16.05/9.01 * @return the element at the specified position in this list 16.05/9.01 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/9.01 */ 16.05/9.01 public E get(int index) { 16.05/9.01 return entry(index).element; 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Replaces the element at the specified position in this list with the 16.05/9.01 * specified element. 16.05/9.01 * 16.05/9.01 * @param index index of the element to replace 16.05/9.01 * @param element element to be stored at the specified position 16.05/9.01 * @return the element previously at the specified position 16.05/9.01 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/9.01 */ 16.05/9.01 public E set(int index, E element) { 16.05/9.01 Entry e = entry(index); 16.05/9.01 E oldVal = e.element; 16.05/9.01 e.element = element; 16.05/9.01 return oldVal; 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Inserts the specified element at the specified position in this list. 16.05/9.01 * Shifts the element currently at that position (if any) and any 16.05/9.01 * subsequent elements to the right (adds one to their indices). 16.05/9.01 * 16.05/9.01 * @param index index at which the specified element is to be inserted 16.05/9.01 * @param element element to be inserted 16.05/9.01 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/9.01 */ 16.05/9.01 public void add(int index, E element) { 16.05/9.01 addBefore(element, (index==size ? header : entry(index))); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Removes the element at the specified position in this list. Shifts any 16.05/9.01 * subsequent elements to the left (subtracts one from their indices). 16.05/9.01 * Returns the element that was removed from the list. 16.05/9.01 * 16.05/9.01 * @param index the index of the element to be removed 16.05/9.01 * @return the element previously at the specified position 16.05/9.01 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/9.01 */ 16.05/9.01 public E remove(int index) { 16.05/9.01 return remove(entry(index)); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns the indexed entry. 16.05/9.01 */ 16.05/9.01 private Entry entry(int index) { 16.05/9.01 if (index < 0 || index >= size) 16.05/9.01 throw new IndexOutOfBoundsException(); 16.05/9.01 Entry e = header; 16.05/9.01 if (index < (size >> 1)) { 16.05/9.01 for (int i = 0; i <= index; i++) 16.05/9.01 e = e.next; 16.05/9.01 } else { 16.05/9.01 for (int i = size; i > index; i--) 16.05/9.01 e = e.previous; 16.05/9.01 } 16.05/9.01 return e; 16.05/9.01 } 16.05/9.01 16.05/9.01 16.05/9.01 // Search Operations 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns the index of the first occurrence of the specified element 16.05/9.01 * in this list, or -1 if this list does not contain the element. 16.05/9.01 * More formally, returns the lowest index i such that 16.05/9.01 * (o==null ? get(i)==null : o.equals(get(i))), 16.05/9.01 * or -1 if there is no such index. 16.05/9.01 * 16.05/9.01 * @param o element to search for 16.05/9.01 * @return the index of the first occurrence of the specified element in 16.05/9.01 * this list, or -1 if this list does not contain the element 16.05/9.01 */ 16.05/9.01 public int indexOf(Object o) { 16.05/9.01 int index = 0; 16.05/9.01 if (o==null) { 16.05/9.01 for (Entry e = header.next; e != header; e = e.next) { 16.05/9.01 if (e.element==null) 16.05/9.01 return index; 16.05/9.01 index++; 16.05/9.01 } 16.05/9.01 } else { 16.05/9.01 for (Entry e = header.next; e != header; e = e.next) { 16.05/9.01 if (o.equals(e.element)) 16.05/9.01 return index; 16.05/9.01 index++; 16.05/9.01 } 16.05/9.01 } 16.05/9.01 return -1; 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns the index of the last occurrence of the specified element 16.05/9.01 * in this list, or -1 if this list does not contain the element. 16.05/9.01 * More formally, returns the highest index i such that 16.05/9.01 * (o==null ? get(i)==null : o.equals(get(i))), 16.05/9.01 * or -1 if there is no such index. 16.05/9.01 * 16.05/9.01 * @param o element to search for 16.05/9.01 * @return the index of the last occurrence of the specified element in 16.05/9.01 * this list, or -1 if this list does not contain the element 16.05/9.01 */ 16.05/9.01 public int lastIndexOf(Object o) { 16.05/9.01 int index = size; 16.05/9.01 if (o==null) { 16.05/9.01 for (Entry e = header.previous; e != header; e = e.previous) { 16.05/9.01 index--; 16.05/9.01 if (e.element==null) 16.05/9.01 return index; 16.05/9.01 } 16.05/9.01 } else { 16.05/9.01 for (Entry e = header.previous; e != header; e = e.previous) { 16.05/9.01 index--; 16.05/9.01 if (o.equals(e.element)) 16.05/9.01 return index; 16.05/9.01 } 16.05/9.01 } 16.05/9.01 return -1; 16.05/9.01 } 16.05/9.01 16.05/9.01 // Queue operations. 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Retrieves, but does not remove, the head (first element) of this list. 16.05/9.01 * @return the head of this list, or null if this list is empty 16.05/9.01 * @since 1.5 16.05/9.01 */ 16.05/9.01 public E peek() { 16.05/9.01 if (size==0) 16.05/9.01 return null; 16.05/9.01 return getFirst(); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Retrieves, but does not remove, the head (first element) of this list. 16.05/9.01 * @return the head of this list 16.05/9.01 * @throws NoSuchElementException if this list is empty 16.05/9.01 * @since 1.5 16.05/9.01 */ 16.05/9.01 public E element() { 16.05/9.01 return getFirst(); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Retrieves and removes the head (first element) of this list 16.05/9.01 * @return the head of this list, or null if this list is empty 16.05/9.01 * @since 1.5 16.05/9.01 */ 16.05/9.01 public E poll() { 16.05/9.01 if (size==0) 16.05/9.01 return null; 16.05/9.01 return removeFirst(); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Retrieves and removes the head (first element) of this list. 16.05/9.01 * 16.05/9.01 * @return the head of this list 16.05/9.01 * @throws NoSuchElementException if this list is empty 16.05/9.01 * @since 1.5 16.05/9.01 */ 16.05/9.01 public E remove() { 16.05/9.01 return removeFirst(); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Adds the specified element as the tail (last element) of this list. 16.05/9.01 * 16.05/9.01 * @param e the element to add 16.05/9.01 * @return true (as specified by {@link Queue#offer}) 16.05/9.01 * @since 1.5 16.05/9.01 */ 16.05/9.01 public boolean offer(E e) { 16.05/9.01 return add(e); 16.05/9.01 } 16.05/9.01 16.05/9.01 // Deque operations 16.05/9.01 /** 16.05/9.01 * Inserts the specified element at the front of this list. 16.05/9.01 * 16.05/9.01 * @param e the element to insert 16.05/9.01 * @return true (as specified by {@link Deque#offerFirst}) 16.05/9.01 * @since 1.6 16.05/9.01 */ 16.05/9.01 public boolean offerFirst(E e) { 16.05/9.01 addFirst(e); 16.05/9.01 return true; 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Inserts the specified element at the end of this list. 16.05/9.01 * 16.05/9.01 * @param e the element to insert 16.05/9.01 * @return true (as specified by {@link Deque#offerLast}) 16.05/9.01 * @since 1.6 16.05/9.01 */ 16.05/9.01 public boolean offerLast(E e) { 16.05/9.01 addLast(e); 16.05/9.01 return true; 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Retrieves, but does not remove, the first element of this list, 16.05/9.01 * or returns null if this list is empty. 16.05/9.01 * 16.05/9.01 * @return the first element of this list, or null 16.05/9.01 * if this list is empty 16.05/9.01 * @since 1.6 16.05/9.01 */ 16.05/9.01 public E peekFirst() { 16.05/9.01 if (size==0) 16.05/9.01 return null; 16.05/9.01 return getFirst(); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Retrieves, but does not remove, the last element of this list, 16.05/9.01 * or returns null if this list is empty. 16.05/9.01 * 16.05/9.01 * @return the last element of this list, or null 16.05/9.01 * if this list is empty 16.05/9.01 * @since 1.6 16.05/9.01 */ 16.05/9.01 public E peekLast() { 16.05/9.01 if (size==0) 16.05/9.01 return null; 16.05/9.01 return getLast(); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Retrieves and removes the first element of this list, 16.05/9.01 * or returns null if this list is empty. 16.05/9.01 * 16.05/9.01 * @return the first element of this list, or null if 16.05/9.01 * this list is empty 16.05/9.01 * @since 1.6 16.05/9.01 */ 16.05/9.01 public E pollFirst() { 16.05/9.01 if (size==0) 16.05/9.01 return null; 16.05/9.01 return removeFirst(); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Retrieves and removes the last element of this list, 16.05/9.01 * or returns null if this list is empty. 16.05/9.01 * 16.05/9.01 * @return the last element of this list, or null if 16.05/9.01 * this list is empty 16.05/9.01 * @since 1.6 16.05/9.01 */ 16.05/9.01 public E pollLast() { 16.05/9.01 if (size==0) 16.05/9.01 return null; 16.05/9.01 return removeLast(); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Pushes an element onto the stack represented by this list. In other 16.05/9.01 * words, inserts the element at the front of this list. 16.05/9.01 * 16.05/9.01 *

This method is equivalent to {@link #addFirst}. 16.05/9.01 * 16.05/9.01 * @param e the element to push 16.05/9.01 * @since 1.6 16.05/9.01 */ 16.05/9.01 public void push(E e) { 16.05/9.01 addFirst(e); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Pops an element from the stack represented by this list. In other 16.05/9.01 * words, removes and returns the first element of this list. 16.05/9.01 * 16.05/9.01 *

This method is equivalent to {@link #removeFirst()}. 16.05/9.01 * 16.05/9.01 * @return the element at the front of this list (which is the top 16.05/9.01 * of the stack represented by this list) 16.05/9.01 * @throws NoSuchElementException if this list is empty 16.05/9.01 * @since 1.6 16.05/9.01 */ 16.05/9.01 public E pop() { 16.05/9.01 return removeFirst(); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Removes the first occurrence of the specified element in this 16.05/9.01 * list (when traversing the list from head to tail). If the list 16.05/9.01 * does not contain the element, it is unchanged. 16.05/9.01 * 16.05/9.01 * @param o element to be removed from this list, if present 16.05/9.01 * @return true if the list contained the specified element 16.05/9.01 * @since 1.6 16.05/9.01 */ 16.05/9.01 public boolean removeFirstOccurrence(Object o) { 16.05/9.01 return remove(o); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Removes the last occurrence of the specified element in this 16.05/9.01 * list (when traversing the list from head to tail). If the list 16.05/9.01 * does not contain the element, it is unchanged. 16.05/9.01 * 16.05/9.01 * @param o element to be removed from this list, if present 16.05/9.01 * @return true if the list contained the specified element 16.05/9.01 * @since 1.6 16.05/9.01 */ 16.05/9.01 public boolean removeLastOccurrence(Object o) { 16.05/9.01 if (o==null) { 16.05/9.01 for (Entry e = header.previous; e != header; e = e.previous) { 16.05/9.01 if (e.element==null) { 16.05/9.01 remove(e); 16.05/9.01 return true; 16.05/9.01 } 16.05/9.01 } 16.05/9.01 } else { 16.05/9.01 for (Entry e = header.previous; e != header; e = e.previous) { 16.05/9.01 if (o.equals(e.element)) { 16.05/9.01 remove(e); 16.05/9.01 return true; 16.05/9.01 } 16.05/9.01 } 16.05/9.01 } 16.05/9.01 return false; 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns a list-iterator of the elements in this list (in proper 16.05/9.01 * sequence), starting at the specified position in the list. 16.05/9.01 * Obeys the general contract of List.listIterator(int).

16.05/9.01 * 16.05/9.01 * The list-iterator is fail-fast: if the list is structurally 16.05/9.01 * modified at any time after the Iterator is created, in any way except 16.05/9.01 * through the list-iterator's own remove or add 16.05/9.01 * methods, the list-iterator will throw a 16.05/9.01 * ConcurrentModificationException. Thus, in the face of 16.05/9.01 * concurrent modification, the iterator fails quickly and cleanly, rather 16.05/9.01 * than risking arbitrary, non-deterministic behavior at an undetermined 16.05/9.01 * time in the future. 16.05/9.01 * 16.05/9.01 * @param index index of the first element to be returned from the 16.05/9.01 * list-iterator (by a call to next) 16.05/9.01 * @return a ListIterator of the elements in this list (in proper 16.05/9.01 * sequence), starting at the specified position in the list 16.05/9.01 * @throws IndexOutOfBoundsException {@inheritDoc} 16.05/9.01 * @see List#listIterator(int) 16.05/9.01 */ 16.05/9.01 public ListIterator listIterator(int index) { 16.05/9.01 return new ListItr(index); 16.05/9.01 } 16.05/9.01 16.05/9.01 private class ListItr implements ListIterator { 16.05/9.01 private Entry lastReturned = header; 16.05/9.01 private Entry next; 16.05/9.01 private int nextIndex; 16.05/9.01 private int expectedModCount = modCount; 16.05/9.01 16.05/9.01 ListItr(int index) { 16.05/9.01 if (index < 0 || index > size) 16.05/9.01 throw new IndexOutOfBoundsException(); 16.05/9.01 if (index < (size >> 1)) { 16.05/9.01 next = header.next; 16.05/9.01 for (nextIndex=0; nextIndexindex; nextIndex--) 16.05/9.01 next = next.previous; 16.05/9.01 } 16.05/9.01 } 16.05/9.01 16.05/9.01 public boolean hasNext() { 16.05/9.01 return nextIndex != size; 16.05/9.01 } 16.05/9.01 16.05/9.01 public E next() { 16.05/9.01 checkForComodification(); 16.05/9.01 if (nextIndex == size) 16.05/9.01 throw new NoSuchElementException(); 16.05/9.01 16.05/9.01 lastReturned = next; 16.05/9.01 next = next.next; 16.05/9.01 nextIndex++; 16.05/9.01 return lastReturned.element; 16.05/9.01 } 16.05/9.01 16.05/9.01 public boolean hasPrevious() { 16.05/9.01 return nextIndex != 0; 16.05/9.01 } 16.05/9.01 16.05/9.01 public E previous() { 16.05/9.01 if (nextIndex == 0) 16.05/9.01 throw new NoSuchElementException(); 16.05/9.01 16.05/9.01 lastReturned = next = next.previous; 16.05/9.01 nextIndex--; 16.05/9.01 checkForComodification(); 16.05/9.01 return lastReturned.element; 16.05/9.01 } 16.05/9.01 16.05/9.01 public int nextIndex() { 16.05/9.01 return nextIndex; 16.05/9.01 } 16.05/9.01 16.05/9.01 public int previousIndex() { 16.05/9.01 return nextIndex-1; 16.05/9.01 } 16.05/9.01 16.05/9.01 public void remove() { 16.05/9.01 checkForComodification(); 16.05/9.01 Entry lastNext = lastReturned.next; 16.05/9.01 try { 16.05/9.01 LinkedList.this.remove(lastReturned); 16.05/9.01 } catch (NoSuchElementException e) { 16.05/9.01 throw new IllegalStateException(); 16.05/9.01 } 16.05/9.01 if (next==lastReturned) 16.05/9.01 next = lastNext; 16.05/9.01 else 16.05/9.01 nextIndex--; 16.05/9.01 lastReturned = header; 16.05/9.01 expectedModCount++; 16.05/9.01 } 16.05/9.01 16.05/9.01 public void set(E e) { 16.05/9.01 if (lastReturned == header) 16.05/9.01 throw new IllegalStateException(); 16.05/9.01 checkForComodification(); 16.05/9.01 lastReturned.element = e; 16.05/9.01 } 16.05/9.01 16.05/9.01 public void add(E e) { 16.05/9.01 checkForComodification(); 16.05/9.01 lastReturned = header; 16.05/9.01 addBefore(e, next); 16.05/9.01 nextIndex++; 16.05/9.01 expectedModCount++; 16.05/9.01 } 16.05/9.01 16.05/9.01 final void checkForComodification() { 16.05/9.01 if (modCount != expectedModCount) 16.05/9.01 throw new ConcurrentModificationException(); 16.05/9.01 } 16.05/9.01 } 16.05/9.01 16.05/9.01 private static class Entry { 16.05/9.01 E element; 16.05/9.01 Entry next; 16.05/9.01 Entry previous; 16.05/9.01 16.05/9.01 Entry(E element, Entry next, Entry previous) { 16.05/9.01 this.element = element; 16.05/9.01 this.next = next; 16.05/9.01 this.previous = previous; 16.05/9.01 } 16.05/9.01 } 16.05/9.01 16.05/9.01 private Entry addBefore(E e, Entry entry) { 16.05/9.01 Entry newEntry = new Entry(e, entry, entry.previous); 16.05/9.01 newEntry.previous.next = newEntry; 16.05/9.01 newEntry.next.previous = newEntry; 16.05/9.01 size++; 16.05/9.01 modCount++; 16.05/9.01 return newEntry; 16.05/9.01 } 16.05/9.01 16.05/9.01 private E remove(Entry e) { 16.05/9.01 if (e == header) 16.05/9.01 throw new NoSuchElementException(); 16.05/9.01 16.05/9.01 E result = e.element; 16.05/9.01 e.previous.next = e.next; 16.05/9.01 e.next.previous = e.previous; 16.05/9.01 e.next = e.previous = null; 16.05/9.01 e.element = null; 16.05/9.01 size--; 16.05/9.01 modCount++; 16.05/9.01 return result; 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * @since 1.6 16.05/9.01 */ 16.05/9.01 public Iterator descendingIterator() { 16.05/9.01 return new DescendingIterator(); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** Adapter to provide descending iterators via ListItr.previous */ 16.05/9.01 private class DescendingIterator implements Iterator { 16.05/9.01 final ListItr itr = new ListItr(size()); 16.05/9.01 public boolean hasNext() { 16.05/9.01 return itr.hasPrevious(); 16.05/9.01 } 16.05/9.01 public E next() { 16.05/9.01 return itr.previous(); 16.05/9.01 } 16.05/9.01 public void remove() { 16.05/9.01 itr.remove(); 16.05/9.01 } 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns an array containing all of the elements in this list 16.05/9.01 * in proper sequence (from first to last element). 16.05/9.01 * 16.05/9.01 *

The returned array will be "safe" in that no references to it are 16.05/9.01 * maintained by this list. (In other words, this method must allocate 16.05/9.01 * a new array). The caller is thus free to modify the returned array. 16.05/9.01 * 16.05/9.01 *

This method acts as bridge between array-based and collection-based 16.05/9.01 * APIs. 16.05/9.01 * 16.05/9.01 * @return an array containing all of the elements in this list 16.05/9.01 * in proper sequence 16.05/9.01 */ 16.05/9.01 public Object[] toArray() { 16.05/9.01 Object[] result = new Object[size]; 16.05/9.01 int i = 0; 16.05/9.01 for (Entry e = header.next; e != header; e = e.next) 16.05/9.01 result[i++] = e.element; 16.05/9.01 return result; 16.05/9.01 } 16.05/9.01 16.05/9.01 private static final long serialVersionUID = 876323262645176354L; 16.05/9.01 } 16.05/9.01 16.05/9.01 16.05/9.01 /* 16.05/9.01 * Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved. 16.05/9.01 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/9.01 * 16.05/9.01 * This code is free software; you can redistribute it and/or modify it 16.05/9.01 * under the terms of the GNU General Public License version 2 only, as 16.05/9.01 * published by the Free Software Foundation. Sun designates this 16.05/9.01 * particular file as subject to the "Classpath" exception as provided 16.05/9.01 * by Sun in the LICENSE file that accompanied this code. 16.05/9.01 * 16.05/9.01 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/9.01 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/9.01 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/9.01 * version 2 for more details (a copy is included in the LICENSE file that 16.05/9.01 * accompanied this code). 16.05/9.01 * 16.05/9.01 * You should have received a copy of the GNU General Public License version 16.05/9.01 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/9.01 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/9.01 * 16.05/9.01 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/9.01 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/9.01 * have any questions. 16.05/9.01 */ 16.05/9.01 16.05/9.01 package javaUtilEx; 16.05/9.01 16.05/9.01 /** 16.05/9.01 * An iterator for lists that allows the programmer 16.05/9.01 * to traverse the list in either direction, modify 16.05/9.01 * the list during iteration, and obtain the iterator's 16.05/9.01 * current position in the list. A {@code ListIterator} 16.05/9.01 * has no current element; its cursor position always 16.05/9.01 * lies between the element that would be returned by a call 16.05/9.01 * to {@code previous()} and the element that would be 16.05/9.01 * returned by a call to {@code next()}. 16.05/9.01 * An iterator for a list of length {@code n} has {@code n+1} possible 16.05/9.01 * cursor positions, as illustrated by the carets ({@code ^}) below: 16.05/9.01 *

16.05/9.01	 *                      Element(0)   Element(1)   Element(2)   ... Element(n-1)
16.05/9.01	 * cursor positions:  ^            ^            ^            ^                  ^
16.05/9.01	 * 
16.05/9.01 * Note that the {@link #remove} and {@link #set(Object)} methods are 16.05/9.01 * not defined in terms of the cursor position; they are defined to 16.05/9.01 * operate on the last element returned by a call to {@link #next} or 16.05/9.01 * {@link #previous()}. 16.05/9.01 * 16.05/9.01 *

This interface is a member of the 16.05/9.01 * 16.05/9.01 * Java Collections Framework. 16.05/9.01 * 16.05/9.01 * @author Josh Bloch 16.05/9.01 * @see Collection 16.05/9.01 * @see List 16.05/9.01 * @see Iterator 16.05/9.01 * @see Enumeration 16.05/9.01 * @see List#listIterator() 16.05/9.01 * @since 1.2 16.05/9.01 */ 16.05/9.01 public interface ListIterator extends Iterator { 16.05/9.01 // Query Operations 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns {@code true} if this list iterator has more elements when 16.05/9.01 * traversing the list in the forward direction. (In other words, 16.05/9.01 * returns {@code true} if {@link #next} would return an element rather 16.05/9.01 * than throwing an exception.) 16.05/9.01 * 16.05/9.01 * @return {@code true} if the list iterator has more elements when 16.05/9.01 * traversing the list in the forward direction 16.05/9.01 */ 16.05/9.01 boolean hasNext(); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns the next element in the list and advances the cursor position. 16.05/9.01 * This method may be called repeatedly to iterate through the list, 16.05/9.01 * or intermixed with calls to {@link #previous} to go back and forth. 16.05/9.01 * (Note that alternating calls to {@code next} and {@code previous} 16.05/9.01 * will return the same element repeatedly.) 16.05/9.01 * 16.05/9.01 * @return the next element in the list 16.05/9.01 * @throws NoSuchElementException if the iteration has no next element 16.05/9.01 */ 16.05/9.01 E next(); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns {@code true} if this list iterator has more elements when 16.05/9.01 * traversing the list in the reverse direction. (In other words, 16.05/9.01 * returns {@code true} if {@link #previous} would return an element 16.05/9.01 * rather than throwing an exception.) 16.05/9.01 * 16.05/9.01 * @return {@code true} if the list iterator has more elements when 16.05/9.01 * traversing the list in the reverse direction 16.05/9.01 */ 16.05/9.01 boolean hasPrevious(); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns the previous element in the list and moves the cursor 16.05/9.01 * position backwards. This method may be called repeatedly to 16.05/9.01 * iterate through the list backwards, or intermixed with calls to 16.05/9.01 * {@link #next} to go back and forth. (Note that alternating calls 16.05/9.01 * to {@code next} and {@code previous} will return the same 16.05/9.01 * element repeatedly.) 16.05/9.01 * 16.05/9.01 * @return the previous element in the list 16.05/9.01 * @throws NoSuchElementException if the iteration has no previous 16.05/9.01 * element 16.05/9.01 */ 16.05/9.01 E previous(); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns the index of the element that would be returned by a 16.05/9.01 * subsequent call to {@link #next}. (Returns list size if the list 16.05/9.01 * iterator is at the end of the list.) 16.05/9.01 * 16.05/9.01 * @return the index of the element that would be returned by a 16.05/9.01 * subsequent call to {@code next}, or list size if the list 16.05/9.01 * iterator is at the end of the list 16.05/9.01 */ 16.05/9.01 int nextIndex(); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns the index of the element that would be returned by a 16.05/9.01 * subsequent call to {@link #previous}. (Returns -1 if the list 16.05/9.01 * iterator is at the beginning of the list.) 16.05/9.01 * 16.05/9.01 * @return the index of the element that would be returned by a 16.05/9.01 * subsequent call to {@code previous}, or -1 if the list 16.05/9.01 * iterator is at the beginning of the list 16.05/9.01 */ 16.05/9.01 int previousIndex(); 16.05/9.01 16.05/9.01 16.05/9.01 // Modification Operations 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Removes from the list the last element that was returned by {@link 16.05/9.01 * #next} or {@link #previous} (optional operation). This call can 16.05/9.01 * only be made once per call to {@code next} or {@code previous}. 16.05/9.01 * It can be made only if {@link #add} has not been 16.05/9.01 * called after the last call to {@code next} or {@code previous}. 16.05/9.01 * 16.05/9.01 * @throws UnsupportedOperationException if the {@code remove} 16.05/9.01 * operation is not supported by this list iterator 16.05/9.01 * @throws IllegalStateException if neither {@code next} nor 16.05/9.01 * {@code previous} have been called, or {@code remove} or 16.05/9.01 * {@code add} have been called after the last call to 16.05/9.01 * {@code next} or {@code previous} 16.05/9.01 */ 16.05/9.01 void remove(); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Replaces the last element returned by {@link #next} or 16.05/9.01 * {@link #previous} with the specified element (optional operation). 16.05/9.01 * This call can be made only if neither {@link #remove} nor {@link 16.05/9.01 * #add} have been called after the last call to {@code next} or 16.05/9.01 * {@code previous}. 16.05/9.01 * 16.05/9.01 * @param e the element with which to replace the last element returned by 16.05/9.01 * {@code next} or {@code previous} 16.05/9.01 * @throws UnsupportedOperationException if the {@code set} operation 16.05/9.01 * is not supported by this list iterator 16.05/9.01 * @throws ClassCastException if the class of the specified element 16.05/9.01 * prevents it from being added to this list 16.05/9.01 * @throws IllegalArgumentException if some aspect of the specified 16.05/9.01 * element prevents it from being added to this list 16.05/9.01 * @throws IllegalStateException if neither {@code next} nor 16.05/9.01 * {@code previous} have been called, or {@code remove} or 16.05/9.01 * {@code add} have been called after the last call to 16.05/9.01 * {@code next} or {@code previous} 16.05/9.01 */ 16.05/9.01 void set(E e); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Inserts the specified element into the list (optional operation). 16.05/9.01 * The element is inserted immediately before the next element that 16.05/9.01 * would be returned by {@link #next}, if any, and after the next 16.05/9.01 * element that would be returned by {@link #previous}, if any. (If the 16.05/9.01 * list contains no elements, the new element becomes the sole element 16.05/9.01 * on the list.) The new element is inserted before the implicit 16.05/9.01 * cursor: a subsequent call to {@code next} would be unaffected, and a 16.05/9.01 * subsequent call to {@code previous} would return the new element. 16.05/9.01 * (This call increases by one the value that would be returned by a 16.05/9.01 * call to {@code nextIndex} or {@code previousIndex}.) 16.05/9.01 * 16.05/9.01 * @param e the element to insert 16.05/9.01 * @throws UnsupportedOperationException if the {@code add} method is 16.05/9.01 * not supported by this list iterator 16.05/9.01 * @throws ClassCastException if the class of the specified element 16.05/9.01 * prevents it from being added to this list 16.05/9.01 * @throws IllegalArgumentException if some aspect of this element 16.05/9.01 * prevents it from being added to this list 16.05/9.01 */ 16.05/9.01 void add(E e); 16.05/9.01 } 16.05/9.01 16.05/9.01 16.05/9.01 /* 16.05/9.01 * Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved. 16.05/9.01 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/9.01 * 16.05/9.01 * This code is free software; you can redistribute it and/or modify it 16.05/9.01 * under the terms of the GNU General Public License version 2 only, as 16.05/9.01 * published by the Free Software Foundation. Sun designates this 16.05/9.01 * particular file as subject to the "Classpath" exception as provided 16.05/9.01 * by Sun in the LICENSE file that accompanied this code. 16.05/9.01 * 16.05/9.01 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/9.01 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/9.01 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/9.01 * version 2 for more details (a copy is included in the LICENSE file that 16.05/9.01 * accompanied this code). 16.05/9.01 * 16.05/9.01 * You should have received a copy of the GNU General Public License version 16.05/9.01 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/9.01 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/9.01 * 16.05/9.01 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/9.01 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/9.01 * have any questions. 16.05/9.01 */ 16.05/9.01 16.05/9.01 package javaUtilEx; 16.05/9.01 16.05/9.01 /** 16.05/9.01 * An ordered collection (also known as a sequence). The user of this 16.05/9.01 * interface has precise control over where in the list each element is 16.05/9.01 * inserted. The user can access elements by their integer index (position in 16.05/9.01 * the list), and search for elements in the list.

16.05/9.01 * 16.05/9.01 * Unlike sets, lists typically allow duplicate elements. More formally, 16.05/9.01 * lists typically allow pairs of elements e1 and e2 16.05/9.01 * such that e1.equals(e2), and they typically allow multiple 16.05/9.01 * null elements if they allow null elements at all. It is not inconceivable 16.05/9.01 * that someone might wish to implement a list that prohibits duplicates, by 16.05/9.01 * throwing runtime exceptions when the user attempts to insert them, but we 16.05/9.01 * expect this usage to be rare.

16.05/9.01 * 16.05/9.01 * The List interface places additional stipulations, beyond those 16.05/9.01 * specified in the Collection interface, on the contracts of the 16.05/9.01 * iterator, add, remove, equals, and 16.05/9.01 * hashCode methods. Declarations for other inherited methods are 16.05/9.01 * also included here for convenience.

16.05/9.01 * 16.05/9.01 * The List interface provides four methods for positional (indexed) 16.05/9.01 * access to list elements. Lists (like Java arrays) are zero based. Note 16.05/9.01 * that these operations may execute in time proportional to the index value 16.05/9.01 * for some implementations (the LinkedList class, for 16.05/9.01 * example). Thus, iterating over the elements in a list is typically 16.05/9.01 * preferable to indexing through it if the caller does not know the 16.05/9.01 * implementation.

16.05/9.01 * 16.05/9.01 * The List interface provides a special iterator, called a 16.05/9.01 * ListIterator, that allows element insertion and replacement, and 16.05/9.01 * bidirectional access in addition to the normal operations that the 16.05/9.01 * Iterator interface provides. A method is provided to obtain a 16.05/9.01 * list iterator that starts at a specified position in the list.

16.05/9.01 * 16.05/9.01 * The List interface provides two methods to search for a specified 16.05/9.01 * object. From a performance standpoint, these methods should be used with 16.05/9.01 * caution. In many implementations they will perform costly linear 16.05/9.01 * searches.

16.05/9.01 * 16.05/9.01 * The List interface provides two methods to efficiently insert and 16.05/9.01 * remove multiple elements at an arbitrary point in the list.

16.05/9.01 * 16.05/9.01 * Note: While it is permissible for lists to contain themselves as elements, 16.05/9.01 * extreme caution is advised: the equals and hashCode 16.05/9.01 * methods are no longer well defined on such a list. 16.05/9.01 * 16.05/9.01 *

Some list implementations have restrictions on the elements that 16.05/9.01 * they may contain. For example, some implementations prohibit null elements, 16.05/9.01 * and some have restrictions on the types of their elements. Attempting to 16.05/9.01 * add an ineligible element throws an unchecked exception, typically 16.05/9.01 * NullPointerException or ClassCastException. Attempting 16.05/9.01 * to query the presence of an ineligible element may throw an exception, 16.05/9.01 * or it may simply return false; some implementations will exhibit the former 16.05/9.01 * behavior and some will exhibit the latter. More generally, attempting an 16.05/9.01 * operation on an ineligible element whose completion would not result in 16.05/9.01 * the insertion of an ineligible element into the list may throw an 16.05/9.01 * exception or it may succeed, at the option of the implementation. 16.05/9.01 * Such exceptions are marked as "optional" in the specification for this 16.05/9.01 * interface. 16.05/9.01 * 16.05/9.01 *

This interface is a member of the 16.05/9.01 * 16.05/9.01 * Java Collections Framework. 16.05/9.01 * 16.05/9.01 * @author Josh Bloch 16.05/9.01 * @author Neal Gafter 16.05/9.01 * @see Collection 16.05/9.01 * @see Set 16.05/9.01 * @see ArrayList 16.05/9.01 * @see LinkedList 16.05/9.01 * @see Vector 16.05/9.01 * @see Arrays#asList(Object[]) 16.05/9.01 * @see Collections#nCopies(int, Object) 16.05/9.01 * @see Collections#EMPTY_LIST 16.05/9.01 * @see AbstractList 16.05/9.01 * @see AbstractSequentialList 16.05/9.01 * @since 1.2 16.05/9.01 */ 16.05/9.01 16.05/9.01 public interface List extends Collection { 16.05/9.01 // Query Operations 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns the number of elements in this list. If this list contains 16.05/9.01 * more than Integer.MAX_VALUE elements, returns 16.05/9.01 * Integer.MAX_VALUE. 16.05/9.01 * 16.05/9.01 * @return the number of elements in this list 16.05/9.01 */ 16.05/9.01 int size(); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns true if this list contains no elements. 16.05/9.01 * 16.05/9.01 * @return true if this list contains no elements 16.05/9.01 */ 16.05/9.01 boolean isEmpty(); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns true if this list contains the specified element. 16.05/9.01 * More formally, returns true if and only if this list contains 16.05/9.01 * at least one element e such that 16.05/9.01 * (o==null ? e==null : o.equals(e)). 16.05/9.01 * 16.05/9.01 * @param o element whose presence in this list is to be tested 16.05/9.01 * @return true if this list contains the specified element 16.05/9.01 * @throws ClassCastException if the type of the specified element 16.05/9.01 * is incompatible with this list (optional) 16.05/9.01 * @throws NullPointerException if the specified element is null and this 16.05/9.01 * list does not permit null elements (optional) 16.05/9.01 */ 16.05/9.01 boolean contains(Object o); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns an iterator over the elements in this list in proper sequence. 16.05/9.01 * 16.05/9.01 * @return an iterator over the elements in this list in proper sequence 16.05/9.01 */ 16.05/9.01 Iterator iterator(); 16.05/9.01 16.05/9.01 // Modification Operations 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Appends the specified element to the end of this list (optional 16.05/9.01 * operation). 16.05/9.01 * 16.05/9.01 *

Lists that support this operation may place limitations on what 16.05/9.01 * elements may be added to this list. In particular, some 16.05/9.01 * lists will refuse to add null elements, and others will impose 16.05/9.01 * restrictions on the type of elements that may be added. List 16.05/9.01 * classes should clearly specify in their documentation any restrictions 16.05/9.01 * on what elements may be added. 16.05/9.01 * 16.05/9.01 * @param e element to be appended to this list 16.05/9.01 * @return true (as specified by {@link Collection#add}) 16.05/9.01 * @throws UnsupportedOperationException if the add operation 16.05/9.01 * is not supported by this list 16.05/9.01 * @throws ClassCastException if the class of the specified element 16.05/9.01 * prevents it from being added to this list 16.05/9.01 * @throws NullPointerException if the specified element is null and this 16.05/9.01 * list does not permit null elements 16.05/9.01 * @throws IllegalArgumentException if some property of this element 16.05/9.01 * prevents it from being added to this list 16.05/9.01 */ 16.05/9.01 boolean add(E e); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Removes the first occurrence of the specified element from this list, 16.05/9.01 * if it is present (optional operation). If this list does not contain 16.05/9.01 * the element, it is unchanged. More formally, removes the element with 16.05/9.01 * the lowest index i such that 16.05/9.01 * (o==null ? get(i)==null : o.equals(get(i))) 16.05/9.01 * (if such an element exists). Returns true if this list 16.05/9.01 * contained the specified element (or equivalently, if this list changed 16.05/9.01 * as a result of the call). 16.05/9.01 * 16.05/9.01 * @param o element to be removed from this list, if present 16.05/9.01 * @return true if this list contained the specified element 16.05/9.01 * @throws ClassCastException if the type of the specified element 16.05/9.01 * is incompatible with this list (optional) 16.05/9.01 * @throws NullPointerException if the specified element is null and this 16.05/9.01 * list does not permit null elements (optional) 16.05/9.01 * @throws UnsupportedOperationException if the remove operation 16.05/9.01 * is not supported by this list 16.05/9.01 */ 16.05/9.01 boolean remove(Object o); 16.05/9.01 16.05/9.01 16.05/9.01 // Bulk Modification Operations 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns true if this list contains all of the elements of the 16.05/9.01 * specified collection. 16.05/9.01 * 16.05/9.01 * @param c collection to be checked for containment in this list 16.05/9.01 * @return true if this list contains all of the elements of the 16.05/9.01 * specified collection 16.05/9.01 * @throws ClassCastException if the types of one or more elements 16.05/9.01 * in the specified collection are incompatible with this 16.05/9.01 * list (optional) 16.05/9.01 * @throws NullPointerException if the specified collection contains one 16.05/9.01 * or more null elements and this list does not permit null 16.05/9.01 * elements (optional), or if the specified collection is null 16.05/9.01 * @see #contains(Object) 16.05/9.01 */ 16.05/9.01 boolean containsAll(Collection c); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Appends all of the elements in the specified collection to the end of 16.05/9.01 * this list, in the order that they are returned by the specified 16.05/9.01 * collection's iterator (optional operation). The behavior of this 16.05/9.01 * operation is undefined if the specified collection is modified while 16.05/9.01 * the operation is in progress. (Note that this will occur if the 16.05/9.01 * specified collection is this list, and it's nonempty.) 16.05/9.01 * 16.05/9.01 * @param c collection containing elements to be added to this list 16.05/9.01 * @return true if this list changed as a result of the call 16.05/9.01 * @throws UnsupportedOperationException if the addAll operation 16.05/9.01 * is not supported by this list 16.05/9.01 * @throws ClassCastException if the class of an element of the specified 16.05/9.01 * collection prevents it from being added to this list 16.05/9.01 * @throws NullPointerException if the specified collection contains one 16.05/9.01 * or more null elements and this list does not permit null 16.05/9.01 * elements, or if the specified collection is null 16.05/9.01 * @throws IllegalArgumentException if some property of an element of the 16.05/9.01 * specified collection prevents it from being added to this list 16.05/9.01 * @see #add(Object) 16.05/9.01 */ 16.05/9.01 boolean addAll(Collection c); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Inserts all of the elements in the specified collection into this 16.05/9.01 * list at the specified position (optional operation). Shifts the 16.05/9.01 * element currently at that position (if any) and any subsequent 16.05/9.01 * elements to the right (increases their indices). The new elements 16.05/9.01 * will appear in this list in the order that they are returned by the 16.05/9.01 * specified collection's iterator. The behavior of this operation is 16.05/9.01 * undefined if the specified collection is modified while the 16.05/9.01 * operation is in progress. (Note that this will occur if the specified 16.05/9.01 * collection is this list, and it's nonempty.) 16.05/9.01 * 16.05/9.01 * @param index index at which to insert the first element from the 16.05/9.01 * specified collection 16.05/9.01 * @param c collection containing elements to be added to this list 16.05/9.01 * @return true if this list changed as a result of the call 16.05/9.01 * @throws UnsupportedOperationException if the addAll operation 16.05/9.01 * is not supported by this list 16.05/9.01 * @throws ClassCastException if the class of an element of the specified 16.05/9.01 * collection prevents it from being added to this list 16.05/9.01 * @throws NullPointerException if the specified collection contains one 16.05/9.01 * or more null elements and this list does not permit null 16.05/9.01 * elements, or if the specified collection is null 16.05/9.01 * @throws IllegalArgumentException if some property of an element of the 16.05/9.01 * specified collection prevents it from being added to this list 16.05/9.01 * @throws IndexOutOfBoundsException if the index is out of range 16.05/9.01 * (index < 0 || index > size()) 16.05/9.01 */ 16.05/9.01 boolean addAll(int index, Collection c); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Removes from this list all of its elements that are contained in the 16.05/9.01 * specified collection (optional operation). 16.05/9.01 * 16.05/9.01 * @param c collection containing elements to be removed from this list 16.05/9.01 * @return true if this list changed as a result of the call 16.05/9.01 * @throws UnsupportedOperationException if the removeAll operation 16.05/9.01 * is not supported by this list 16.05/9.01 * @throws ClassCastException if the class of an element of this list 16.05/9.01 * is incompatible with the specified collection (optional) 16.05/9.01 * @throws NullPointerException if this list contains a null element and the 16.05/9.01 * specified collection does not permit null elements (optional), 16.05/9.01 * or if the specified collection is null 16.05/9.01 * @see #remove(Object) 16.05/9.01 * @see #contains(Object) 16.05/9.01 */ 16.05/9.01 boolean removeAll(Collection c); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Retains only the elements in this list that are contained in the 16.05/9.01 * specified collection (optional operation). In other words, removes 16.05/9.01 * from this list all of its elements that are not contained in the 16.05/9.01 * specified collection. 16.05/9.01 * 16.05/9.01 * @param c collection containing elements to be retained in this list 16.05/9.01 * @return true if this list changed as a result of the call 16.05/9.01 * @throws UnsupportedOperationException if the retainAll operation 16.05/9.01 * is not supported by this list 16.05/9.01 * @throws ClassCastException if the class of an element of this list 16.05/9.01 * is incompatible with the specified collection (optional) 16.05/9.01 * @throws NullPointerException if this list contains a null element and the 16.05/9.01 * specified collection does not permit null elements (optional), 16.05/9.01 * or if the specified collection is null 16.05/9.01 * @see #remove(Object) 16.05/9.01 * @see #contains(Object) 16.05/9.01 */ 16.05/9.01 boolean retainAll(Collection c); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Removes all of the elements from this list (optional operation). 16.05/9.01 * The list will be empty after this call returns. 16.05/9.01 * 16.05/9.01 * @throws UnsupportedOperationException if the clear operation 16.05/9.01 * is not supported by this list 16.05/9.01 */ 16.05/9.01 void clear(); 16.05/9.01 16.05/9.01 16.05/9.01 // Comparison and hashing 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Compares the specified object with this list for equality. Returns 16.05/9.01 * true if and only if the specified object is also a list, both 16.05/9.01 * lists have the same size, and all corresponding pairs of elements in 16.05/9.01 * the two lists are equal. (Two elements e1 and 16.05/9.01 * e2 are equal if (e1==null ? e2==null : 16.05/9.01 * e1.equals(e2)).) In other words, two lists are defined to be 16.05/9.01 * equal if they contain the same elements in the same order. This 16.05/9.01 * definition ensures that the equals method works properly across 16.05/9.01 * different implementations of the List interface. 16.05/9.01 * 16.05/9.01 * @param o the object to be compared for equality with this list 16.05/9.01 * @return true if the specified object is equal to this list 16.05/9.01 */ 16.05/9.01 boolean equals(Object o); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns the hash code value for this list. The hash code of a list 16.05/9.01 * is defined to be the result of the following calculation: 16.05/9.01 *

16.05/9.01	     *  int hashCode = 1;
16.05/9.01	     *  for (E e : list)
16.05/9.01	     *      hashCode = 31*hashCode + (e==null ? 0 : e.hashCode());
16.05/9.01	     * 
16.05/9.01 * This ensures that list1.equals(list2) implies that 16.05/9.01 * list1.hashCode()==list2.hashCode() for any two lists, 16.05/9.01 * list1 and list2, as required by the general 16.05/9.01 * contract of {@link Object#hashCode}. 16.05/9.01 * 16.05/9.01 * @return the hash code value for this list 16.05/9.01 * @see Object#equals(Object) 16.05/9.01 * @see #equals(Object) 16.05/9.01 */ 16.05/9.01 int hashCode(); 16.05/9.01 16.05/9.01 16.05/9.01 // Positional Access Operations 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns the element at the specified position in this list. 16.05/9.01 * 16.05/9.01 * @param index index of the element to return 16.05/9.01 * @return the element at the specified position in this list 16.05/9.01 * @throws IndexOutOfBoundsException if the index is out of range 16.05/9.01 * (index < 0 || index >= size()) 16.05/9.01 */ 16.05/9.01 E get(int index); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Replaces the element at the specified position in this list with the 16.05/9.01 * specified element (optional operation). 16.05/9.01 * 16.05/9.01 * @param index index of the element to replace 16.05/9.01 * @param element element to be stored at the specified position 16.05/9.01 * @return the element previously at the specified position 16.05/9.01 * @throws UnsupportedOperationException if the set operation 16.05/9.01 * is not supported by this list 16.05/9.01 * @throws ClassCastException if the class of the specified element 16.05/9.01 * prevents it from being added to this list 16.05/9.01 * @throws NullPointerException if the specified element is null and 16.05/9.01 * this list does not permit null elements 16.05/9.01 * @throws IllegalArgumentException if some property of the specified 16.05/9.01 * element prevents it from being added to this list 16.05/9.01 * @throws IndexOutOfBoundsException if the index is out of range 16.05/9.01 * (index < 0 || index >= size()) 16.05/9.01 */ 16.05/9.01 E set(int index, E element); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Inserts the specified element at the specified position in this list 16.05/9.01 * (optional operation). Shifts the element currently at that position 16.05/9.01 * (if any) and any subsequent elements to the right (adds one to their 16.05/9.01 * indices). 16.05/9.01 * 16.05/9.01 * @param index index at which the specified element is to be inserted 16.05/9.01 * @param element element to be inserted 16.05/9.01 * @throws UnsupportedOperationException if the add operation 16.05/9.01 * is not supported by this list 16.05/9.01 * @throws ClassCastException if the class of the specified element 16.05/9.01 * prevents it from being added to this list 16.05/9.01 * @throws NullPointerException if the specified element is null and 16.05/9.01 * this list does not permit null elements 16.05/9.01 * @throws IllegalArgumentException if some property of the specified 16.05/9.01 * element prevents it from being added to this list 16.05/9.01 * @throws IndexOutOfBoundsException if the index is out of range 16.05/9.01 * (index < 0 || index > size()) 16.05/9.01 */ 16.05/9.01 void add(int index, E element); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Removes the element at the specified position in this list (optional 16.05/9.01 * operation). Shifts any subsequent elements to the left (subtracts one 16.05/9.01 * from their indices). Returns the element that was removed from the 16.05/9.01 * list. 16.05/9.01 * 16.05/9.01 * @param index the index of the element to be removed 16.05/9.01 * @return the element previously at the specified position 16.05/9.01 * @throws UnsupportedOperationException if the remove operation 16.05/9.01 * is not supported by this list 16.05/9.01 * @throws IndexOutOfBoundsException if the index is out of range 16.05/9.01 * (index < 0 || index >= size()) 16.05/9.01 */ 16.05/9.01 E remove(int index); 16.05/9.01 16.05/9.01 16.05/9.01 // Search Operations 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns the index of the first occurrence of the specified element 16.05/9.01 * in this list, or -1 if this list does not contain the element. 16.05/9.01 * More formally, returns the lowest index i such that 16.05/9.01 * (o==null ? get(i)==null : o.equals(get(i))), 16.05/9.01 * or -1 if there is no such index. 16.05/9.01 * 16.05/9.01 * @param o element to search for 16.05/9.01 * @return the index of the first occurrence of the specified element in 16.05/9.01 * this list, or -1 if this list does not contain the element 16.05/9.01 * @throws ClassCastException if the type of the specified element 16.05/9.01 * is incompatible with this list (optional) 16.05/9.01 * @throws NullPointerException if the specified element is null and this 16.05/9.01 * list does not permit null elements (optional) 16.05/9.01 */ 16.05/9.01 int indexOf(Object o); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns the index of the last occurrence of the specified element 16.05/9.01 * in this list, or -1 if this list does not contain the element. 16.05/9.01 * More formally, returns the highest index i such that 16.05/9.01 * (o==null ? get(i)==null : o.equals(get(i))), 16.05/9.01 * or -1 if there is no such index. 16.05/9.01 * 16.05/9.01 * @param o element to search for 16.05/9.01 * @return the index of the last occurrence of the specified element in 16.05/9.01 * this list, or -1 if this list does not contain the element 16.05/9.01 * @throws ClassCastException if the type of the specified element 16.05/9.01 * is incompatible with this list (optional) 16.05/9.01 * @throws NullPointerException if the specified element is null and this 16.05/9.01 * list does not permit null elements (optional) 16.05/9.01 */ 16.05/9.01 int lastIndexOf(Object o); 16.05/9.01 16.05/9.01 16.05/9.01 // List Iterators 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns a list iterator over the elements in this list (in proper 16.05/9.01 * sequence). 16.05/9.01 * 16.05/9.01 * @return a list iterator over the elements in this list (in proper 16.05/9.01 * sequence) 16.05/9.01 */ 16.05/9.01 ListIterator listIterator(); 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns a list iterator over the elements in this list (in proper 16.05/9.01 * sequence), starting at the specified position in the list. 16.05/9.01 * The specified index indicates the first element that would be 16.05/9.01 * returned by an initial call to {@link ListIterator#next next}. 16.05/9.01 * An initial call to {@link ListIterator#previous previous} would 16.05/9.01 * return the element with the specified index minus one. 16.05/9.01 * 16.05/9.01 * @param index index of the first element to be returned from the 16.05/9.01 * list iterator (by a call to {@link ListIterator#next next}) 16.05/9.01 * @return a list iterator over the elements in this list (in proper 16.05/9.01 * sequence), starting at the specified position in the list 16.05/9.01 * @throws IndexOutOfBoundsException if the index is out of range 16.05/9.01 * ({@code index < 0 || index > size()}) 16.05/9.01 */ 16.05/9.01 ListIterator listIterator(int index); 16.05/9.01 16.05/9.01 // View 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Returns a view of the portion of this list between the specified 16.05/9.01 * fromIndex, inclusive, and toIndex, exclusive. (If 16.05/9.01 * fromIndex and toIndex are equal, the returned list is 16.05/9.01 * empty.) The returned list is backed by this list, so non-structural 16.05/9.01 * changes in the returned list are reflected in this list, and vice-versa. 16.05/9.01 * The returned list supports all of the optional list operations supported 16.05/9.01 * by this list.

16.05/9.01 * 16.05/9.01 * This method eliminates the need for explicit range operations (of 16.05/9.01 * the sort that commonly exist for arrays). Any operation that expects 16.05/9.01 * a list can be used as a range operation by passing a subList view 16.05/9.01 * instead of a whole list. For example, the following idiom 16.05/9.01 * removes a range of elements from a list: 16.05/9.01 *

16.05/9.01	     *      list.subList(from, to).clear();
16.05/9.01	     * 
16.05/9.01 * Similar idioms may be constructed for indexOf and 16.05/9.01 * lastIndexOf, and all of the algorithms in the 16.05/9.01 * Collections class can be applied to a subList.

16.05/9.01 * 16.05/9.01 * The semantics of the list returned by this method become undefined if 16.05/9.01 * the backing list (i.e., this list) is structurally modified in 16.05/9.01 * any way other than via the returned list. (Structural modifications are 16.05/9.01 * those that change the size of this list, or otherwise perturb it in such 16.05/9.01 * a fashion that iterations in progress may yield incorrect results.) 16.05/9.01 * 16.05/9.01 * @param fromIndex low endpoint (inclusive) of the subList 16.05/9.01 * @param toIndex high endpoint (exclusive) of the subList 16.05/9.01 * @return a view of the specified range within this list 16.05/9.01 * @throws IndexOutOfBoundsException for an illegal endpoint index value 16.05/9.01 * (fromIndex < 0 || toIndex > size || 16.05/9.01 * fromIndex > toIndex) 16.05/9.01 */ 16.05/9.01 List subList(int fromIndex, int toIndex); 16.05/9.01 } 16.05/9.01 16.05/9.01 16.05/9.01 /* 16.05/9.01 * Copyright 1994-1998 Sun Microsystems, Inc. All Rights Reserved. 16.05/9.01 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/9.01 * 16.05/9.01 * This code is free software; you can redistribute it and/or modify it 16.05/9.01 * under the terms of the GNU General Public License version 2 only, as 16.05/9.01 * published by the Free Software Foundation. Sun designates this 16.05/9.01 * particular file as subject to the "Classpath" exception as provided 16.05/9.01 * by Sun in the LICENSE file that accompanied this code. 16.05/9.01 * 16.05/9.01 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/9.01 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/9.01 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/9.01 * version 2 for more details (a copy is included in the LICENSE file that 16.05/9.01 * accompanied this code). 16.05/9.01 * 16.05/9.01 * You should have received a copy of the GNU General Public License version 16.05/9.01 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/9.01 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/9.01 * 16.05/9.01 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/9.01 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/9.01 * have any questions. 16.05/9.01 */ 16.05/9.01 16.05/9.01 package javaUtilEx; 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Thrown by the nextElement method of an 16.05/9.01 * Enumeration to indicate that there are no more 16.05/9.01 * elements in the enumeration. 16.05/9.01 * 16.05/9.01 * @author unascribed 16.05/9.01 * @see java.util.Enumeration 16.05/9.01 * @see java.util.Enumeration#nextElement() 16.05/9.01 * @since JDK1.0 16.05/9.01 */ 16.05/9.01 public 16.05/9.01 class NoSuchElementException extends RuntimeException { 16.05/9.01 /** 16.05/9.01 * Constructs a NoSuchElementException with null 16.05/9.01 * as its error message string. 16.05/9.01 */ 16.05/9.01 public NoSuchElementException() { 16.05/9.01 super(); 16.05/9.01 } 16.05/9.01 16.05/9.01 /** 16.05/9.01 * Constructs a NoSuchElementException, saving a reference 16.05/9.01 * to the error message string s for later retrieval by the 16.05/9.01 * getMessage method. 16.05/9.01 * 16.05/9.01 * @param s the detail message. 16.05/9.01 */ 16.05/9.01 public NoSuchElementException(String s) { 16.05/9.01 super(s); 16.05/9.01 } 16.05/9.01 } 16.05/9.01 16.05/9.01 16.05/9.01 /* 16.05/9.01 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/9.01 * 16.05/9.01 * This code is free software; you can redistribute it and/or modify it 16.05/9.01 * under the terms of the GNU General Public License version 2 only, as 16.05/9.01 * published by the Free Software Foundation. Sun designates this 16.05/9.01 * particular file as subject to the "Classpath" exception as provided 16.05/9.01 * by Sun in the LICENSE file that accompanied this code. 16.05/9.01 * 16.05/9.01 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/9.01 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/9.01 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/9.01 * version 2 for more details (a copy is included in the LICENSE file that 16.05/9.01 * accompanied this code). 16.05/9.01 * 16.05/9.01 * You should have received a copy of the GNU General Public License version 16.05/9.01 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/9.01 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/9.01 * 16.05/9.01 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/9.01 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/9.01 * have any questions. 16.05/9.01 */ 16.05/9.01 16.05/9.01 /* 16.05/9.01 * This file is available under and governed by the GNU General Public 16.05/9.01 * License version 2 only, as published by the Free Software Foundation. 16.05/9.01 * However, the following notice accompanied the original version of this 16.05/9.01 * file: 16.05/9.01 * 16.05/9.01 * Written by Doug Lea with assistance from members of JCP JSR-166 16.05/9.01 * Expert Group and released to the public domain, as explained at 16.05/9.01 * http://creativecommons.org/licenses/publicdomain 16.05/9.01 */ 16.05/9.01 16.05/9.01 package javaUtilEx; 16.05/9.01 16.05/9.01 /** 16.05/9.01 * A collection designed for holding elements prior to processing. 16.05/9.01 * Besides basic {@link java.util.Collection Collection} operations, 16.05/9.01 * queues provide additional insertion, extraction, and inspection 16.05/9.01 * operations. Each of these methods exists in two forms: one throws 16.05/9.01 * an exception if the operation fails, the other returns a special 16.05/9.01 * value (either null or false, depending on the 16.05/9.01 * operation). The latter form of the insert operation is designed 16.05/9.01 * specifically for use with capacity-restricted Queue 16.05/9.01 * implementations; in most implementations, insert operations cannot 16.05/9.01 * fail. 16.05/9.01 * 16.05/9.01 *

16.05/9.01 * 16.05/9.01 * 16.05/9.01 * 16.05/9.01 * 16.05/9.01 * 16.05/9.01 * 16.05/9.01 * 16.05/9.01 * 16.05/9.01 * 16.05/9.01 * 16.05/9.01 * 16.05/9.01 * 16.05/9.01 * 16.05/9.01 * 16.05/9.01 * 16.05/9.01 * 16.05/9.01 * 16.05/9.01 * 16.05/9.01 * 16.05/9.01 * 16.05/9.01 * 16.05/9.01 *
Throws exceptionReturns special value
Insert{@link #add add(e)}{@link #offer offer(e)}
Remove{@link #remove remove()}{@link #poll poll()}
Examine{@link #element element()}{@link #peek peek()}
16.05/9.01 * 16.05/9.01 *

Queues typically, but do not necessarily, order elements in a 16.05/9.01 * FIFO (first-in-first-out) manner. Among the exceptions are 16.05/9.02 * priority queues, which order elements according to a supplied 16.05/9.02 * comparator, or the elements' natural ordering, and LIFO queues (or 16.05/9.02 * stacks) which order the elements LIFO (last-in-first-out). 16.05/9.02 * Whatever the ordering used, the head of the queue is that 16.05/9.02 * element which would be removed by a call to {@link #remove() } or 16.05/9.02 * {@link #poll()}. In a FIFO queue, all new elements are inserted at 16.05/9.02 * the tail of the queue. Other kinds of queues may use 16.05/9.02 * different placement rules. Every Queue implementation 16.05/9.02 * must specify its ordering properties. 16.05/9.02 * 16.05/9.02 *

The {@link #offer offer} method inserts an element if possible, 16.05/9.02 * otherwise returning false. This differs from the {@link 16.05/9.02 * java.util.Collection#add Collection.add} method, which can fail to 16.05/9.02 * add an element only by throwing an unchecked exception. The 16.05/9.02 * offer method is designed for use when failure is a normal, 16.05/9.02 * rather than exceptional occurrence, for example, in fixed-capacity 16.05/9.02 * (or "bounded") queues. 16.05/9.02 * 16.05/9.02 *

The {@link #remove()} and {@link #poll()} methods remove and 16.05/9.02 * return the head of the queue. 16.05/9.02 * Exactly which element is removed from the queue is a 16.05/9.02 * function of the queue's ordering policy, which differs from 16.05/9.02 * implementation to implementation. The remove() and 16.05/9.02 * poll() methods differ only in their behavior when the 16.05/9.02 * queue is empty: the remove() method throws an exception, 16.05/9.02 * while the poll() method returns null. 16.05/9.02 * 16.05/9.02 *

The {@link #element()} and {@link #peek()} methods return, but do 16.05/9.02 * not remove, the head of the queue. 16.05/9.02 * 16.05/9.02 *

The Queue interface does not define the blocking queue 16.05/9.02 * methods, which are common in concurrent programming. These methods, 16.05/9.02 * which wait for elements to appear or for space to become available, are 16.05/9.02 * defined in the {@link java.util.concurrent.BlockingQueue} interface, which 16.05/9.02 * extends this interface. 16.05/9.02 * 16.05/9.02 *

Queue implementations generally do not allow insertion 16.05/9.02 * of null elements, although some implementations, such as 16.05/9.02 * {@link LinkedList}, do not prohibit insertion of null. 16.05/9.02 * Even in the implementations that permit it, null should 16.05/9.02 * not be inserted into a Queue, as null is also 16.05/9.02 * used as a special return value by the poll method to 16.05/9.02 * indicate that the queue contains no elements. 16.05/9.02 * 16.05/9.02 *

Queue implementations generally do not define 16.05/9.02 * element-based versions of methods equals and 16.05/9.02 * hashCode but instead inherit the identity based versions 16.05/9.02 * from class Object, because element-based equality is not 16.05/9.02 * always well-defined for queues with the same elements but different 16.05/9.02 * ordering properties. 16.05/9.02 * 16.05/9.02 * 16.05/9.02 *

This interface is a member of the 16.05/9.02 * 16.05/9.02 * Java Collections Framework. 16.05/9.02 * 16.05/9.02 * @see java.util.Collection 16.05/9.02 * @see LinkedList 16.05/9.02 * @see PriorityQueue 16.05/9.02 * @see java.util.concurrent.LinkedBlockingQueue 16.05/9.02 * @see java.util.concurrent.BlockingQueue 16.05/9.02 * @see java.util.concurrent.ArrayBlockingQueue 16.05/9.02 * @see java.util.concurrent.LinkedBlockingQueue 16.05/9.02 * @see java.util.concurrent.PriorityBlockingQueue 16.05/9.02 * @since 1.5 16.05/9.02 * @author Doug Lea 16.05/9.02 * @param the type of elements held in this collection 16.05/9.02 */ 16.05/9.02 public interface Queue extends Collection { 16.05/9.02 /** 16.05/9.02 * Inserts the specified element into this queue if it is possible to do so 16.05/9.02 * immediately without violating capacity restrictions, returning 16.05/9.02 * true upon success and throwing an IllegalStateException 16.05/9.02 * if no space is currently available. 16.05/9.02 * 16.05/9.02 * @param e the element to add 16.05/9.02 * @return true (as specified by {@link Collection#add}) 16.05/9.02 * @throws IllegalStateException if the element cannot be added at this 16.05/9.02 * time due to capacity restrictions 16.05/9.02 * @throws ClassCastException if the class of the specified element 16.05/9.02 * prevents it from being added to this queue 16.05/9.02 * @throws NullPointerException if the specified element is null and 16.05/9.02 * this queue does not permit null elements 16.05/9.02 * @throws IllegalArgumentException if some property of this element 16.05/9.02 * prevents it from being added to this queue 16.05/9.02 */ 16.05/9.02 boolean add(E e); 16.05/9.02 16.05/9.02 /** 16.05/9.02 * Inserts the specified element into this queue if it is possible to do 16.05/9.02 * so immediately without violating capacity restrictions. 16.05/9.02 * When using a capacity-restricted queue, this method is generally 16.05/9.02 * preferable to {@link #add}, which can fail to insert an element only 16.05/9.02 * by throwing an exception. 16.05/9.02 * 16.05/9.02 * @param e the element to add 16.05/9.02 * @return true if the element was added to this queue, else 16.05/9.02 * false 16.05/9.02 * @throws ClassCastException if the class of the specified element 16.05/9.02 * prevents it from being added to this queue 16.05/9.02 * @throws NullPointerException if the specified element is null and 16.05/9.02 * this queue does not permit null elements 16.05/9.02 * @throws IllegalArgumentException if some property of this element 16.05/9.02 * prevents it from being added to this queue 16.05/9.02 */ 16.05/9.02 boolean offer(E e); 16.05/9.02 16.05/9.02 /** 16.05/9.02 * Retrieves and removes the head of this queue. This method differs 16.05/9.02 * from {@link #poll poll} only in that it throws an exception if this 16.05/9.02 * queue is empty. 16.05/9.02 * 16.05/9.02 * @return the head of this queue 16.05/9.02 * @throws NoSuchElementException if this queue is empty 16.05/9.02 */ 16.05/9.02 E remove(); 16.05/9.02 16.05/9.02 /** 16.05/9.02 * Retrieves and removes the head of this queue, 16.05/9.02 * or returns null if this queue is empty. 16.05/9.02 * 16.05/9.02 * @return the head of this queue, or null if this queue is empty 16.05/9.02 */ 16.05/9.02 E poll(); 16.05/9.02 16.05/9.02 /** 16.05/9.02 * Retrieves, but does not remove, the head of this queue. This method 16.05/9.02 * differs from {@link #peek peek} only in that it throws an exception 16.05/9.02 * if this queue is empty. 16.05/9.02 * 16.05/9.02 * @return the head of this queue 16.05/9.02 * @throws NoSuchElementException if this queue is empty 16.05/9.02 */ 16.05/9.02 E element(); 16.05/9.02 16.05/9.02 /** 16.05/9.02 * Retrieves, but does not remove, the head of this queue, 16.05/9.02 * or returns null if this queue is empty. 16.05/9.02 * 16.05/9.02 * @return the head of this queue, or null if this queue is empty 16.05/9.02 */ 16.05/9.02 E peek(); 16.05/9.02 } 16.05/9.02 16.05/9.02 16.05/9.02 /* 16.05/9.02 * Copyright 2000-2006 Sun Microsystems, Inc. All Rights Reserved. 16.05/9.02 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/9.02 * 16.05/9.02 * This code is free software; you can redistribute it and/or modify it 16.05/9.02 * under the terms of the GNU General Public License version 2 only, as 16.05/9.02 * published by the Free Software Foundation. Sun designates this 16.05/9.02 * particular file as subject to the "Classpath" exception as provided 16.05/9.02 * by Sun in the LICENSE file that accompanied this code. 16.05/9.02 * 16.05/9.02 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/9.02 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/9.02 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/9.02 * version 2 for more details (a copy is included in the LICENSE file that 16.05/9.02 * accompanied this code). 16.05/9.02 * 16.05/9.02 * You should have received a copy of the GNU General Public License version 16.05/9.02 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/9.02 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/9.02 * 16.05/9.02 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/9.02 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/9.02 * have any questions. 16.05/9.02 */ 16.05/9.02 16.05/9.02 package javaUtilEx; 16.05/9.02 16.05/9.02 /** 16.05/9.02 * Marker interface used by List implementations to indicate that 16.05/9.02 * they support fast (generally constant time) random access. The primary 16.05/9.02 * purpose of this interface is to allow generic algorithms to alter their 16.05/9.02 * behavior to provide good performance when applied to either random or 16.05/9.02 * sequential access lists. 16.05/9.02 * 16.05/9.02 *

The best algorithms for manipulating random access lists (such as 16.05/9.02 * ArrayList) can produce quadratic behavior when applied to 16.05/9.02 * sequential access lists (such as LinkedList). Generic list 16.05/9.02 * algorithms are encouraged to check whether the given list is an 16.05/9.02 * instanceof this interface before applying an algorithm that would 16.05/9.02 * provide poor performance if it were applied to a sequential access list, 16.05/9.02 * and to alter their behavior if necessary to guarantee acceptable 16.05/9.02 * performance. 16.05/9.02 * 16.05/9.02 *

It is recognized that the distinction between random and sequential 16.05/9.02 * access is often fuzzy. For example, some List implementations 16.05/9.02 * provide asymptotically linear access times if they get huge, but constant 16.05/9.02 * access times in practice. Such a List implementation 16.05/9.02 * should generally implement this interface. As a rule of thumb, a 16.05/9.02 * List implementation should implement this interface if, 16.05/9.02 * for typical instances of the class, this loop: 16.05/9.02 *

16.05/9.02	 *     for (int i=0, n=list.size(); i < n; i++)
16.05/9.02	 *         list.get(i);
16.05/9.02	 * 
16.05/9.02 * runs faster than this loop: 16.05/9.02 *
16.05/9.02	 *     for (Iterator i=list.iterator(); i.hasNext(); )
16.05/9.02	 *         i.next();
16.05/9.02	 * 
16.05/9.02 * 16.05/9.02 *

This interface is a member of the 16.05/9.02 * 16.05/9.02 * Java Collections Framework. 16.05/9.02 * 16.05/9.02 * @since 1.4 16.05/9.02 */ 16.05/9.02 public interface RandomAccess { 16.05/9.02 } 16.05/9.02 16.05/9.02 16.05/9.02 package javaUtilEx; 16.05/9.02 16.05/9.02 public class Random { 16.05/9.02 static String[] args; 16.05/9.02 static int index = 0; 16.05/9.02 16.05/9.02 public static int random() { 16.05/9.02 String string = args[index]; 16.05/9.02 index++; 16.05/9.02 return string.length(); 16.05/9.02 } 16.05/9.02 } 16.05/9.02 16.05/9.02 16.05/9.02 /* 16.05/9.02 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 16.05/9.02 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 16.05/9.02 * 16.05/9.02 * This code is free software; you can redistribute it and/or modify it 16.05/9.02 * under the terms of the GNU General Public License version 2 only, as 16.05/9.02 * published by the Free Software Foundation. Sun designates this 16.05/9.02 * particular file as subject to the "Classpath" exception as provided 16.05/9.02 * by Sun in the LICENSE file that accompanied this code. 16.05/9.02 * 16.05/9.02 * This code is distributed in the hope that it will be useful, but WITHOUT 16.05/9.02 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16.05/9.02 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16.05/9.02 * version 2 for more details (a copy is included in the LICENSE file that 16.05/9.02 * accompanied this code). 16.05/9.02 * 16.05/9.02 * You should have received a copy of the GNU General Public License version 16.05/9.02 * 2 along with this work; if not, write to the Free Software Foundation, 16.05/9.02 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16.05/9.02 * 16.05/9.02 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 16.05/9.02 * CA 95054 USA or visit www.sun.com if you need additional information or 16.05/9.02 * have any questions. 16.05/9.02 */ 16.05/9.02 16.05/9.02 package javaUtilEx; 16.05/9.02 16.05/9.02 /** 16.05/9.02 * Thrown to indicate that the requested operation is not supported.

16.05/9.02 * 16.05/9.02 * This class is a member of the 16.05/9.02 * 16.05/9.02 * Java Collections Framework. 16.05/9.02 * 16.05/9.02 * @author Josh Bloch 16.05/9.02 * @since 1.2 16.05/9.02 */ 16.05/9.02 public class UnsupportedOperationException extends RuntimeException { 16.05/9.02 /** 16.05/9.02 * Constructs an UnsupportedOperationException with no detail message. 16.05/9.02 */ 16.05/9.02 public UnsupportedOperationException() { 16.05/9.02 } 16.05/9.02 16.05/9.02 /** 16.05/9.02 * Constructs an UnsupportedOperationException with the specified 16.05/9.02 * detail message. 16.05/9.02 * 16.05/9.02 * @param message the detail message 16.05/9.02 */ 16.05/9.02 public UnsupportedOperationException(String message) { 16.05/9.02 super(message); 16.05/9.02 } 16.05/9.02 16.05/9.02 /** 16.05/9.02 * Constructs a new exception with the specified detail message and 16.05/9.02 * cause. 16.05/9.02 * 16.05/9.02 *

Note that the detail message associated with cause is 16.05/9.02 * not automatically incorporated in this exception's detail 16.05/9.02 * message. 16.05/9.02 * 16.05/9.02 * @param message the detail message (which is saved for later retrieval 16.05/9.02 * by the {@link Throwable#getMessage()} method). 16.05/9.02 * @param cause the cause (which is saved for later retrieval by the 16.05/9.02 * {@link Throwable#getCause()} method). (A null value 16.05/9.02 * is permitted, and indicates that the cause is nonexistent or 16.05/9.02 * unknown.) 16.05/9.02 * @since 1.5 16.05/9.02 */ 16.05/9.02 public UnsupportedOperationException(String message, Throwable cause) { 16.05/9.02 super(message, cause); 16.05/9.02 } 16.05/9.02 16.05/9.02 /** 16.05/9.02 * Constructs a new exception with the specified cause and a detail 16.05/9.02 * message of (cause==null ? null : cause.toString()) (which 16.05/9.02 * typically contains the class and detail message of cause). 16.05/9.02 * This constructor is useful for exceptions that are little more than 16.05/9.02 * wrappers for other throwables (for example, {@link 16.05/9.02 * java.security.PrivilegedActionException}). 16.05/9.02 * 16.05/9.02 * @param cause the cause (which is saved for later retrieval by the 16.05/9.02 * {@link Throwable#getCause()} method). (A null value is 16.05/9.02 * permitted, and indicates that the cause is nonexistent or 16.05/9.02 * unknown.) 16.05/9.02 * @since 1.5 16.05/9.02 */ 16.05/9.02 public UnsupportedOperationException(Throwable cause) { 16.05/9.02 super(cause); 16.05/9.02 } 16.05/9.02 16.05/9.02 static final long serialVersionUID = -1242599979055084673L; 16.05/9.02 } 16.05/9.02 16.05/9.02 16.05/9.02 16.05/9.02 ---------------------------------------- 16.05/9.02 16.05/9.02 (3) JBCToGraph (EQUIVALENT) 16.05/9.02 Constructed TerminationGraph. 16.05/9.02 ---------------------------------------- 16.05/9.02 16.05/9.02 (4) 16.05/9.02 Obligation: 16.05/9.02 Termination Graph based on JBC Program: 16.05/9.02 javaUtilEx.juLinkedListCreateGetFirst.main([Ljava/lang/String;)V: Graph of 193 nodes with 0 SCCs. 16.05/9.02 16.05/9.02 16.05/9.02 16.05/9.02 javaUtilEx.juLinkedListCreateGetFirst.createList(I)LjavaUtilEx/LinkedList;: Graph of 250 nodes with 1 SCC. 16.05/9.02 16.05/9.02 16.05/9.02 16.05/9.02 16.05/9.02 16.05/9.02 ---------------------------------------- 16.05/9.02 16.05/9.02 (5) TerminationGraphToSCCProof (SOUND) 16.05/9.02 Splitted TerminationGraph to 1 SCCs. 16.05/9.02 ---------------------------------------- 16.05/9.02 16.05/9.02 (6) 16.05/9.02 Obligation: 16.05/9.02 SCC of termination graph based on JBC Program. 16.05/9.02 SCC contains nodes from the following methods: javaUtilEx.juLinkedListCreateGetFirst.createList(I)LjavaUtilEx/LinkedList; 16.05/9.02 SCC calls the following helper methods: 16.05/9.02 Performed SCC analyses: 16.05/9.02 *Used field analysis yielded the following read fields: 16.05/9.02 *java.lang.String: [count] 16.05/9.02 *javaUtilEx.LinkedList: [header, size] 16.05/9.02 *javaUtilEx.LinkedList$Entry: [previous, next] 16.05/9.02 *javaUtilEx.AbstractList: [modCount] 16.05/9.02 *Marker field analysis yielded the following relations that could be markers: 16.05/9.02 16.05/9.02 ---------------------------------------- 16.05/9.02 16.05/9.02 (7) SCCToIRSProof (SOUND) 16.05/9.02 Transformed FIGraph SCCs to intTRSs. Log: 16.05/9.02 Generated rules. Obtained 118 IRulesP rules: 16.05/9.02 f3950_0_createList_LE(EOS(STATIC_3950(java.lang.Object(o1901sub), i945)), i960, i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3952_0_createList_LE(EOS(STATIC_3952(java.lang.Object(o1901sub), i945)), i960, i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f3952_0_createList_LE(EOS(STATIC_3952(java.lang.Object(o1901sub), i945)), i960, i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3954_0_createList_Load(EOS(STATIC_3954(java.lang.Object(o1901sub), i945)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: i960 > 0 16.05/9.02 f3954_0_createList_Load(EOS(STATIC_3954(java.lang.Object(o1901sub), i945)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3956_0_createList_New(EOS(STATIC_3956(java.lang.Object(o1901sub), i945)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f3956_0_createList_New(EOS(STATIC_3956(java.lang.Object(o1901sub), i945)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3958_0_createList_Duplicate(EOS(STATIC_3958(java.lang.Object(o1901sub), i945)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f3958_0_createList_Duplicate(EOS(STATIC_3958(java.lang.Object(o1901sub), i945)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3959_0_createList_InvokeMethod(EOS(STATIC_3959(java.lang.Object(o1901sub), i945)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f3959_0_createList_InvokeMethod(EOS(STATIC_3959(java.lang.Object(o1901sub), i945)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3961_0_random_FieldAccess(EOS(STATIC_3961(java.lang.Object(o1901sub), i945)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f3961_0_random_FieldAccess(EOS(STATIC_3961(java.lang.Object(o1901sub), i945)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3962_0_random_FieldAccess(EOS(STATIC_3962(java.lang.Object(o1901sub), i945)), i960, java.lang.Object(o1901sub), o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f3962_0_random_FieldAccess(EOS(STATIC_3962(java.lang.Object(o1901sub), i945)), i960, java.lang.Object(o1901sub), o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3963_0_random_ArrayAccess(EOS(STATIC_3963(java.lang.Object(o1901sub), i945)), i960, java.lang.Object(o1901sub), i945, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f3963_0_random_ArrayAccess(EOS(STATIC_3963(java.lang.Object(ARRAY(i971)), i945)), i960, java.lang.Object(ARRAY(i971)), i945, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3964_0_random_ArrayAccess(EOS(STATIC_3964(java.lang.Object(ARRAY(i971)), i945)), i960, java.lang.Object(ARRAY(i971)), i945, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: i971 >= 0 16.05/9.02 f3964_0_random_ArrayAccess(EOS(STATIC_3964(java.lang.Object(ARRAY(i971)), i973)), i960, java.lang.Object(ARRAY(i971)), i973, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3966_0_random_ArrayAccess(EOS(STATIC_3966(java.lang.Object(ARRAY(i971)), i973)), i960, java.lang.Object(ARRAY(i971)), i973, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f3966_0_random_ArrayAccess(EOS(STATIC_3966(java.lang.Object(ARRAY(i971)), i973)), i960, java.lang.Object(ARRAY(i971)), i973, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3968_0_random_ArrayAccess(EOS(STATIC_3968(java.lang.Object(ARRAY(i971)), i973)), i960, java.lang.Object(ARRAY(i971)), i973, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f3968_0_random_ArrayAccess(EOS(STATIC_3968(java.lang.Object(ARRAY(i971)), i973)), i960, java.lang.Object(ARRAY(i971)), i973, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3970_0_random_Store(EOS(STATIC_3970(java.lang.Object(ARRAY(i971)), i973)), i960, o1933, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: i973 < i971 16.05/9.02 f3970_0_random_Store(EOS(STATIC_3970(java.lang.Object(ARRAY(i971)), i973)), i960, o1933, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3973_0_random_FieldAccess(EOS(STATIC_3973(java.lang.Object(ARRAY(i971)), i973)), i960, o1933, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f3973_0_random_FieldAccess(EOS(STATIC_3973(java.lang.Object(ARRAY(i971)), i973)), i960, o1933, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3975_0_random_ConstantStackPush(EOS(STATIC_3975(java.lang.Object(ARRAY(i971)), i973)), i960, o1933, i973, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f3975_0_random_ConstantStackPush(EOS(STATIC_3975(java.lang.Object(ARRAY(i971)), i973)), i960, o1933, i973, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3977_0_random_IntArithmetic(EOS(STATIC_3977(java.lang.Object(ARRAY(i971)), i973)), i960, o1933, i973, 1, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f3977_0_random_IntArithmetic(EOS(STATIC_3977(java.lang.Object(ARRAY(i971)), i973)), i960, o1933, i973, matching1, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3980_0_random_FieldAccess(EOS(STATIC_3980(java.lang.Object(ARRAY(i971)), i973)), i960, o1933, i973 + 1, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: i973 >= 0 && matching1 = 1 16.05/9.02 f3980_0_random_FieldAccess(EOS(STATIC_3980(java.lang.Object(ARRAY(i971)), i973)), i960, o1933, i974, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3982_0_random_Load(EOS(STATIC_3982(java.lang.Object(ARRAY(i971)), i974)), i960, o1933, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f3982_0_random_Load(EOS(STATIC_3982(java.lang.Object(ARRAY(i971)), i974)), i960, o1933, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3984_0_random_InvokeMethod(EOS(STATIC_3984(java.lang.Object(ARRAY(i971)), i974)), i960, o1933, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f3984_0_random_InvokeMethod(EOS(STATIC_3984(java.lang.Object(ARRAY(i971)), i974)), i960, java.lang.Object(o1935sub), o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3987_0_random_InvokeMethod(EOS(STATIC_3987(java.lang.Object(ARRAY(i971)), i974)), i960, java.lang.Object(o1935sub), o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f3987_0_random_InvokeMethod(EOS(STATIC_3987(java.lang.Object(ARRAY(i971)), i974)), i960, java.lang.Object(o1936sub), o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3990_0_random_InvokeMethod(EOS(STATIC_3990(java.lang.Object(ARRAY(i971)), i974)), i960, java.lang.Object(o1936sub), o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f3990_0_random_InvokeMethod(EOS(STATIC_3990(java.lang.Object(ARRAY(i971)), i974)), i960, java.lang.Object(o1936sub), o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3993_0_length_Load(EOS(STATIC_3993(java.lang.Object(ARRAY(i971)), i974)), i960, java.lang.Object(o1936sub), o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f3993_0_length_Load(EOS(STATIC_3993(java.lang.Object(ARRAY(i971)), i974)), i960, java.lang.Object(o1936sub), o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3998_0_length_FieldAccess(EOS(STATIC_3998(java.lang.Object(ARRAY(i971)), i974)), i960, java.lang.Object(o1936sub), o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f3998_0_length_FieldAccess(EOS(STATIC_3998(java.lang.Object(ARRAY(i971)), i974)), i960, java.lang.Object(java.lang.String(EOC, i978)), o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4001_0_length_FieldAccess(EOS(STATIC_4001(java.lang.Object(ARRAY(i971)), i974)), i960, java.lang.Object(java.lang.String(EOC, i978)), o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4001_0_length_FieldAccess(EOS(STATIC_4001(java.lang.Object(ARRAY(i971)), i974)), i960, java.lang.Object(java.lang.String(EOC, i978)), o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4004_0_length_Return(EOS(STATIC_4004(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4004_0_length_Return(EOS(STATIC_4004(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4007_0_random_Return(EOS(STATIC_4007(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4007_0_random_Return(EOS(STATIC_4007(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4011_0_createList_InvokeMethod(EOS(STATIC_4011(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4011_0_createList_InvokeMethod(EOS(STATIC_4011(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4014_0__init__Load(EOS(STATIC_4014(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4014_0__init__Load(EOS(STATIC_4014(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4021_0__init__InvokeMethod(EOS(STATIC_4021(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4021_0__init__InvokeMethod(EOS(STATIC_4021(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4024_0__init__Load(EOS(STATIC_4024(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4024_0__init__Load(EOS(STATIC_4024(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4028_0__init__Load(EOS(STATIC_4028(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4028_0__init__Load(EOS(STATIC_4028(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4032_0__init__FieldAccess(EOS(STATIC_4032(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4032_0__init__FieldAccess(EOS(STATIC_4032(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4036_0__init__Return(EOS(STATIC_4036(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4036_0__init__Return(EOS(STATIC_4036(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4040_0_createList_InvokeMethod(EOS(STATIC_4040(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4040_0_createList_InvokeMethod(EOS(STATIC_4040(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4044_0_addLast_Load(EOS(STATIC_4044(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4044_0_addLast_Load(EOS(STATIC_4044(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4051_0_addLast_Load(EOS(STATIC_4051(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4051_0_addLast_Load(EOS(STATIC_4051(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4055_0_addLast_Load(EOS(STATIC_4055(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4055_0_addLast_Load(EOS(STATIC_4055(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4058_0_addLast_FieldAccess(EOS(STATIC_4058(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4058_0_addLast_FieldAccess(EOS(STATIC_4058(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4062_0_addLast_InvokeMethod(EOS(STATIC_4062(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4062_0_addLast_InvokeMethod(EOS(STATIC_4062(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4064_0_addBefore_New(EOS(STATIC_4064(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4064_0_addBefore_New(EOS(STATIC_4064(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4068_0_addBefore_Duplicate(EOS(STATIC_4068(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4068_0_addBefore_Duplicate(EOS(STATIC_4068(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4070_0_addBefore_Load(EOS(STATIC_4070(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4070_0_addBefore_Load(EOS(STATIC_4070(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4071_0_addBefore_Load(EOS(STATIC_4071(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4071_0_addBefore_Load(EOS(STATIC_4071(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4073_0_addBefore_Load(EOS(STATIC_4073(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4073_0_addBefore_Load(EOS(STATIC_4073(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4074_0_addBefore_FieldAccess(EOS(STATIC_4074(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4074_0_addBefore_FieldAccess(EOS(STATIC_4074(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4075_0_addBefore_FieldAccess(EOS(STATIC_4075(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: o1906[LinkedList$Entry.next]o1906 > 0 && o1906[LinkedList$Entry.next]o1904 > 0 && o1906[LinkedList$Entry.previous]o1904 > 0 && o1906[LinkedList$Entry.previous]o1906 > 0 16.05/9.02 f4075_0_addBefore_FieldAccess(EOS(STATIC_4075(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4077_0_addBefore_FieldAccess(EOS(STATIC_4077(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: o1905[LinkedList$Entry.previous]o1905 > 0 && o1905[LinkedList$Entry.previous]o1904 > 0 16.05/9.02 f4077_0_addBefore_FieldAccess(EOS(STATIC_4077(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4079_0_addBefore_FieldAccess(EOS(STATIC_4079(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: o1907[LinkedList$Entry.previous]o1904 > 0 && o1907[LinkedList$Entry.previous]o1907 > 0 16.05/9.02 f4079_0_addBefore_FieldAccess(EOS(STATIC_4079(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4081_0_addBefore_InvokeMethod(EOS(STATIC_4081(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4081_0_addBefore_InvokeMethod(EOS(STATIC_4081(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4082_0__init__Load(EOS(STATIC_4082(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4082_0__init__Load(EOS(STATIC_4082(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4083_0__init__InvokeMethod(EOS(STATIC_4083(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4083_0__init__InvokeMethod(EOS(STATIC_4083(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4084_0__init__Load(EOS(STATIC_4084(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4084_0__init__Load(EOS(STATIC_4084(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4085_0__init__Load(EOS(STATIC_4085(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4085_0__init__Load(EOS(STATIC_4085(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4086_0__init__FieldAccess(EOS(STATIC_4086(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4086_0__init__FieldAccess(EOS(STATIC_4086(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4087_0__init__Load(EOS(STATIC_4087(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4087_0__init__Load(EOS(STATIC_4087(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4088_0__init__Load(EOS(STATIC_4088(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4088_0__init__Load(EOS(STATIC_4088(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4089_0__init__FieldAccess(EOS(STATIC_4089(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4089_0__init__FieldAccess(EOS(STATIC_4089(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4090_0__init__Load(EOS(STATIC_4090(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4090_0__init__Load(EOS(STATIC_4090(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4091_0__init__Load(EOS(STATIC_4091(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4091_0__init__Load(EOS(STATIC_4091(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4092_0__init__FieldAccess(EOS(STATIC_4092(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4092_0__init__FieldAccess(EOS(STATIC_4092(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4093_0__init__Return(EOS(STATIC_4093(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4093_0__init__Return(EOS(STATIC_4093(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4094_0_addBefore_Store(EOS(STATIC_4094(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4094_0_addBefore_Store(EOS(STATIC_4094(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4095_0_addBefore_Load(EOS(STATIC_4095(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4095_0_addBefore_Load(EOS(STATIC_4095(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4096_0_addBefore_FieldAccess(EOS(STATIC_4096(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4096_0_addBefore_FieldAccess(EOS(STATIC_4096(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4097_0_addBefore_Load(EOS(STATIC_4097(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4097_0_addBefore_Load(EOS(STATIC_4097(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4098_0_addBefore_FieldAccess(EOS(STATIC_4098(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4098_0_addBefore_FieldAccess(EOS(STATIC_4098(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f4099_0_addBefore_FieldAccess(EOS(STATIC_4099(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: o1906[LinkedList$Entry.next]o1906 > 0 && o1907[LinkedList$Entry.previous]o1906 > 0 && o1906[LinkedList$Entry.previous]o1906 > 0 && o1906[LinkedList$Entry.next]o1907 > 0 && o1906[LinkedList$Entry.previous]o1907 > 0 && o1907[LinkedList$Entry.previous]o1907 > 0 16.05/9.02 f4098_0_addBefore_FieldAccess(EOS(STATIC_4098(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.next]o1905, o1982[LinkedList$Entry.previous]o1905, o1982[LinkedList$Entry.previous]o1905, o1982[LinkedList$Entry.next]o1982, o1982[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.next]o1982, o1982[LinkedList$Entry.previous]o1982, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4100_0_addBefore_FieldAccess(EOS(STATIC_4100(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4099_0_addBefore_FieldAccess(EOS(STATIC_4099(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4101_0_addBefore_FieldAccess(EOS(STATIC_4101(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: o1907[LinkedList$Entry.previous]o1905 > 0 && o1905[LinkedList$Entry.previous]o1905 > 0 && o1905[LinkedList$Entry.previous]o1907 > 0 && o1907[LinkedList$Entry.previous]o1907 > 0 16.05/9.02 f4101_0_addBefore_FieldAccess(EOS(STATIC_4101(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4105_0_addBefore_Load(EOS(STATIC_4105(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4105_0_addBefore_Load(EOS(STATIC_4105(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4107_0_addBefore_FieldAccess(EOS(STATIC_4107(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4107_0_addBefore_FieldAccess(EOS(STATIC_4107(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4109_0_addBefore_Load(EOS(STATIC_4109(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4109_0_addBefore_Load(EOS(STATIC_4109(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4111_0_addBefore_FieldAccess(EOS(STATIC_4111(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4111_0_addBefore_FieldAccess(EOS(STATIC_4111(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4113_0_addBefore_Load(EOS(STATIC_4113(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4113_0_addBefore_Load(EOS(STATIC_4113(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4115_0_addBefore_Duplicate(EOS(STATIC_4115(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4115_0_addBefore_Duplicate(EOS(STATIC_4115(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4117_0_addBefore_FieldAccess(EOS(STATIC_4117(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4117_0_addBefore_FieldAccess(EOS(STATIC_4117(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4119_0_addBefore_ConstantStackPush(EOS(STATIC_4119(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4119_0_addBefore_ConstantStackPush(EOS(STATIC_4119(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4121_0_addBefore_IntArithmetic(EOS(STATIC_4121(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4121_0_addBefore_IntArithmetic(EOS(STATIC_4121(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4123_0_addBefore_FieldAccess(EOS(STATIC_4123(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4123_0_addBefore_FieldAccess(EOS(STATIC_4123(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4125_0_addBefore_Load(EOS(STATIC_4125(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4125_0_addBefore_Load(EOS(STATIC_4125(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4127_0_addBefore_Duplicate(EOS(STATIC_4127(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4127_0_addBefore_Duplicate(EOS(STATIC_4127(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4129_0_addBefore_FieldAccess(EOS(STATIC_4129(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4129_0_addBefore_FieldAccess(EOS(STATIC_4129(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4131_0_addBefore_ConstantStackPush(EOS(STATIC_4131(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4131_0_addBefore_ConstantStackPush(EOS(STATIC_4131(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4133_0_addBefore_IntArithmetic(EOS(STATIC_4133(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4133_0_addBefore_IntArithmetic(EOS(STATIC_4133(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4135_0_addBefore_FieldAccess(EOS(STATIC_4135(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4135_0_addBefore_FieldAccess(EOS(STATIC_4135(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4137_0_addBefore_Load(EOS(STATIC_4137(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4137_0_addBefore_Load(EOS(STATIC_4137(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4139_0_addBefore_Return(EOS(STATIC_4139(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4139_0_addBefore_Return(EOS(STATIC_4139(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4141_0_addLast_StackPop(EOS(STATIC_4141(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4141_0_addLast_StackPop(EOS(STATIC_4141(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4143_0_addLast_Return(EOS(STATIC_4143(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4143_0_addLast_Return(EOS(STATIC_4143(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4145_0_createList_Inc(EOS(STATIC_4145(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4145_0_createList_Inc(EOS(STATIC_4145(java.lang.Object(ARRAY(i971)), i974)), i960, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4147_0_createList_JMP(EOS(STATIC_4147(java.lang.Object(ARRAY(i971)), i974)), i960 + -1, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4147_0_createList_JMP(EOS(STATIC_4147(java.lang.Object(ARRAY(i971)), i974)), i1029, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f4149_0_createList_Load(EOS(STATIC_4149(java.lang.Object(ARRAY(i971)), i974)), i1029, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4149_0_createList_Load(EOS(STATIC_4149(java.lang.Object(ARRAY(i971)), i974)), i1029, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907, o1906[LinkedList$Entry.previous]o1907) -> f3949_0_createList_Load(EOS(STATIC_3949(java.lang.Object(ARRAY(i971)), i974)), i1029, o1906[LinkedList$Entry.next]o1905, o1960[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1960[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1960[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1960, o1906[LinkedList$Entry.previous]o1960, o1905[LinkedList$Entry.previous]o1960, o1960[LinkedList$Entry.previous]o1960) :|: TRUE 16.05/9.02 f3949_0_createList_Load(EOS(STATIC_3949(java.lang.Object(o1901sub), i945)), i947, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) -> f3950_0_createList_LE(EOS(STATIC_3950(java.lang.Object(o1901sub), i945)), i947, i947, o1906[LinkedList$Entry.next]o1905, o1907[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.previous]o1905, o1906[LinkedList$Entry.next]o1906, o1906[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1907[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1906, o1907[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.previous]o1904, o1906[LinkedList$Entry.previous]o1906, o1906[LinkedList$Entry.next]o1907, o1906[LinkedList$Entry.previous]o1907, o1905[LinkedList$Entry.previous]o1907, o1907[LinkedList$Entry.previous]o1907) :|: TRUE 16.05/9.02 f4100_0_addBefore_FieldAccess(EOS(STATIC_4100(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4103_0_addBefore_FieldAccess(EOS(STATIC_4103(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: o1982[LinkedList$Entry.previous]o1905 > 0 && o1905[LinkedList$Entry.previous]o1905 > 0 && o1905[LinkedList$Entry.previous]o1982 > 0 && o1982[LinkedList$Entry.previous]o1982 > 0 16.05/9.02 f4103_0_addBefore_FieldAccess(EOS(STATIC_4103(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4106_0_addBefore_Load(EOS(STATIC_4106(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4106_0_addBefore_Load(EOS(STATIC_4106(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4108_0_addBefore_FieldAccess(EOS(STATIC_4108(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4108_0_addBefore_FieldAccess(EOS(STATIC_4108(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4110_0_addBefore_Load(EOS(STATIC_4110(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4110_0_addBefore_Load(EOS(STATIC_4110(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4112_0_addBefore_FieldAccess(EOS(STATIC_4112(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4112_0_addBefore_FieldAccess(EOS(STATIC_4112(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4114_0_addBefore_Load(EOS(STATIC_4114(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4114_0_addBefore_Load(EOS(STATIC_4114(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4116_0_addBefore_Duplicate(EOS(STATIC_4116(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4116_0_addBefore_Duplicate(EOS(STATIC_4116(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4118_0_addBefore_FieldAccess(EOS(STATIC_4118(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4118_0_addBefore_FieldAccess(EOS(STATIC_4118(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4120_0_addBefore_ConstantStackPush(EOS(STATIC_4120(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4120_0_addBefore_ConstantStackPush(EOS(STATIC_4120(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4122_0_addBefore_IntArithmetic(EOS(STATIC_4122(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4122_0_addBefore_IntArithmetic(EOS(STATIC_4122(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4124_0_addBefore_FieldAccess(EOS(STATIC_4124(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4124_0_addBefore_FieldAccess(EOS(STATIC_4124(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4126_0_addBefore_Load(EOS(STATIC_4126(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4126_0_addBefore_Load(EOS(STATIC_4126(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4128_0_addBefore_Duplicate(EOS(STATIC_4128(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4128_0_addBefore_Duplicate(EOS(STATIC_4128(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4130_0_addBefore_FieldAccess(EOS(STATIC_4130(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4130_0_addBefore_FieldAccess(EOS(STATIC_4130(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4132_0_addBefore_ConstantStackPush(EOS(STATIC_4132(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4132_0_addBefore_ConstantStackPush(EOS(STATIC_4132(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4134_0_addBefore_IntArithmetic(EOS(STATIC_4134(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4134_0_addBefore_IntArithmetic(EOS(STATIC_4134(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4136_0_addBefore_FieldAccess(EOS(STATIC_4136(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4136_0_addBefore_FieldAccess(EOS(STATIC_4136(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4138_0_addBefore_Load(EOS(STATIC_4138(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4138_0_addBefore_Load(EOS(STATIC_4138(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4140_0_addBefore_Return(EOS(STATIC_4140(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4140_0_addBefore_Return(EOS(STATIC_4140(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4142_0_addLast_StackPop(EOS(STATIC_4142(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4142_0_addLast_StackPop(EOS(STATIC_4142(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4144_0_addLast_Return(EOS(STATIC_4144(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4144_0_addLast_Return(EOS(STATIC_4144(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4146_0_createList_Inc(EOS(STATIC_4146(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4146_0_createList_Inc(EOS(STATIC_4146(java.lang.Object(ARRAY(i971)), i974)), i960, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4148_0_createList_JMP(EOS(STATIC_4148(java.lang.Object(ARRAY(i971)), i974)), i960 + -1, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4148_0_createList_JMP(EOS(STATIC_4148(java.lang.Object(ARRAY(i971)), i974)), i1030, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f4150_0_createList_Load(EOS(STATIC_4150(java.lang.Object(ARRAY(i971)), i974)), i1030, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) :|: TRUE 16.05/9.02 f4150_0_createList_Load(EOS(STATIC_4150(java.lang.Object(ARRAY(i971)), i974)), i1030, o1982[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1982) -> f3949_0_createList_Load(EOS(STATIC_3949(java.lang.Object(ARRAY(i971)), i974)), i1030, o1982[LinkedList$Entry.next]o1905, o1960[LinkedList$Entry.previous]o1905, o1982[LinkedList$Entry.previous]o1905, o1982[LinkedList$Entry.next]o1982, o1982[LinkedList$Entry.next]o1904, o1905[LinkedList$Entry.previous]o1905, o1905[LinkedList$Entry.previous]o1904, o1960[LinkedList$Entry.previous]o1904, o1905[LinkedList$Entry.previous]o1982, o1960[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.previous]o1904, o1982[LinkedList$Entry.previous]o1982, o1982[LinkedList$Entry.next]o1960, o1982[LinkedList$Entry.previous]o1960, o1905[LinkedList$Entry.previous]o1960, o1960[LinkedList$Entry.previous]o1960) :|: o1982[LinkedList$Entry.next]o1982 = 4 && o1960[LinkedList$Entry.previous]o1982 = 1 && o1982[LinkedList$Entry.next]o1960 = 1 16.05/9.02 Combined rules. Obtained 2 IRulesP rules: 16.05/9.02 f3950_0_createList_LE(EOS(STATIC_3950(java.lang.Object(ARRAY(i971:0)), i945:0)), i960:0, i960:0, o1906[LinkedList$Entry.next]o1905:0, o1907[LinkedList$Entry.previous]o1905:0, o1907[LinkedList$Entry.previous]o1905:0, o1906[LinkedList$Entry.next]o1906:0, o1906[LinkedList$Entry.next]o1904:0, o1905[LinkedList$Entry.previous]o1905:0, o1905[LinkedList$Entry.previous]o1904:0, o1907[LinkedList$Entry.previous]o1904:0, o1905[LinkedList$Entry.previous]o1906:0, o1907[LinkedList$Entry.previous]o1906:0, o1907[LinkedList$Entry.previous]o1904:0, o1907[LinkedList$Entry.previous]o1906:0, o1906[LinkedList$Entry.next]o1906:0, o1907[LinkedList$Entry.previous]o1906:0, o1905[LinkedList$Entry.previous]o1906:0, o1907[LinkedList$Entry.previous]o1906:0) -> f3950_0_createList_LE(EOS(STATIC_3950(java.lang.Object(ARRAY(i971:0)), i945:0 + 1)), i960:0 - 1, i960:0 - 1, o1982[LinkedList$Entry.next]o1905:0, o1960[LinkedList$Entry.previous]o1905:0, o1907[LinkedList$Entry.previous]o1905:0, 4, o1982[LinkedList$Entry.next]o1904:0, o1905[LinkedList$Entry.previous]o1905:0, o1905[LinkedList$Entry.previous]o1904:0, o1960[LinkedList$Entry.previous]o1904:0, o1905[LinkedList$Entry.previous]o1906:0, 1, o1907[LinkedList$Entry.previous]o1904:0, o1907[LinkedList$Entry.previous]o1906:0, 1, o1982[LinkedList$Entry.previous]o1960:0, o1905[LinkedList$Entry.previous]o1960:0, o1960[LinkedList$Entry.previous]o1960:0) :|: i960:0 > 0 && i971:0 > -1 && i971:0 > i945:0 && i945:0 > -1 && o1906[LinkedList$Entry.next]o1904:0 > 0 && o1906[LinkedList$Entry.next]o1906:0 > 0 && o1907[LinkedList$Entry.previous]o1904:0 > 0 && o1907[LinkedList$Entry.previous]o1906:0 > 0 && o1905[LinkedList$Entry.previous]o1904:0 > 0 && o1905[LinkedList$Entry.previous]o1905:0 > 0 && o1907[LinkedList$Entry.previous]o1905:0 > 0 && o1905[LinkedList$Entry.previous]o1906:0 > 0 16.05/9.02 f3950_0_createList_LE(EOS(STATIC_3950(java.lang.Object(ARRAY(i971:0)), i945:0)), i960:0, i960:0, o1906[LinkedList$Entry.next]o1905:0, o1907[LinkedList$Entry.previous]o1905:0, o1906[LinkedList$Entry.previous]o1905:0, o1906[LinkedList$Entry.next]o1906:0, o1906[LinkedList$Entry.next]o1904:0, o1905[LinkedList$Entry.previous]o1905:0, o1905[LinkedList$Entry.previous]o1904:0, o1907[LinkedList$Entry.previous]o1904:0, o1905[LinkedList$Entry.previous]o1906:0, o1907[LinkedList$Entry.previous]o1906:0, o1906[LinkedList$Entry.previous]o1904:0, o1906[LinkedList$Entry.previous]o1906:0, o1906[LinkedList$Entry.next]o1907:0, o1906[LinkedList$Entry.previous]o1907:0, o1905[LinkedList$Entry.previous]o1907:0, o1907[LinkedList$Entry.previous]o1907:0) -> f3950_0_createList_LE(EOS(STATIC_3950(java.lang.Object(ARRAY(i971:0)), i945:0 + 1)), i960:0 - 1, i960:0 - 1, o1906[LinkedList$Entry.next]o1905:0, o1960[LinkedList$Entry.previous]o1905:0, o1906[LinkedList$Entry.previous]o1905:0, o1906[LinkedList$Entry.next]o1906:0, o1906[LinkedList$Entry.next]o1904:0, o1905[LinkedList$Entry.previous]o1905:0, o1905[LinkedList$Entry.previous]o1904:0, o1960[LinkedList$Entry.previous]o1904:0, o1905[LinkedList$Entry.previous]o1906:0, o1960[LinkedList$Entry.previous]o1906:0, o1906[LinkedList$Entry.previous]o1904:0, o1906[LinkedList$Entry.previous]o1906:0, o1906[LinkedList$Entry.next]o1960:0, o1906[LinkedList$Entry.previous]o1960:0, o1905[LinkedList$Entry.previous]o1960:0, o1960[LinkedList$Entry.previous]o1960:0) :|: i960:0 > 0 && i971:0 > -1 && i971:0 > i945:0 && i945:0 > -1 && o1906[LinkedList$Entry.next]o1904:0 > 0 && o1906[LinkedList$Entry.next]o1906:0 > 0 && o1906[LinkedList$Entry.previous]o1904:0 > 0 && o1906[LinkedList$Entry.previous]o1906:0 > 0 && o1905[LinkedList$Entry.previous]o1904:0 > 0 && o1905[LinkedList$Entry.previous]o1905:0 > 0 && o1907[LinkedList$Entry.previous]o1907:0 > 0 && o1907[LinkedList$Entry.previous]o1904:0 > 0 && o1907[LinkedList$Entry.previous]o1906:0 > 0 && o1906[LinkedList$Entry.next]o1907:0 > 0 && o1907[LinkedList$Entry.previous]o1905:0 > 0 && o1906[LinkedList$Entry.previous]o1907:0 > 0 && o1905[LinkedList$Entry.previous]o1907:0 > 0 16.05/9.02 Filtered duplicate arguments: 16.05/9.02 f3950_0_createList_LE(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19) -> f3950_0_createList_LE(x1, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19) 16.05/9.02 Filtered unneeded arguments: 16.05/9.02 f3950_0_createList_LE(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18) -> f3950_0_createList_LE(x1, x2, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18) 16.05/9.02 Finished conversion. Obtained 2 rules.P rules: 16.05/9.02 f3950_0_createList_LE(i960:0, o1907[LinkedList$Entry.previous]o1905:0, o1907[LinkedList$Entry.previous]o1905:0, o1906[LinkedList$Entry.next]o1906:0, o1906[LinkedList$Entry.next]o1904:0, o1905[LinkedList$Entry.previous]o1905:0, o1905[LinkedList$Entry.previous]o1904:0, o1907[LinkedList$Entry.previous]o1904:0, o1905[LinkedList$Entry.previous]o1906:0, o1907[LinkedList$Entry.previous]o1906:0, o1907[LinkedList$Entry.previous]o1904:0, o1907[LinkedList$Entry.previous]o1906:0, o1906[LinkedList$Entry.next]o1906:0, o1907[LinkedList$Entry.previous]o1906:0, o1905[LinkedList$Entry.previous]o1906:0, o1907[LinkedList$Entry.previous]o1906:0, i971:0, i945:0) -> f3950_0_createList_LE(i960:0 - 1, o1960[LinkedList$Entry.previous]o1905:0, o1907[LinkedList$Entry.previous]o1905:0, 4, o1982[LinkedList$Entry.next]o1904:0, o1905[LinkedList$Entry.previous]o1905:0, o1905[LinkedList$Entry.previous]o1904:0, o1960[LinkedList$Entry.previous]o1904:0, o1905[LinkedList$Entry.previous]o1906:0, 1, o1907[LinkedList$Entry.previous]o1904:0, o1907[LinkedList$Entry.previous]o1906:0, 1, o1982[LinkedList$Entry.previous]o1960:0, o1905[LinkedList$Entry.previous]o1960:0, o1960[LinkedList$Entry.previous]o1960:0, i971:0, i945:0 + 1) :|: i971:0 > -1 && i960:0 > 0 && i971:0 > i945:0 && i945:0 > -1 && o1906[LinkedList$Entry.next]o1904:0 > 0 && o1906[LinkedList$Entry.next]o1906:0 > 0 && o1907[LinkedList$Entry.previous]o1904:0 > 0 && o1907[LinkedList$Entry.previous]o1906:0 > 0 && o1905[LinkedList$Entry.previous]o1904:0 > 0 && o1905[LinkedList$Entry.previous]o1905:0 > 0 && o1905[LinkedList$Entry.previous]o1906:0 > 0 && o1907[LinkedList$Entry.previous]o1905:0 > 0 16.05/9.02 f3950_0_createList_LE(i960:0, o1907[LinkedList$Entry.previous]o1905:0, o1906[LinkedList$Entry.previous]o1905:0, o1906[LinkedList$Entry.next]o1906:0, o1906[LinkedList$Entry.next]o1904:0, o1905[LinkedList$Entry.previous]o1905:0, o1905[LinkedList$Entry.previous]o1904:0, o1907[LinkedList$Entry.previous]o1904:0, o1905[LinkedList$Entry.previous]o1906:0, o1907[LinkedList$Entry.previous]o1906:0, o1906[LinkedList$Entry.previous]o1904:0, o1906[LinkedList$Entry.previous]o1906:0, o1906[LinkedList$Entry.next]o1907:0, o1906[LinkedList$Entry.previous]o1907:0, o1905[LinkedList$Entry.previous]o1907:0, o1907[LinkedList$Entry.previous]o1907:0, i971:0, i945:0) -> f3950_0_createList_LE(i960:0 - 1, o1960[LinkedList$Entry.previous]o1905:0, o1906[LinkedList$Entry.previous]o1905:0, o1906[LinkedList$Entry.next]o1906:0, o1906[LinkedList$Entry.next]o1904:0, o1905[LinkedList$Entry.previous]o1905:0, o1905[LinkedList$Entry.previous]o1904:0, o1960[LinkedList$Entry.previous]o1904:0, o1905[LinkedList$Entry.previous]o1906:0, o1960[LinkedList$Entry.previous]o1906:0, o1906[LinkedList$Entry.previous]o1904:0, o1906[LinkedList$Entry.previous]o1906:0, o1906[LinkedList$Entry.next]o1960:0, o1906[LinkedList$Entry.previous]o1960:0, o1905[LinkedList$Entry.previous]o1960:0, o1960[LinkedList$Entry.previous]o1960:0, i971:0, i945:0 + 1) :|: i971:0 > -1 && i960:0 > 0 && i971:0 > i945:0 && i945:0 > -1 && o1906[LinkedList$Entry.next]o1904:0 > 0 && o1906[LinkedList$Entry.next]o1906:0 > 0 && o1906[LinkedList$Entry.previous]o1904:0 > 0 && o1906[LinkedList$Entry.previous]o1906:0 > 0 && o1905[LinkedList$Entry.previous]o1904:0 > 0 && o1905[LinkedList$Entry.previous]o1905:0 > 0 && o1907[LinkedList$Entry.previous]o1907:0 > 0 && o1907[LinkedList$Entry.previous]o1904:0 > 0 && o1907[LinkedList$Entry.previous]o1906:0 > 0 && o1906[LinkedList$Entry.next]o1907:0 > 0 && o1907[LinkedList$Entry.previous]o1905:0 > 0 && o1905[LinkedList$Entry.previous]o1907:0 > 0 && o1906[LinkedList$Entry.previous]o1907:0 > 0 16.05/9.02 16.05/9.02 ---------------------------------------- 16.05/9.02 16.05/9.02 (8) 16.05/9.02 Obligation: 16.05/9.02 Rules: 16.05/9.02 f3950_0_createList_LE(i960:0, o1907[LinkedList$Entry.previous]o1905:0, o1907[LinkedList$Entry.previous]o1905:0, o1906[LinkedList$Entry.next]o1906:0, o1906[LinkedList$Entry.next]o1904:0, o1905[LinkedList$Entry.previous]o1905:0, o1905[LinkedList$Entry.previous]o1904:0, o1907[LinkedList$Entry.previous]o1904:0, o1905[LinkedList$Entry.previous]o1906:0, o1907[LinkedList$Entry.previous]o1906:0, o1907[LinkedList$Entry.previous]o1904:0, o1907[LinkedList$Entry.previous]o1906:0, o1906[LinkedList$Entry.next]o1906:0, o1907[LinkedList$Entry.previous]o1906:0, o1905[LinkedList$Entry.previous]o1906:0, o1907[LinkedList$Entry.previous]o1906:0, i971:0, i945:0) -> f3950_0_createList_LE(i960:0 - 1, o1960[LinkedList$Entry.previous]o1905:0, o1907[LinkedList$Entry.previous]o1905:0, 4, o1982[LinkedList$Entry.next]o1904:0, o1905[LinkedList$Entry.previous]o1905:0, o1905[LinkedList$Entry.previous]o1904:0, o1960[LinkedList$Entry.previous]o1904:0, o1905[LinkedList$Entry.previous]o1906:0, 1, o1907[LinkedList$Entry.previous]o1904:0, o1907[LinkedList$Entry.previous]o1906:0, 1, o1982[LinkedList$Entry.previous]o1960:0, o1905[LinkedList$Entry.previous]o1960:0, o1960[LinkedList$Entry.previous]o1960:0, i971:0, i945:0 + 1) :|: i971:0 > -1 && i960:0 > 0 && i971:0 > i945:0 && i945:0 > -1 && o1906[LinkedList$Entry.next]o1904:0 > 0 && o1906[LinkedList$Entry.next]o1906:0 > 0 && o1907[LinkedList$Entry.previous]o1904:0 > 0 && o1907[LinkedList$Entry.previous]o1906:0 > 0 && o1905[LinkedList$Entry.previous]o1904:0 > 0 && o1905[LinkedList$Entry.previous]o1905:0 > 0 && o1905[LinkedList$Entry.previous]o1906:0 > 0 && o1907[LinkedList$Entry.previous]o1905:0 > 0 16.05/9.02 f3950_0_createList_LE(x, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17) -> f3950_0_createList_LE(x - 1, x18, x2, x3, x4, x5, x6, x19, x8, x20, x10, x11, x21, x22, x23, x24, x16, x17 + 1) :|: x16 > -1 && x > 0 && x16 > x17 && x17 > -1 && x4 > 0 && x3 > 0 && x10 > 0 && x11 > 0 && x6 > 0 && x5 > 0 && x15 > 0 && x7 > 0 && x9 > 0 && x12 > 0 && x1 > 0 && x14 > 0 && x13 > 0 16.05/9.02 16.05/9.02 ---------------------------------------- 16.05/9.02 16.05/9.02 (9) IRSFormatTransformerProof (EQUIVALENT) 16.05/9.02 Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). 16.05/9.02 ---------------------------------------- 16.05/9.02 16.05/9.02 (10) 16.05/9.02 Obligation: 16.05/9.02 Rules: 16.05/9.02 f3950_0_createList_LE(i960:0, o1907[LinkedList$Entry.previous]o1905:0, o1907[LinkedList$Entry.previous]o1905:0, o1906[LinkedList$Entry.next]o1906:0, o1906[LinkedList$Entry.next]o1904:0, o1905[LinkedList$Entry.previous]o1905:0, o1905[LinkedList$Entry.previous]o1904:0, o1907[LinkedList$Entry.previous]o1904:0, o1905[LinkedList$Entry.previous]o1906:0, o1907[LinkedList$Entry.previous]o1906:0, o1907[LinkedList$Entry.previous]o1904:0, o1907[LinkedList$Entry.previous]o1906:0, o1906[LinkedList$Entry.next]o1906:0, o1907[LinkedList$Entry.previous]o1906:0, o1905[LinkedList$Entry.previous]o1906:0, o1907[LinkedList$Entry.previous]o1906:0, i971:0, i945:0) -> f3950_0_createList_LE(arith, o1960[LinkedList$Entry.previous]o1905:0, o1907[LinkedList$Entry.previous]o1905:0, 4, o1982[LinkedList$Entry.next]o1904:0, o1905[LinkedList$Entry.previous]o1905:0, o1905[LinkedList$Entry.previous]o1904:0, o1960[LinkedList$Entry.previous]o1904:0, o1905[LinkedList$Entry.previous]o1906:0, 1, o1907[LinkedList$Entry.previous]o1904:0, o1907[LinkedList$Entry.previous]o1906:0, 1, o1982[LinkedList$Entry.previous]o1960:0, o1905[LinkedList$Entry.previous]o1960:0, o1960[LinkedList$Entry.previous]o1960:0, i971:0, arith1) :|: i971:0 > -1 && i960:0 > 0 && i971:0 > i945:0 && i945:0 > -1 && o1906[LinkedList$Entry.next]o1904:0 > 0 && o1906[LinkedList$Entry.next]o1906:0 > 0 && o1907[LinkedList$Entry.previous]o1904:0 > 0 && o1907[LinkedList$Entry.previous]o1906:0 > 0 && o1905[LinkedList$Entry.previous]o1904:0 > 0 && o1905[LinkedList$Entry.previous]o1905:0 > 0 && o1905[LinkedList$Entry.previous]o1906:0 > 0 && o1907[LinkedList$Entry.previous]o1905:0 > 0 && arith = i960:0 - 1 && arith1 = i945:0 + 1 16.05/9.02 f3950_0_createList_LE(x25, x26, x27, x28, x29, x30, x31, x32, x33, x34, x35, x36, x37, x38, x39, x40, x41, x42) -> f3950_0_createList_LE(x43, x44, x27, x28, x29, x30, x31, x45, x33, x46, x35, x36, x47, x48, x49, x50, x41, x51) :|: x41 > -1 && x25 > 0 && x41 > x42 && x42 > -1 && x29 > 0 && x28 > 0 && x35 > 0 && x36 > 0 && x31 > 0 && x30 > 0 && x40 > 0 && x32 > 0 && x34 > 0 && x37 > 0 && x26 > 0 && x39 > 0 && x38 > 0 && x43 = x25 - 1 && x51 = x42 + 1 16.05/9.02 16.05/9.02 ---------------------------------------- 16.05/9.02 16.05/9.02 (11) IRSwTTerminationDigraphProof (EQUIVALENT) 16.05/9.02 Constructed termination digraph! 16.05/9.02 Nodes: 16.05/9.02 (1) f3950_0_createList_LE(i960:0, o1907[LinkedList$Entry.previous]o1905:0, o1907[LinkedList$Entry.previous]o1905:0, o1906[LinkedList$Entry.next]o1906:0, o1906[LinkedList$Entry.next]o1904:0, o1905[LinkedList$Entry.previous]o1905:0, o1905[LinkedList$Entry.previous]o1904:0, o1907[LinkedList$Entry.previous]o1904:0, o1905[LinkedList$Entry.previous]o1906:0, o1907[LinkedList$Entry.previous]o1906:0, o1907[LinkedList$Entry.previous]o1904:0, o1907[LinkedList$Entry.previous]o1906:0, o1906[LinkedList$Entry.next]o1906:0, o1907[LinkedList$Entry.previous]o1906:0, o1905[LinkedList$Entry.previous]o1906:0, o1907[LinkedList$Entry.previous]o1906:0, i971:0, i945:0) -> f3950_0_createList_LE(arith, o1960[LinkedList$Entry.previous]o1905:0, o1907[LinkedList$Entry.previous]o1905:0, 4, o1982[LinkedList$Entry.next]o1904:0, o1905[LinkedList$Entry.previous]o1905:0, o1905[LinkedList$Entry.previous]o1904:0, o1960[LinkedList$Entry.previous]o1904:0, o1905[LinkedList$Entry.previous]o1906:0, 1, o1907[LinkedList$Entry.previous]o1904:0, o1907[LinkedList$Entry.previous]o1906:0, 1, o1982[LinkedList$Entry.previous]o1960:0, o1905[LinkedList$Entry.previous]o1960:0, o1960[LinkedList$Entry.previous]o1960:0, i971:0, arith1) :|: i971:0 > -1 && i960:0 > 0 && i971:0 > i945:0 && i945:0 > -1 && o1906[LinkedList$Entry.next]o1904:0 > 0 && o1906[LinkedList$Entry.next]o1906:0 > 0 && o1907[LinkedList$Entry.previous]o1904:0 > 0 && o1907[LinkedList$Entry.previous]o1906:0 > 0 && o1905[LinkedList$Entry.previous]o1904:0 > 0 && o1905[LinkedList$Entry.previous]o1905:0 > 0 && o1905[LinkedList$Entry.previous]o1906:0 > 0 && o1907[LinkedList$Entry.previous]o1905:0 > 0 && arith = i960:0 - 1 && arith1 = i945:0 + 1 16.05/9.02 (2) f3950_0_createList_LE(x25, x26, x27, x28, x29, x30, x31, x32, x33, x34, x35, x36, x37, x38, x39, x40, x41, x42) -> f3950_0_createList_LE(x43, x44, x27, x28, x29, x30, x31, x45, x33, x46, x35, x36, x47, x48, x49, x50, x41, x51) :|: x41 > -1 && x25 > 0 && x41 > x42 && x42 > -1 && x29 > 0 && x28 > 0 && x35 > 0 && x36 > 0 && x31 > 0 && x30 > 0 && x40 > 0 && x32 > 0 && x34 > 0 && x37 > 0 && x26 > 0 && x39 > 0 && x38 > 0 && x43 = x25 - 1 && x51 = x42 + 1 16.05/9.02 16.05/9.02 Arcs: 16.05/9.02 (1) -> (2) 16.05/9.02 (2) -> (1), (2) 16.05/9.02 16.05/9.02 This digraph is fully evaluated! 16.05/9.02 ---------------------------------------- 16.05/9.02 16.05/9.02 (12) 16.05/9.02 Obligation: 16.05/9.02 16.05/9.02 Termination digraph: 16.05/9.02 Nodes: 16.05/9.02 (1) f3950_0_createList_LE(i960:0, o1907[LinkedList$Entry.previous]o1905:0, o1907[LinkedList$Entry.previous]o1905:0, o1906[LinkedList$Entry.next]o1906:0, o1906[LinkedList$Entry.next]o1904:0, o1905[LinkedList$Entry.previous]o1905:0, o1905[LinkedList$Entry.previous]o1904:0, o1907[LinkedList$Entry.previous]o1904:0, o1905[LinkedList$Entry.previous]o1906:0, o1907[LinkedList$Entry.previous]o1906:0, o1907[LinkedList$Entry.previous]o1904:0, o1907[LinkedList$Entry.previous]o1906:0, o1906[LinkedList$Entry.next]o1906:0, o1907[LinkedList$Entry.previous]o1906:0, o1905[LinkedList$Entry.previous]o1906:0, o1907[LinkedList$Entry.previous]o1906:0, i971:0, i945:0) -> f3950_0_createList_LE(arith, o1960[LinkedList$Entry.previous]o1905:0, o1907[LinkedList$Entry.previous]o1905:0, 4, o1982[LinkedList$Entry.next]o1904:0, o1905[LinkedList$Entry.previous]o1905:0, o1905[LinkedList$Entry.previous]o1904:0, o1960[LinkedList$Entry.previous]o1904:0, o1905[LinkedList$Entry.previous]o1906:0, 1, o1907[LinkedList$Entry.previous]o1904:0, o1907[LinkedList$Entry.previous]o1906:0, 1, o1982[LinkedList$Entry.previous]o1960:0, o1905[LinkedList$Entry.previous]o1960:0, o1960[LinkedList$Entry.previous]o1960:0, i971:0, arith1) :|: i971:0 > -1 && i960:0 > 0 && i971:0 > i945:0 && i945:0 > -1 && o1906[LinkedList$Entry.next]o1904:0 > 0 && o1906[LinkedList$Entry.next]o1906:0 > 0 && o1907[LinkedList$Entry.previous]o1904:0 > 0 && o1907[LinkedList$Entry.previous]o1906:0 > 0 && o1905[LinkedList$Entry.previous]o1904:0 > 0 && o1905[LinkedList$Entry.previous]o1905:0 > 0 && o1905[LinkedList$Entry.previous]o1906:0 > 0 && o1907[LinkedList$Entry.previous]o1905:0 > 0 && arith = i960:0 - 1 && arith1 = i945:0 + 1 16.05/9.02 (2) f3950_0_createList_LE(x25, x26, x27, x28, x29, x30, x31, x32, x33, x34, x35, x36, x37, x38, x39, x40, x41, x42) -> f3950_0_createList_LE(x43, x44, x27, x28, x29, x30, x31, x45, x33, x46, x35, x36, x47, x48, x49, x50, x41, x51) :|: x41 > -1 && x25 > 0 && x41 > x42 && x42 > -1 && x29 > 0 && x28 > 0 && x35 > 0 && x36 > 0 && x31 > 0 && x30 > 0 && x40 > 0 && x32 > 0 && x34 > 0 && x37 > 0 && x26 > 0 && x39 > 0 && x38 > 0 && x43 = x25 - 1 && x51 = x42 + 1 16.05/9.02 16.05/9.02 Arcs: 16.05/9.02 (1) -> (2) 16.05/9.02 (2) -> (1), (2) 16.05/9.02 16.05/9.02 This digraph is fully evaluated! 16.05/9.02 16.05/9.02 ---------------------------------------- 16.05/9.02 16.05/9.02 (13) IntTRSCompressionProof (EQUIVALENT) 16.05/9.02 Compressed rules. 16.05/9.02 ---------------------------------------- 16.05/9.02 16.05/9.02 (14) 16.05/9.02 Obligation: 16.05/9.02 Rules: 16.05/9.02 f3950_0_createList_LE(x25:0, x26:0, x27:0, x28:0, x29:0, x30:0, x31:0, x32:0, x33:0, x34:0, x35:0, x36:0, x37:0, x38:0, x39:0, x40:0, x41:0, x42:0) -> f3950_0_createList_LE(x25:0 - 1, x44:0, x27:0, x28:0, x29:0, x30:0, x31:0, x45:0, x33:0, x46:0, x35:0, x36:0, x47:0, x48:0, x49:0, x50:0, x41:0, x42:0 + 1) :|: x39:0 > 0 && x38:0 > 0 && x26:0 > 0 && x37:0 > 0 && x34:0 > 0 && x32:0 > 0 && x40:0 > 0 && x30:0 > 0 && x31:0 > 0 && x36:0 > 0 && x35:0 > 0 && x28:0 > 0 && x29:0 > 0 && x42:0 > -1 && x42:0 < x41:0 && x25:0 > 0 && x41:0 > -1 16.05/9.02 f3950_0_createList_LE(i960:0:0, o1907[LinkedList$Entry.previous]o1905:0:0, o1907[LinkedList$Entry.previous]o1905:0:0, o1906[LinkedList$Entry.next]o1906:0:0, o1906[LinkedList$Entry.next]o1904:0:0, o1905[LinkedList$Entry.previous]o1905:0:0, o1905[LinkedList$Entry.previous]o1904:0:0, o1907[LinkedList$Entry.previous]o1904:0:0, o1905[LinkedList$Entry.previous]o1906:0:0, o1907[LinkedList$Entry.previous]o1906:0:0, o1907[LinkedList$Entry.previous]o1904:0:0, o1907[LinkedList$Entry.previous]o1906:0:0, o1906[LinkedList$Entry.next]o1906:0:0, o1907[LinkedList$Entry.previous]o1906:0:0, o1905[LinkedList$Entry.previous]o1906:0:0, o1907[LinkedList$Entry.previous]o1906:0:0, i971:0:0, i945:0:0) -> f3950_0_createList_LE(i960:0:0 - 1, o1960[LinkedList$Entry.previous]o1905:0:0, o1907[LinkedList$Entry.previous]o1905:0:0, 4, o1982[LinkedList$Entry.next]o1904:0:0, o1905[LinkedList$Entry.previous]o1905:0:0, o1905[LinkedList$Entry.previous]o1904:0:0, o1960[LinkedList$Entry.previous]o1904:0:0, o1905[LinkedList$Entry.previous]o1906:0:0, 1, o1907[LinkedList$Entry.previous]o1904:0:0, o1907[LinkedList$Entry.previous]o1906:0:0, 1, o1982[LinkedList$Entry.previous]o1960:0:0, o1905[LinkedList$Entry.previous]o1960:0:0, o1960[LinkedList$Entry.previous]o1960:0:0, i971:0:0, i945:0:0 + 1) :|: o1905[LinkedList$Entry.previous]o1906:0:0 > 0 && o1907[LinkedList$Entry.previous]o1905:0:0 > 0 && o1905[LinkedList$Entry.previous]o1905:0:0 > 0 && o1905[LinkedList$Entry.previous]o1904:0:0 > 0 && o1907[LinkedList$Entry.previous]o1906:0:0 > 0 && o1907[LinkedList$Entry.previous]o1904:0:0 > 0 && o1906[LinkedList$Entry.next]o1906:0:0 > 0 && o1906[LinkedList$Entry.next]o1904:0:0 > 0 && i945:0:0 > -1 && i971:0:0 > i945:0:0 && i960:0:0 > 0 && i971:0:0 > -1 16.05/9.02 16.05/9.02 ---------------------------------------- 16.05/9.02 16.05/9.02 (15) TempFilterProof (SOUND) 16.05/9.02 Used the following sort dictionary for filtering: 16.05/9.02 f3950_0_createList_LE(INTEGER, VARIABLE, VARIABLE, VARIABLE, VARIABLE, INTEGER, INTEGER, VARIABLE, VARIABLE, VARIABLE, INTEGER, INTEGER, VARIABLE, VARIABLE, VARIABLE, VARIABLE, INTEGER, INTEGER) 16.05/9.02 Replaced non-predefined constructor symbols by 0. 16.05/9.02 ---------------------------------------- 16.05/9.02 16.05/9.02 (16) 16.05/9.02 Obligation: 16.05/9.02 Rules: 16.05/9.02 f3950_0_createList_LE(x25:0, x26:0, x27:0, x28:0, x29:0, x30:0, x31:0, x32:0, x33:0, x34:0, x35:0, x36:0, x37:0, x38:0, x39:0, x40:0, x41:0, x42:0) -> f3950_0_createList_LE(c, x44:0, x27:0, x28:0, x29:0, x30:0, x31:0, x45:0, x33:0, x46:0, x35:0, x36:0, x47:0, x48:0, x49:0, x50:0, x41:0, c1) :|: c1 = x42:0 + 1 && c = x25:0 - 1 && (x39:0 > 0 && x38:0 > 0 && x26:0 > 0 && x37:0 > 0 && x34:0 > 0 && x32:0 > 0 && x40:0 > 0 && x30:0 > 0 && x31:0 > 0 && x36:0 > 0 && x35:0 > 0 && x28:0 > 0 && x29:0 > 0 && x42:0 > -1 && x42:0 < x41:0 && x25:0 > 0 && x41:0 > -1) 16.05/9.02 f3950_0_createList_LE(i960:0:0, o1907[LinkedList$Entry.previous]o1905:0:0, o1907[LinkedList$Entry.previous]o1905:0:0, o1906[LinkedList$Entry.next]o1906:0:0, o1906[LinkedList$Entry.next]o1904:0:0, o1905[LinkedList$Entry.previous]o1905:0:0, o1905[LinkedList$Entry.previous]o1904:0:0, o1907[LinkedList$Entry.previous]o1904:0:0, o1905[LinkedList$Entry.previous]o1906:0:0, o1907[LinkedList$Entry.previous]o1906:0:0, o1907[LinkedList$Entry.previous]o1904:0:0, o1907[LinkedList$Entry.previous]o1906:0:0, o1906[LinkedList$Entry.next]o1906:0:0, o1907[LinkedList$Entry.previous]o1906:0:0, o1905[LinkedList$Entry.previous]o1906:0:0, o1907[LinkedList$Entry.previous]o1906:0:0, i971:0:0, i945:0:0) -> f3950_0_createList_LE(c2, o1960[LinkedList$Entry.previous]o1905:0:0, o1907[LinkedList$Entry.previous]o1905:0:0, c3, o1982[LinkedList$Entry.next]o1904:0:0, o1905[LinkedList$Entry.previous]o1905:0:0, o1905[LinkedList$Entry.previous]o1904:0:0, o1960[LinkedList$Entry.previous]o1904:0:0, o1905[LinkedList$Entry.previous]o1906:0:0, c4, o1907[LinkedList$Entry.previous]o1904:0:0, o1907[LinkedList$Entry.previous]o1906:0:0, c5, o1982[LinkedList$Entry.previous]o1960:0:0, o1905[LinkedList$Entry.previous]o1960:0:0, o1960[LinkedList$Entry.previous]o1960:0:0, i971:0:0, c6) :|: c6 = i945:0:0 + 1 && (c5 = 1 && (c4 = 1 && (c3 = 4 && c2 = i960:0:0 - 1))) && (o1905[LinkedList$Entry.previous]o1906:0:0 > 0 && o1907[LinkedList$Entry.previous]o1905:0:0 > 0 && o1905[LinkedList$Entry.previous]o1905:0:0 > 0 && o1905[LinkedList$Entry.previous]o1904:0:0 > 0 && o1907[LinkedList$Entry.previous]o1906:0:0 > 0 && o1907[LinkedList$Entry.previous]o1904:0:0 > 0 && o1906[LinkedList$Entry.next]o1906:0:0 > 0 && o1906[LinkedList$Entry.next]o1904:0:0 > 0 && i945:0:0 > -1 && i971:0:0 > i945:0:0 && i960:0:0 > 0 && i971:0:0 > -1) 16.05/9.02 16.05/9.02 ---------------------------------------- 16.05/9.02 16.05/9.02 (17) RankingReductionPairProof (EQUIVALENT) 16.05/9.02 Interpretation: 16.05/9.02 [ f3950_0_createList_LE ] = f3950_0_createList_LE_1 16.05/9.02 16.05/9.02 The following rules are decreasing: 16.05/9.02 f3950_0_createList_LE(x25:0, x26:0, x27:0, x28:0, x29:0, x30:0, x31:0, x32:0, x33:0, x34:0, x35:0, x36:0, x37:0, x38:0, x39:0, x40:0, x41:0, x42:0) -> f3950_0_createList_LE(c, x44:0, x27:0, x28:0, x29:0, x30:0, x31:0, x45:0, x33:0, x46:0, x35:0, x36:0, x47:0, x48:0, x49:0, x50:0, x41:0, c1) :|: c1 = x42:0 + 1 && c = x25:0 - 1 && (x39:0 > 0 && x38:0 > 0 && x26:0 > 0 && x37:0 > 0 && x34:0 > 0 && x32:0 > 0 && x40:0 > 0 && x30:0 > 0 && x31:0 > 0 && x36:0 > 0 && x35:0 > 0 && x28:0 > 0 && x29:0 > 0 && x42:0 > -1 && x42:0 < x41:0 && x25:0 > 0 && x41:0 > -1) 16.05/9.02 f3950_0_createList_LE(i960:0:0, o1907[LinkedList$Entry.previous]o1905:0:0, o1907[LinkedList$Entry.previous]o1905:0:0, o1906[LinkedList$Entry.next]o1906:0:0, o1906[LinkedList$Entry.next]o1904:0:0, o1905[LinkedList$Entry.previous]o1905:0:0, o1905[LinkedList$Entry.previous]o1904:0:0, o1907[LinkedList$Entry.previous]o1904:0:0, o1905[LinkedList$Entry.previous]o1906:0:0, o1907[LinkedList$Entry.previous]o1906:0:0, o1907[LinkedList$Entry.previous]o1904:0:0, o1907[LinkedList$Entry.previous]o1906:0:0, o1906[LinkedList$Entry.next]o1906:0:0, o1907[LinkedList$Entry.previous]o1906:0:0, o1905[LinkedList$Entry.previous]o1906:0:0, o1907[LinkedList$Entry.previous]o1906:0:0, i971:0:0, i945:0:0) -> f3950_0_createList_LE(c2, o1960[LinkedList$Entry.previous]o1905:0:0, o1907[LinkedList$Entry.previous]o1905:0:0, c3, o1982[LinkedList$Entry.next]o1904:0:0, o1905[LinkedList$Entry.previous]o1905:0:0, o1905[LinkedList$Entry.previous]o1904:0:0, o1960[LinkedList$Entry.previous]o1904:0:0, o1905[LinkedList$Entry.previous]o1906:0:0, c4, o1907[LinkedList$Entry.previous]o1904:0:0, o1907[LinkedList$Entry.previous]o1906:0:0, c5, o1982[LinkedList$Entry.previous]o1960:0:0, o1905[LinkedList$Entry.previous]o1960:0:0, o1960[LinkedList$Entry.previous]o1960:0:0, i971:0:0, c6) :|: c6 = i945:0:0 + 1 && (c5 = 1 && (c4 = 1 && (c3 = 4 && c2 = i960:0:0 - 1))) && (o1905[LinkedList$Entry.previous]o1906:0:0 > 0 && o1907[LinkedList$Entry.previous]o1905:0:0 > 0 && o1905[LinkedList$Entry.previous]o1905:0:0 > 0 && o1905[LinkedList$Entry.previous]o1904:0:0 > 0 && o1907[LinkedList$Entry.previous]o1906:0:0 > 0 && o1907[LinkedList$Entry.previous]o1904:0:0 > 0 && o1906[LinkedList$Entry.next]o1906:0:0 > 0 && o1906[LinkedList$Entry.next]o1904:0:0 > 0 && i945:0:0 > -1 && i971:0:0 > i945:0:0 && i960:0:0 > 0 && i971:0:0 > -1) 16.05/9.02 16.05/9.02 The following rules are bounded: 16.05/9.02 f3950_0_createList_LE(x25:0, x26:0, x27:0, x28:0, x29:0, x30:0, x31:0, x32:0, x33:0, x34:0, x35:0, x36:0, x37:0, x38:0, x39:0, x40:0, x41:0, x42:0) -> f3950_0_createList_LE(c, x44:0, x27:0, x28:0, x29:0, x30:0, x31:0, x45:0, x33:0, x46:0, x35:0, x36:0, x47:0, x48:0, x49:0, x50:0, x41:0, c1) :|: c1 = x42:0 + 1 && c = x25:0 - 1 && (x39:0 > 0 && x38:0 > 0 && x26:0 > 0 && x37:0 > 0 && x34:0 > 0 && x32:0 > 0 && x40:0 > 0 && x30:0 > 0 && x31:0 > 0 && x36:0 > 0 && x35:0 > 0 && x28:0 > 0 && x29:0 > 0 && x42:0 > -1 && x42:0 < x41:0 && x25:0 > 0 && x41:0 > -1) 16.05/9.02 f3950_0_createList_LE(i960:0:0, o1907[LinkedList$Entry.previous]o1905:0:0, o1907[LinkedList$Entry.previous]o1905:0:0, o1906[LinkedList$Entry.next]o1906:0:0, o1906[LinkedList$Entry.next]o1904:0:0, o1905[LinkedList$Entry.previous]o1905:0:0, o1905[LinkedList$Entry.previous]o1904:0:0, o1907[LinkedList$Entry.previous]o1904:0:0, o1905[LinkedList$Entry.previous]o1906:0:0, o1907[LinkedList$Entry.previous]o1906:0:0, o1907[LinkedList$Entry.previous]o1904:0:0, o1907[LinkedList$Entry.previous]o1906:0:0, o1906[LinkedList$Entry.next]o1906:0:0, o1907[LinkedList$Entry.previous]o1906:0:0, o1905[LinkedList$Entry.previous]o1906:0:0, o1907[LinkedList$Entry.previous]o1906:0:0, i971:0:0, i945:0:0) -> f3950_0_createList_LE(c2, o1960[LinkedList$Entry.previous]o1905:0:0, o1907[LinkedList$Entry.previous]o1905:0:0, c3, o1982[LinkedList$Entry.next]o1904:0:0, o1905[LinkedList$Entry.previous]o1905:0:0, o1905[LinkedList$Entry.previous]o1904:0:0, o1960[LinkedList$Entry.previous]o1904:0:0, o1905[LinkedList$Entry.previous]o1906:0:0, c4, o1907[LinkedList$Entry.previous]o1904:0:0, o1907[LinkedList$Entry.previous]o1906:0:0, c5, o1982[LinkedList$Entry.previous]o1960:0:0, o1905[LinkedList$Entry.previous]o1960:0:0, o1960[LinkedList$Entry.previous]o1960:0:0, i971:0:0, c6) :|: c6 = i945:0:0 + 1 && (c5 = 1 && (c4 = 1 && (c3 = 4 && c2 = i960:0:0 - 1))) && (o1905[LinkedList$Entry.previous]o1906:0:0 > 0 && o1907[LinkedList$Entry.previous]o1905:0:0 > 0 && o1905[LinkedList$Entry.previous]o1905:0:0 > 0 && o1905[LinkedList$Entry.previous]o1904:0:0 > 0 && o1907[LinkedList$Entry.previous]o1906:0:0 > 0 && o1907[LinkedList$Entry.previous]o1904:0:0 > 0 && o1906[LinkedList$Entry.next]o1906:0:0 > 0 && o1906[LinkedList$Entry.next]o1904:0:0 > 0 && i945:0:0 > -1 && i971:0:0 > i945:0:0 && i960:0:0 > 0 && i971:0:0 > -1) 16.05/9.02 16.05/9.02 16.05/9.02 ---------------------------------------- 16.05/9.02 16.05/9.02 (18) 16.05/9.02 YES 16.05/9.04 EOF