25.63/7.84 YES 25.63/7.85 proof of /export/starexec/sandbox/benchmark/theBenchmark.jar 25.63/7.85 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 25.63/7.85 25.63/7.85 25.63/7.85 termination of the given Bare JBC problem could be proven: 25.63/7.85 25.63/7.85 (0) Bare JBC problem 25.63/7.85 (1) BareJBCToJBCProof [EQUIVALENT, 96 ms] 25.63/7.85 (2) JBC problem 25.63/7.85 (3) JBCToGraph [EQUIVALENT, 2571 ms] 25.63/7.85 (4) JBCTerminationGraph 25.63/7.85 (5) TerminationGraphToSCCProof [SOUND, 0 ms] 25.63/7.85 (6) AND 25.63/7.85 (7) JBCTerminationSCC 25.63/7.85 (8) SCCToIRSProof [SOUND, 254 ms] 25.63/7.85 (9) IRSwT 25.63/7.85 (10) IRSFormatTransformerProof [EQUIVALENT, 0 ms] 25.63/7.85 (11) IRSwT 25.63/7.85 (12) IRSwTTerminationDigraphProof [EQUIVALENT, 43 ms] 25.63/7.85 (13) IRSwT 25.63/7.85 (14) IntTRSCompressionProof [EQUIVALENT, 0 ms] 25.63/7.85 (15) IRSwT 25.63/7.85 (16) TempFilterProof [SOUND, 2163 ms] 25.63/7.85 (17) IRSwT 25.63/7.85 (18) IRSwTTerminationDigraphProof [EQUIVALENT, 0 ms] 25.63/7.85 (19) IRSwT 25.63/7.85 (20) IntTRSUnneededArgumentFilterProof [EQUIVALENT, 0 ms] 25.63/7.85 (21) IRSwT 25.63/7.85 (22) TempFilterProof [SOUND, 1 ms] 25.63/7.85 (23) IRSwT 25.63/7.85 (24) IRSwTToQDPProof [SOUND, 0 ms] 25.63/7.85 (25) QDP 25.63/7.85 (26) QDPSizeChangeProof [EQUIVALENT, 0 ms] 25.63/7.85 (27) YES 25.63/7.85 (28) JBCTerminationSCC 25.63/7.85 (29) SCCToIRSProof [SOUND, 191 ms] 25.63/7.85 (30) IRSwT 25.63/7.85 (31) IRSFormatTransformerProof [EQUIVALENT, 0 ms] 25.63/7.85 (32) IRSwT 25.63/7.85 (33) IRSwTTerminationDigraphProof [EQUIVALENT, 57 ms] 25.63/7.85 (34) IRSwT 25.63/7.85 (35) IntTRSCompressionProof [EQUIVALENT, 7 ms] 25.63/7.85 (36) IRSwT 25.63/7.85 (37) TempFilterProof [SOUND, 27 ms] 25.63/7.85 (38) IRSwT 25.63/7.85 (39) IRSwTToQDPProof [SOUND, 0 ms] 25.63/7.85 (40) QDP 25.63/7.85 (41) QDPSizeChangeProof [EQUIVALENT, 0 ms] 25.63/7.85 (42) YES 25.63/7.85 (43) JBCTerminationSCC 25.63/7.85 (44) SCCToIRSProof [SOUND, 809 ms] 25.63/7.85 (45) IRSwT 25.63/7.85 (46) IRSFormatTransformerProof [EQUIVALENT, 0 ms] 25.63/7.85 (47) IRSwT 25.63/7.85 (48) IRSwTTerminationDigraphProof [EQUIVALENT, 17 ms] 25.63/7.85 (49) IRSwT 25.63/7.85 (50) IntTRSCompressionProof [EQUIVALENT, 0 ms] 25.63/7.85 (51) IRSwT 25.63/7.85 (52) TempFilterProof [SOUND, 13 ms] 25.63/7.85 (53) IntTRS 25.63/7.85 (54) PolynomialOrderProcessor [EQUIVALENT, 0 ms] 25.63/7.85 (55) YES 25.63/7.85 25.63/7.85 25.63/7.85 ---------------------------------------- 25.63/7.85 25.63/7.85 (0) 25.63/7.85 Obligation: 25.63/7.85 need to prove termination of the following program: 25.63/7.85 /* 25.63/7.85 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 25.63/7.85 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 25.63/7.85 * 25.63/7.85 * This code is free software; you can redistribute it and/or modify it 25.63/7.85 * under the terms of the GNU General Public License version 2 only, as 25.63/7.85 * published by the Free Software Foundation. Sun designates this 25.63/7.85 * particular file as subject to the "Classpath" exception as provided 25.63/7.85 * by Sun in the LICENSE file that accompanied this code. 25.63/7.85 * 25.63/7.85 * This code is distributed in the hope that it will be useful, but WITHOUT 25.63/7.85 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 25.63/7.85 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 25.63/7.85 * version 2 for more details (a copy is included in the LICENSE file that 25.63/7.85 * accompanied this code). 25.63/7.85 * 25.63/7.85 * You should have received a copy of the GNU General Public License version 25.63/7.85 * 2 along with this work; if not, write to the Free Software Foundation, 25.63/7.85 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 25.63/7.85 * 25.63/7.85 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 25.63/7.85 * CA 95054 USA or visit www.sun.com if you need additional information or 25.63/7.85 * have any questions. 25.63/7.85 */ 25.63/7.85 25.63/7.85 package javaUtilEx; 25.63/7.85 25.63/7.85 /** 25.63/7.85 * This class provides a skeletal implementation of the Collection 25.63/7.85 * interface, to minimize the effort required to implement this interface.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

To implement an unmodifiable map, the programmer needs only to extend this 25.63/7.85 * class and provide an implementation for the entrySet method, which 25.63/7.85 * returns a set-view of the map's mappings. Typically, the returned set 25.63/7.85 * will, in turn, be implemented atop AbstractSet. This set should 25.63/7.85 * not support the add or remove methods, and its iterator 25.63/7.85 * should not support the remove method. 25.63/7.85 * 25.63/7.85 *

To implement a modifiable map, the programmer must additionally override 25.63/7.85 * this class's put method (which otherwise throws an 25.63/7.85 * UnsupportedOperationException), and the iterator returned by 25.63/7.85 * entrySet().iterator() must additionally implement its 25.63/7.85 * remove method. 25.63/7.85 * 25.63/7.85 *

The programmer should generally provide a void (no argument) and map 25.63/7.85 * constructor, as per the recommendation in the Map interface 25.63/7.85 * specification. 25.63/7.85 * 25.63/7.85 *

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

This class is a member of the 25.63/7.85 * 25.63/7.85 * Java Collections Framework. 25.63/7.85 * 25.63/7.85 * @param the type of keys maintained by this map 25.63/7.85 * @param the type of mapped values 25.63/7.85 * 25.63/7.85 * @author Josh Bloch 25.63/7.85 * @author Neal Gafter 25.63/7.85 * @see Map 25.63/7.85 * @see Collection 25.63/7.85 * @since 1.2 25.63/7.85 */ 25.63/7.85 25.63/7.85 public abstract class AbstractMap implements Map { 25.63/7.85 /** 25.63/7.85 * Sole constructor. (For invocation by subclass constructors, typically 25.63/7.85 * implicit.) 25.63/7.85 */ 25.63/7.85 protected AbstractMap() { 25.63/7.85 } 25.63/7.85 25.63/7.85 // Query Operations 25.63/7.85 25.63/7.85 /** 25.63/7.85 * {@inheritDoc} 25.63/7.85 * 25.63/7.85 *

This implementation returns entrySet().size(). 25.63/7.85 */ 25.63/7.85 public int size() { 25.63/7.85 return entrySet().size(); 25.63/7.85 } 25.63/7.85 25.63/7.85 /** 25.63/7.85 * {@inheritDoc} 25.63/7.85 * 25.63/7.85 *

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

This implementation iterates over entrySet() searching 25.63/7.85 * for an entry with the specified value. If such an entry is found, 25.63/7.85 * true is returned. If the iteration terminates without 25.63/7.85 * finding such an entry, false is returned. Note that this 25.63/7.85 * implementation requires linear time in the size of the map. 25.63/7.85 * 25.63/7.85 * @throws ClassCastException {@inheritDoc} 25.63/7.85 * @throws NullPointerException {@inheritDoc} 25.63/7.85 */ 25.63/7.85 public boolean containsValue(Object value) { 25.63/7.85 Iterator> i = entrySet().iterator(); 25.63/7.85 if (value==null) { 25.63/7.85 while (i.hasNext()) { 25.63/7.85 Entry e = i.next(); 25.63/7.85 if (e.getValue()==null) 25.63/7.85 return true; 25.63/7.85 } 25.63/7.85 } else { 25.63/7.85 while (i.hasNext()) { 25.63/7.85 Entry e = i.next(); 25.63/7.85 if (value.equals(e.getValue())) 25.63/7.85 return true; 25.63/7.85 } 25.63/7.85 } 25.63/7.85 return false; 25.63/7.85 } 25.63/7.85 25.63/7.85 /** 25.63/7.85 * {@inheritDoc} 25.63/7.85 * 25.63/7.85 *

This implementation iterates over entrySet() searching 25.63/7.85 * for an entry with the specified key. If such an entry is found, 25.63/7.85 * true is returned. If the iteration terminates without 25.63/7.85 * finding such an entry, false is returned. Note that this 25.63/7.85 * implementation requires linear time in the size of the map; many 25.63/7.85 * implementations will override this method. 25.63/7.85 * 25.63/7.85 * @throws ClassCastException {@inheritDoc} 25.63/7.85 * @throws NullPointerException {@inheritDoc} 25.63/7.85 */ 25.63/7.85 public boolean containsKey(Object key) { 25.63/7.85 Iterator> i = entrySet().iterator(); 25.63/7.85 if (key==null) { 25.63/7.85 while (i.hasNext()) { 25.63/7.85 Entry e = i.next(); 25.63/7.85 if (e.getKey()==null) 25.63/7.85 return true; 25.63/7.85 } 25.63/7.85 } else { 25.63/7.85 while (i.hasNext()) { 25.63/7.85 Entry e = i.next(); 25.63/7.85 if (key.equals(e.getKey())) 25.63/7.85 return true; 25.63/7.85 } 25.63/7.85 } 25.63/7.85 return false; 25.63/7.85 } 25.63/7.85 25.63/7.85 /** 25.63/7.85 * {@inheritDoc} 25.63/7.85 * 25.63/7.85 *

This implementation iterates over entrySet() searching 25.63/7.85 * for an entry with the specified key. If such an entry is found, 25.63/7.85 * the entry's value is returned. If the iteration terminates without 25.63/7.85 * finding such an entry, null is returned. Note that this 25.63/7.85 * implementation requires linear time in the size of the map; many 25.63/7.85 * implementations will override this method. 25.63/7.85 * 25.63/7.85 * @throws ClassCastException {@inheritDoc} 25.63/7.85 * @throws NullPointerException {@inheritDoc} 25.63/7.85 */ 25.63/7.85 public V get(Object key) { 25.63/7.85 Iterator> i = entrySet().iterator(); 25.63/7.85 if (key==null) { 25.63/7.85 while (i.hasNext()) { 25.63/7.85 Entry e = i.next(); 25.63/7.85 if (e.getKey()==null) 25.63/7.85 return e.getValue(); 25.63/7.85 } 25.63/7.85 } else { 25.63/7.85 while (i.hasNext()) { 25.63/7.85 Entry e = i.next(); 25.63/7.85 if (key.equals(e.getKey())) 25.63/7.85 return e.getValue(); 25.63/7.85 } 25.63/7.85 } 25.63/7.85 return null; 25.63/7.85 } 25.63/7.85 25.63/7.85 25.63/7.85 // Modification Operations 25.63/7.85 25.63/7.85 /** 25.63/7.85 * {@inheritDoc} 25.63/7.85 * 25.63/7.85 *

This implementation always throws an 25.63/7.85 * UnsupportedOperationException. 25.63/7.85 * 25.63/7.85 * @throws UnsupportedOperationException {@inheritDoc} 25.63/7.85 * @throws ClassCastException {@inheritDoc} 25.63/7.85 * @throws NullPointerException {@inheritDoc} 25.63/7.85 * @throws IllegalArgumentException {@inheritDoc} 25.63/7.85 */ 25.63/7.85 public V put(K key, V value) { 25.63/7.85 throw new UnsupportedOperationException(); 25.63/7.85 } 25.63/7.85 25.63/7.85 /** 25.63/7.85 * {@inheritDoc} 25.63/7.85 * 25.63/7.85 *

This implementation iterates over entrySet() searching for an 25.63/7.85 * entry with the specified key. If such an entry is found, its value is 25.63/7.85 * obtained with its getValue operation, the entry is removed 25.63/7.85 * from the collection (and the backing map) with the iterator's 25.63/7.85 * remove operation, and the saved value is returned. If the 25.63/7.85 * iteration terminates without finding such an entry, null is 25.63/7.85 * returned. Note that this implementation requires linear time in the 25.63/7.85 * size of the map; many implementations will override this method. 25.63/7.85 * 25.63/7.85 *

Note that this implementation throws an 25.63/7.85 * UnsupportedOperationException if the entrySet 25.63/7.85 * iterator does not support the remove method and this map 25.63/7.85 * contains a mapping for the specified key. 25.63/7.85 * 25.63/7.85 * @throws UnsupportedOperationException {@inheritDoc} 25.63/7.85 * @throws ClassCastException {@inheritDoc} 25.63/7.85 * @throws NullPointerException {@inheritDoc} 25.63/7.85 */ 25.63/7.85 public V remove(Object key) { 25.63/7.85 Iterator> i = entrySet().iterator(); 25.63/7.85 Entry correctEntry = null; 25.63/7.85 if (key==null) { 25.63/7.85 while (correctEntry==null && i.hasNext()) { 25.63/7.85 Entry e = i.next(); 25.63/7.85 if (e.getKey()==null) 25.63/7.85 correctEntry = e; 25.63/7.85 } 25.63/7.85 } else { 25.63/7.85 while (correctEntry==null && i.hasNext()) { 25.63/7.85 Entry e = i.next(); 25.63/7.85 if (key.equals(e.getKey())) 25.63/7.85 correctEntry = e; 25.63/7.85 } 25.63/7.85 } 25.63/7.85 25.63/7.85 V oldValue = null; 25.63/7.85 if (correctEntry !=null) { 25.63/7.85 oldValue = correctEntry.getValue(); 25.63/7.85 i.remove(); 25.63/7.85 } 25.63/7.85 return oldValue; 25.63/7.85 } 25.63/7.85 25.63/7.85 25.63/7.85 // Bulk Operations 25.63/7.85 25.63/7.85 /** 25.63/7.85 * {@inheritDoc} 25.63/7.85 * 25.63/7.85 *

This implementation iterates over the specified map's 25.63/7.85 * entrySet() collection, and calls this map's put 25.63/7.85 * operation once for each entry returned by the iteration. 25.63/7.85 * 25.63/7.85 *

Note that this implementation throws an 25.63/7.85 * UnsupportedOperationException if this map does not support 25.63/7.85 * the put operation and the specified map is nonempty. 25.63/7.85 * 25.63/7.85 * @throws UnsupportedOperationException {@inheritDoc} 25.63/7.85 * @throws ClassCastException {@inheritDoc} 25.63/7.85 * @throws NullPointerException {@inheritDoc} 25.63/7.85 * @throws IllegalArgumentException {@inheritDoc} 25.63/7.85 */ 25.63/7.85 public void putAll(Map m) { 25.63/7.85 Iterator it = m.entrySet().iterator(); 25.63/7.85 while (it.hasNext()) { 25.63/7.85 Map.Entry e = (Map.Entry) it.next(); 25.63/7.85 put((K) e.getKey(), (V) e.getValue()); 25.63/7.85 } 25.63/7.85 } 25.63/7.85 25.63/7.85 /** 25.63/7.85 * {@inheritDoc} 25.63/7.85 * 25.63/7.85 *

This implementation calls entrySet().clear(). 25.63/7.85 * 25.63/7.85 *

Note that this implementation throws an 25.63/7.85 * UnsupportedOperationException if the entrySet 25.63/7.85 * does not support the clear operation. 25.63/7.85 * 25.63/7.85 * @throws UnsupportedOperationException {@inheritDoc} 25.63/7.85 */ 25.63/7.85 public void clear() { 25.63/7.85 entrySet().clear(); 25.63/7.85 } 25.63/7.85 25.63/7.85 25.63/7.85 // Views 25.63/7.85 25.63/7.85 /** 25.63/7.85 * Each of these fields are initialized to contain an instance of the 25.63/7.85 * appropriate view the first time this view is requested. The views are 25.63/7.85 * stateless, so there's no reason to create more than one of each. 25.63/7.85 */ 25.63/7.85 transient volatile Set keySet = null; 25.63/7.85 transient volatile Collection values = null; 25.63/7.85 25.63/7.85 /** 25.63/7.85 * {@inheritDoc} 25.63/7.85 * 25.63/7.85 *

This implementation returns a set that subclasses {@link AbstractSet}. 25.63/7.85 * The subclass's iterator method returns a "wrapper object" over this 25.63/7.85 * map's entrySet() iterator. The size method 25.63/7.85 * delegates to this map's size method and the 25.63/7.85 * contains method delegates to this map's 25.63/7.85 * containsKey method. 25.63/7.85 * 25.63/7.85 *

The set is created the first time this method is called, 25.63/7.85 * and returned in response to all subsequent calls. No synchronization 25.63/7.85 * is performed, so there is a slight chance that multiple calls to this 25.63/7.85 * method will not all return the same set. 25.63/7.85 */ 25.63/7.85 public Set keySet() { 25.63/7.85 if (keySet == null) { 25.63/7.85 keySet = new AbstractSet() { 25.63/7.85 public Iterator iterator() { 25.63/7.85 return new Iterator() { 25.63/7.85 private Iterator> i = entrySet().iterator(); 25.63/7.85 25.63/7.85 public boolean hasNext() { 25.63/7.86 return i.hasNext(); 25.63/7.86 } 25.63/7.86 25.63/7.86 public K next() { 25.63/7.86 return i.next().getKey(); 25.63/7.86 } 25.63/7.86 25.63/7.86 public void remove() { 25.63/7.86 i.remove(); 25.63/7.86 } 25.63/7.86 }; 25.63/7.86 } 25.63/7.86 25.63/7.86 public int size() { 25.63/7.86 return AbstractMap.this.size(); 25.63/7.86 } 25.63/7.86 25.63/7.86 public boolean isEmpty() { 25.63/7.86 return AbstractMap.this.isEmpty(); 25.63/7.86 } 25.63/7.86 25.63/7.86 public void clear() { 25.63/7.86 AbstractMap.this.clear(); 25.63/7.86 } 25.63/7.86 25.63/7.86 public boolean contains(Object k) { 25.63/7.86 return AbstractMap.this.containsKey(k); 25.63/7.86 } 25.63/7.86 25.63/7.86 public Object[] toArray() { 25.63/7.86 Object[] res = new Object[AbstractMap.this.size()]; 25.63/7.86 Iterator> it = entrySet().iterator(); 25.63/7.86 int i = 0; 25.63/7.86 while (it.hasNext()) 25.63/7.86 res[i++] = it.next().getKey(); 25.63/7.86 return res; 25.63/7.86 } 25.63/7.86 25.63/7.86 public T[] toArray(T[] a) { 25.63/7.86 a = (T[])java.lang.reflect.Array.newInstance( 25.63/7.86 a.getClass().getComponentType(), AbstractMap.this.size()); 25.63/7.86 Object[] res = a; 25.63/7.86 Iterator> it = entrySet().iterator(); 25.63/7.86 int i = 0; 25.63/7.86 while (it.hasNext()) 25.63/7.86 res[i++] = it.next().getKey(); 25.63/7.86 return a; 25.63/7.86 } 25.63/7.86 }; 25.63/7.86 } 25.63/7.86 return keySet; 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * {@inheritDoc} 25.63/7.86 * 25.63/7.86 *

This implementation returns a collection that subclasses {@link 25.63/7.86 * AbstractCollection}. The subclass's iterator method returns a 25.63/7.86 * "wrapper object" over this map's entrySet() iterator. 25.63/7.86 * The size method delegates to this map's size 25.63/7.86 * method and the contains method delegates to this map's 25.63/7.86 * containsValue method. 25.63/7.86 * 25.63/7.86 *

The collection is created the first time this method is called, and 25.63/7.86 * returned in response to all subsequent calls. No synchronization is 25.63/7.86 * performed, so there is a slight chance that multiple calls to this 25.63/7.86 * method will not all return the same collection. 25.63/7.86 */ 25.63/7.86 public Collection values() { 25.63/7.86 if (values == null) { 25.63/7.86 values = new AbstractCollection() { 25.63/7.86 public Iterator iterator() { 25.63/7.86 return new Iterator() { 25.63/7.86 private Iterator> i = entrySet().iterator(); 25.63/7.86 25.63/7.86 public boolean hasNext() { 25.63/7.86 return i.hasNext(); 25.63/7.86 } 25.63/7.86 25.63/7.86 public V next() { 25.63/7.86 return i.next().getValue(); 25.63/7.86 } 25.63/7.86 25.63/7.86 public void remove() { 25.63/7.86 i.remove(); 25.63/7.86 } 25.63/7.86 }; 25.63/7.86 } 25.63/7.86 25.63/7.86 public int size() { 25.63/7.86 return AbstractMap.this.size(); 25.63/7.86 } 25.63/7.86 25.63/7.86 public boolean isEmpty() { 25.63/7.86 return AbstractMap.this.isEmpty(); 25.63/7.86 } 25.63/7.86 25.63/7.86 public void clear() { 25.63/7.86 AbstractMap.this.clear(); 25.63/7.86 } 25.63/7.86 25.63/7.86 public boolean contains(Object v) { 25.63/7.86 return AbstractMap.this.containsValue(v); 25.63/7.86 } 25.63/7.86 }; 25.63/7.86 } 25.63/7.86 return values; 25.63/7.86 } 25.63/7.86 25.63/7.86 public abstract Set> entrySet(); 25.63/7.86 25.63/7.86 25.63/7.86 // Comparison and hashing 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Compares the specified object with this map for equality. Returns 25.63/7.86 * true if the given object is also a map and the two maps 25.63/7.86 * represent the same mappings. More formally, two maps m1 and 25.63/7.86 * m2 represent the same mappings if 25.63/7.86 * m1.entrySet().equals(m2.entrySet()). This ensures that the 25.63/7.86 * equals method works properly across different implementations 25.63/7.86 * of the Map interface. 25.63/7.86 * 25.63/7.86 *

This implementation first checks if the specified object is this map; 25.63/7.86 * if so it returns true. Then, it checks if the specified 25.63/7.86 * object is a map whose size is identical to the size of this map; if 25.63/7.86 * not, it returns false. If so, it iterates over this map's 25.63/7.86 * entrySet collection, and checks that the specified map 25.63/7.86 * contains each mapping that this map contains. If the specified map 25.63/7.86 * fails to contain such a mapping, false is returned. If the 25.63/7.86 * iteration completes, true is returned. 25.63/7.86 * 25.63/7.86 * @param o object to be compared for equality with this map 25.63/7.86 * @return true if the specified object is equal to this map 25.63/7.86 */ 25.63/7.86 public boolean equals(Object o) { 25.63/7.86 if (o == this) 25.63/7.86 return true; 25.63/7.86 25.63/7.86 if (!(o instanceof Map)) 25.63/7.86 return false; 25.63/7.86 Map m = (Map) o; 25.63/7.86 if (m.size() != size()) 25.63/7.86 return false; 25.63/7.86 25.63/7.86 try { 25.63/7.86 Iterator> i = entrySet().iterator(); 25.63/7.86 while (i.hasNext()) { 25.63/7.86 Entry e = i.next(); 25.63/7.86 K key = e.getKey(); 25.63/7.86 V value = e.getValue(); 25.63/7.86 if (value == null) { 25.63/7.86 if (!(m.get(key)==null && m.containsKey(key))) 25.63/7.86 return false; 25.63/7.86 } else { 25.63/7.86 if (!value.equals(m.get(key))) 25.63/7.86 return false; 25.63/7.86 } 25.63/7.86 } 25.63/7.86 } catch (ClassCastException unused) { 25.63/7.86 return false; 25.63/7.86 } catch (NullPointerException unused) { 25.63/7.86 return false; 25.63/7.86 } 25.63/7.86 25.63/7.86 return true; 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Returns the hash code value for this map. The hash code of a map is 25.63/7.86 * defined to be the sum of the hash codes of each entry in the map's 25.63/7.86 * entrySet() view. This ensures that m1.equals(m2) 25.63/7.86 * implies that m1.hashCode()==m2.hashCode() for any two maps 25.63/7.86 * m1 and m2, as required by the general contract of 25.63/7.86 * {@link Object#hashCode}. 25.63/7.86 * 25.63/7.86 *

This implementation iterates over entrySet(), calling 25.63/7.86 * {@link Map.Entry#hashCode hashCode()} on each element (entry) in the 25.63/7.86 * set, and adding up the results. 25.63/7.86 * 25.63/7.86 * @return the hash code value for this map 25.63/7.86 * @see Map.Entry#hashCode() 25.63/7.86 * @see Object#equals(Object) 25.63/7.86 * @see Set#equals(Object) 25.63/7.86 */ 25.63/7.86 public int hashCode() { 25.63/7.86 int h = 0; 25.63/7.86 Iterator> i = entrySet().iterator(); 25.63/7.86 while (i.hasNext()) 25.63/7.86 h += i.next().hashCode(); 25.63/7.86 return h; 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Returns a string representation of this map. The string representation 25.63/7.86 * consists of a list of key-value mappings in the order returned by the 25.63/7.86 * map's entrySet view's iterator, enclosed in braces 25.63/7.86 * ("{}"). Adjacent mappings are separated by the characters 25.63/7.86 * ", " (comma and space). Each key-value mapping is rendered as 25.63/7.86 * the key followed by an equals sign ("=") followed by the 25.63/7.86 * associated value. Keys and values are converted to strings as by 25.63/7.86 * {@link String#valueOf(Object)}. 25.63/7.86 * 25.63/7.86 * @return a string representation of this map 25.63/7.86 */ 25.63/7.86 public String toString() { 25.63/7.86 Iterator> i = entrySet().iterator(); 25.63/7.86 if (! i.hasNext()) 25.63/7.86 return "{}"; 25.63/7.86 25.63/7.86 StringBuilder sb = new StringBuilder(); 25.63/7.86 sb.append('{'); 25.63/7.86 for (;;) { 25.63/7.86 Entry e = i.next(); 25.63/7.86 K key = e.getKey(); 25.63/7.86 V value = e.getValue(); 25.63/7.86 sb.append(key == this ? "(this Map)" : key); 25.63/7.86 sb.append('='); 25.63/7.86 sb.append(value == this ? "(this Map)" : value); 25.63/7.86 if (! i.hasNext()) 25.63/7.86 return sb.append('}').toString(); 25.63/7.86 sb.append(", "); 25.63/7.86 } 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Returns a shallow copy of this AbstractMap instance: the keys 25.63/7.86 * and values themselves are not cloned. 25.63/7.86 * 25.63/7.86 * @return a shallow copy of this map 25.63/7.86 */ 25.63/7.86 protected Object clone() throws CloneNotSupportedException { 25.63/7.86 AbstractMap result = (AbstractMap)super.clone(); 25.63/7.86 result.keySet = null; 25.63/7.86 result.values = null; 25.63/7.86 return result; 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Utility method for SimpleEntry and SimpleImmutableEntry. 25.63/7.86 * Test for equality, checking for nulls. 25.63/7.86 */ 25.63/7.86 private static boolean eq(Object o1, Object o2) { 25.63/7.86 return o1 == null ? o2 == null : o1.equals(o2); 25.63/7.86 } 25.63/7.86 25.63/7.86 // Implementation Note: SimpleEntry and SimpleImmutableEntry 25.63/7.86 // are distinct unrelated classes, even though they share 25.63/7.86 // some code. Since you can't add or subtract final-ness 25.63/7.86 // of a field in a subclass, they can't share representations, 25.63/7.86 // and the amount of duplicated code is too small to warrant 25.63/7.86 // exposing a common abstract class. 25.63/7.86 25.63/7.86 25.63/7.86 /** 25.63/7.86 * An Entry maintaining a key and a value. The value may be 25.63/7.86 * changed using the setValue method. This class 25.63/7.86 * facilitates the process of building custom map 25.63/7.86 * implementations. For example, it may be convenient to return 25.63/7.86 * arrays of SimpleEntry instances in method 25.63/7.86 * Map.entrySet().toArray. 25.63/7.86 * 25.63/7.86 * @since 1.6 25.63/7.86 */ 25.63/7.86 public static class SimpleEntry 25.63/7.86 implements Entry, java.io.Serializable 25.63/7.86 { 25.63/7.86 private static final long serialVersionUID = -8499721149061103585L; 25.63/7.86 25.63/7.86 private final K key; 25.63/7.86 private V value; 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Creates an entry representing a mapping from the specified 25.63/7.86 * key to the specified value. 25.63/7.86 * 25.63/7.86 * @param key the key represented by this entry 25.63/7.86 * @param value the value represented by this entry 25.63/7.86 */ 25.63/7.86 public SimpleEntry(K key, V value) { 25.63/7.86 this.key = key; 25.63/7.86 this.value = value; 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Creates an entry representing the same mapping as the 25.63/7.86 * specified entry. 25.63/7.86 * 25.63/7.86 * @param entry the entry to copy 25.63/7.86 */ 25.63/7.86 public SimpleEntry(Entry entry) { 25.63/7.86 this.key = entry.getKey(); 25.63/7.86 this.value = entry.getValue(); 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Returns the key corresponding to this entry. 25.63/7.86 * 25.63/7.86 * @return the key corresponding to this entry 25.63/7.86 */ 25.63/7.86 public K getKey() { 25.63/7.86 return key; 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Returns the value corresponding to this entry. 25.63/7.86 * 25.63/7.86 * @return the value corresponding to this entry 25.63/7.86 */ 25.63/7.86 public V getValue() { 25.63/7.86 return value; 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Replaces the value corresponding to this entry with the specified 25.63/7.86 * value. 25.63/7.86 * 25.63/7.86 * @param value new value to be stored in this entry 25.63/7.86 * @return the old value corresponding to the entry 25.63/7.86 */ 25.63/7.86 public V setValue(V value) { 25.63/7.86 V oldValue = this.value; 25.63/7.86 this.value = value; 25.63/7.86 return oldValue; 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Compares the specified object with this entry for equality. 25.63/7.86 * Returns {@code true} if the given object is also a map entry and 25.63/7.86 * the two entries represent the same mapping. More formally, two 25.63/7.86 * entries {@code e1} and {@code e2} represent the same mapping 25.63/7.86 * if

25.63/7.86	         *   (e1.getKey()==null ?
25.63/7.86	         *    e2.getKey()==null :
25.63/7.86	         *    e1.getKey().equals(e2.getKey()))
25.63/7.86	         *   &&
25.63/7.86	         *   (e1.getValue()==null ?
25.63/7.86	         *    e2.getValue()==null :
25.63/7.86	         *    e1.getValue().equals(e2.getValue()))
25.63/7.86 * This ensures that the {@code equals} method works properly across 25.63/7.86 * different implementations of the {@code Map.Entry} interface. 25.63/7.86 * 25.63/7.86 * @param o object to be compared for equality with this map entry 25.63/7.86 * @return {@code true} if the specified object is equal to this map 25.63/7.86 * entry 25.63/7.86 * @see #hashCode 25.63/7.86 */ 25.63/7.86 public boolean equals(Object o) { 25.63/7.86 if (!(o instanceof Map.Entry)) 25.63/7.86 return false; 25.63/7.86 Map.Entry e = (Map.Entry)o; 25.63/7.86 return eq(key, e.getKey()) && eq(value, e.getValue()); 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Returns the hash code value for this map entry. The hash code 25.63/7.86 * of a map entry {@code e} is defined to be:
25.63/7.86	         *   (e.getKey()==null   ? 0 : e.getKey().hashCode()) ^
25.63/7.86	         *   (e.getValue()==null ? 0 : e.getValue().hashCode())
25.63/7.86 * This ensures that {@code e1.equals(e2)} implies that 25.63/7.86 * {@code e1.hashCode()==e2.hashCode()} for any two Entries 25.63/7.86 * {@code e1} and {@code e2}, as required by the general 25.63/7.86 * contract of {@link Object#hashCode}. 25.63/7.86 * 25.63/7.86 * @return the hash code value for this map entry 25.63/7.86 * @see #equals 25.63/7.86 */ 25.63/7.86 public int hashCode() { 25.63/7.86 return (key == null ? 0 : key.hashCode()) ^ 25.63/7.86 (value == null ? 0 : value.hashCode()); 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Returns a String representation of this map entry. This 25.63/7.86 * implementation returns the string representation of this 25.63/7.86 * entry's key followed by the equals character ("=") 25.63/7.86 * followed by the string representation of this entry's value. 25.63/7.86 * 25.63/7.86 * @return a String representation of this map entry 25.63/7.86 */ 25.63/7.86 public String toString() { 25.63/7.86 return key + "=" + value; 25.63/7.86 } 25.63/7.86 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * An Entry maintaining an immutable key and value. This class 25.63/7.86 * does not support method setValue. This class may be 25.63/7.86 * convenient in methods that return thread-safe snapshots of 25.63/7.86 * key-value mappings. 25.63/7.86 * 25.63/7.86 * @since 1.6 25.63/7.86 */ 25.63/7.86 public static class SimpleImmutableEntry 25.63/7.86 implements Entry, java.io.Serializable 25.63/7.86 { 25.63/7.86 private static final long serialVersionUID = 7138329143949025153L; 25.63/7.86 25.63/7.86 private final K key; 25.63/7.86 private final V value; 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Creates an entry representing a mapping from the specified 25.63/7.86 * key to the specified value. 25.63/7.86 * 25.63/7.86 * @param key the key represented by this entry 25.63/7.86 * @param value the value represented by this entry 25.63/7.86 */ 25.63/7.86 public SimpleImmutableEntry(K key, V value) { 25.63/7.86 this.key = key; 25.63/7.86 this.value = value; 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Creates an entry representing the same mapping as the 25.63/7.86 * specified entry. 25.63/7.86 * 25.63/7.86 * @param entry the entry to copy 25.63/7.86 */ 25.63/7.86 public SimpleImmutableEntry(Entry entry) { 25.63/7.86 this.key = entry.getKey(); 25.63/7.86 this.value = entry.getValue(); 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Returns the key corresponding to this entry. 25.63/7.86 * 25.63/7.86 * @return the key corresponding to this entry 25.63/7.86 */ 25.63/7.86 public K getKey() { 25.63/7.86 return key; 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Returns the value corresponding to this entry. 25.63/7.86 * 25.63/7.86 * @return the value corresponding to this entry 25.63/7.86 */ 25.63/7.86 public V getValue() { 25.63/7.86 return value; 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Replaces the value corresponding to this entry with the specified 25.63/7.86 * value (optional operation). This implementation simply throws 25.63/7.86 * UnsupportedOperationException, as this class implements 25.63/7.86 * an immutable map entry. 25.63/7.86 * 25.63/7.86 * @param value new value to be stored in this entry 25.63/7.86 * @return (Does not return) 25.63/7.86 * @throws UnsupportedOperationException always 25.63/7.86 */ 25.63/7.86 public V setValue(V value) { 25.63/7.86 throw new UnsupportedOperationException(); 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Compares the specified object with this entry for equality. 25.63/7.86 * Returns {@code true} if the given object is also a map entry and 25.63/7.86 * the two entries represent the same mapping. More formally, two 25.63/7.86 * entries {@code e1} and {@code e2} represent the same mapping 25.63/7.86 * if
25.63/7.86	         *   (e1.getKey()==null ?
25.63/7.86	         *    e2.getKey()==null :
25.63/7.86	         *    e1.getKey().equals(e2.getKey()))
25.63/7.86	         *   &&
25.63/7.86	         *   (e1.getValue()==null ?
25.63/7.86	         *    e2.getValue()==null :
25.63/7.86	         *    e1.getValue().equals(e2.getValue()))
25.63/7.86 * This ensures that the {@code equals} method works properly across 25.63/7.86 * different implementations of the {@code Map.Entry} interface. 25.63/7.86 * 25.63/7.86 * @param o object to be compared for equality with this map entry 25.63/7.86 * @return {@code true} if the specified object is equal to this map 25.63/7.86 * entry 25.63/7.86 * @see #hashCode 25.63/7.86 */ 25.63/7.86 public boolean equals(Object o) { 25.63/7.86 if (!(o instanceof Map.Entry)) 25.63/7.86 return false; 25.63/7.86 Map.Entry e = (Map.Entry)o; 25.63/7.86 return eq(key, e.getKey()) && eq(value, e.getValue()); 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Returns the hash code value for this map entry. The hash code 25.63/7.86 * of a map entry {@code e} is defined to be:
25.63/7.86	         *   (e.getKey()==null   ? 0 : e.getKey().hashCode()) ^
25.63/7.86	         *   (e.getValue()==null ? 0 : e.getValue().hashCode())
25.63/7.86 * This ensures that {@code e1.equals(e2)} implies that 25.63/7.86 * {@code e1.hashCode()==e2.hashCode()} for any two Entries 25.63/7.86 * {@code e1} and {@code e2}, as required by the general 25.63/7.86 * contract of {@link Object#hashCode}. 25.63/7.86 * 25.63/7.86 * @return the hash code value for this map entry 25.63/7.86 * @see #equals 25.63/7.86 */ 25.63/7.86 public int hashCode() { 25.63/7.86 return (key == null ? 0 : key.hashCode()) ^ 25.63/7.86 (value == null ? 0 : value.hashCode()); 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Returns a String representation of this map entry. This 25.63/7.86 * implementation returns the string representation of this 25.63/7.86 * entry's key followed by the equals character ("=") 25.63/7.86 * followed by the string representation of this entry's value. 25.63/7.86 * 25.63/7.86 * @return a String representation of this map entry 25.63/7.86 */ 25.63/7.86 public String toString() { 25.63/7.86 return key + "=" + value; 25.63/7.86 } 25.63/7.86 25.63/7.86 } 25.63/7.86 25.63/7.86 } 25.63/7.86 25.63/7.86 25.63/7.86 /* 25.63/7.86 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 25.63/7.86 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 25.63/7.86 * 25.63/7.86 * This code is free software; you can redistribute it and/or modify it 25.63/7.86 * under the terms of the GNU General Public License version 2 only, as 25.63/7.86 * published by the Free Software Foundation. Sun designates this 25.63/7.86 * particular file as subject to the "Classpath" exception as provided 25.63/7.86 * by Sun in the LICENSE file that accompanied this code. 25.63/7.86 * 25.63/7.86 * This code is distributed in the hope that it will be useful, but WITHOUT 25.63/7.86 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 25.63/7.86 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 25.63/7.86 * version 2 for more details (a copy is included in the LICENSE file that 25.63/7.86 * accompanied this code). 25.63/7.86 * 25.63/7.86 * You should have received a copy of the GNU General Public License version 25.63/7.86 * 2 along with this work; if not, write to the Free Software Foundation, 25.63/7.86 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 25.63/7.86 * 25.63/7.86 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 25.63/7.86 * CA 95054 USA or visit www.sun.com if you need additional information or 25.63/7.86 * have any questions. 25.63/7.86 */ 25.63/7.86 25.63/7.86 package javaUtilEx; 25.63/7.86 25.63/7.86 /** 25.63/7.86 * This class provides a skeletal implementation of the Set 25.63/7.86 * interface to minimize the effort required to implement this 25.63/7.86 * interface.

25.63/7.86 * 25.63/7.86 * The process of implementing a set by extending this class is identical 25.63/7.86 * to that of implementing a Collection by extending AbstractCollection, 25.63/7.86 * except that all of the methods and constructors in subclasses of this 25.63/7.86 * class must obey the additional constraints imposed by the Set 25.63/7.86 * interface (for instance, the add method must not permit addition of 25.63/7.86 * multiple instances of an object to a set).

25.63/7.86 * 25.63/7.86 * Note that this class does not override any of the implementations from 25.63/7.86 * the AbstractCollection class. It merely adds implementations 25.63/7.86 * for equals and hashCode.

25.63/7.86 * 25.63/7.86 * This class is a member of the 25.63/7.86 * 25.63/7.86 * Java Collections Framework. 25.63/7.86 * 25.63/7.86 * @param the type of elements maintained by this set 25.63/7.86 * 25.63/7.86 * @author Josh Bloch 25.63/7.86 * @author Neal Gafter 25.63/7.86 * @see Collection 25.63/7.86 * @see AbstractCollection 25.63/7.86 * @see Set 25.63/7.86 * @since 1.2 25.63/7.86 */ 25.63/7.86 25.63/7.86 public abstract class AbstractSet extends AbstractCollection implements Set { 25.63/7.86 /** 25.63/7.86 * Sole constructor. (For invocation by subclass constructors, typically 25.63/7.86 * implicit.) 25.63/7.86 */ 25.63/7.86 protected AbstractSet() { 25.63/7.86 } 25.63/7.86 25.63/7.86 // Comparison and hashing 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Compares the specified object with this set for equality. Returns 25.63/7.86 * true if the given object is also a set, the two sets have 25.63/7.86 * the same size, and every member of the given set is contained in 25.63/7.86 * this set. This ensures that the equals method works 25.63/7.86 * properly across different implementations of the Set 25.63/7.86 * interface.

25.63/7.86 * 25.63/7.86 * This implementation first checks if the specified object is this 25.63/7.86 * set; if so it returns true. Then, it checks if the 25.63/7.86 * specified object is a set whose size is identical to the size of 25.63/7.86 * this set; if not, it returns false. If so, it returns 25.63/7.86 * containsAll((Collection) o). 25.63/7.86 * 25.63/7.86 * @param o object to be compared for equality with this set 25.63/7.86 * @return true if the specified object is equal to this set 25.63/7.86 */ 25.63/7.86 public boolean equals(Object o) { 25.63/7.86 if (o == this) 25.63/7.86 return true; 25.63/7.86 25.63/7.86 if (!(o instanceof Set)) 25.63/7.86 return false; 25.63/7.86 Collection c = (Collection) o; 25.63/7.86 if (c.size() != size()) 25.63/7.86 return false; 25.63/7.86 try { 25.63/7.86 return containsAll(c); 25.63/7.86 } catch (ClassCastException unused) { 25.63/7.86 return false; 25.63/7.86 } catch (NullPointerException unused) { 25.63/7.86 return false; 25.63/7.86 } 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Returns the hash code value for this set. The hash code of a set is 25.63/7.86 * defined to be the sum of the hash codes of the elements in the set, 25.63/7.86 * where the hash code of a null element is defined to be zero. 25.63/7.86 * This ensures that s1.equals(s2) implies that 25.63/7.86 * s1.hashCode()==s2.hashCode() for any two sets s1 25.63/7.86 * and s2, as required by the general contract of 25.63/7.86 * {@link Object#hashCode}. 25.63/7.86 * 25.63/7.86 *

This implementation iterates over the set, calling the 25.63/7.86 * hashCode method on each element in the set, and adding up 25.63/7.86 * the results. 25.63/7.86 * 25.63/7.86 * @return the hash code value for this set 25.63/7.86 * @see Object#equals(Object) 25.63/7.86 * @see Set#equals(Object) 25.63/7.86 */ 25.63/7.86 public int hashCode() { 25.63/7.86 int h = 0; 25.63/7.86 Iterator i = iterator(); 25.63/7.86 while (i.hasNext()) { 25.63/7.86 E obj = i.next(); 25.63/7.86 if (obj != null) 25.63/7.86 h += obj.hashCode(); 25.63/7.86 } 25.63/7.86 return h; 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Removes from this set all of its elements that are contained in the 25.63/7.86 * specified collection (optional operation). If the specified 25.63/7.86 * collection is also a set, this operation effectively modifies this 25.63/7.86 * set so that its value is the asymmetric set difference of 25.63/7.86 * the two sets. 25.63/7.86 * 25.63/7.86 *

This implementation determines which is the smaller of this set 25.63/7.86 * and the specified collection, by invoking the size 25.63/7.86 * method on each. If this set has fewer elements, then the 25.63/7.86 * implementation iterates over this set, checking each element 25.63/7.86 * returned by the iterator in turn to see if it is contained in 25.63/7.86 * the specified collection. If it is so contained, it is removed 25.63/7.86 * from this set with the iterator's remove method. If 25.63/7.86 * the specified collection has fewer elements, then the 25.63/7.86 * implementation iterates over the specified collection, removing 25.63/7.86 * from this set each element returned by the iterator, using this 25.63/7.86 * set's remove method. 25.63/7.86 * 25.63/7.86 *

Note that this implementation will throw an 25.63/7.86 * UnsupportedOperationException if the iterator returned by the 25.63/7.86 * iterator method does not implement the remove method. 25.63/7.86 * 25.63/7.86 * @param c collection containing elements to be removed from this set 25.63/7.86 * @return true if this set changed as a result of the call 25.63/7.86 * @throws UnsupportedOperationException if the removeAll operation 25.63/7.86 * is not supported by this set 25.63/7.86 * @throws ClassCastException if the class of an element of this set 25.63/7.86 * is incompatible with the specified collection (optional) 25.63/7.86 * @throws NullPointerException if this set contains a null element and the 25.63/7.86 * specified collection does not permit null elements (optional), 25.63/7.86 * or if the specified collection is null 25.63/7.86 * @see #remove(Object) 25.63/7.86 * @see #contains(Object) 25.63/7.86 */ 25.63/7.86 public boolean removeAll(Collection c) { 25.63/7.86 boolean modified = false; 25.63/7.86 25.63/7.86 if (size() > c.size()) { 25.63/7.86 for (Iterator i = c.iterator(); i.hasNext(); ) 25.63/7.86 modified |= remove(i.next()); 25.63/7.86 } else { 25.63/7.86 for (Iterator i = iterator(); i.hasNext(); ) { 25.63/7.86 if (c.contains(i.next())) { 25.63/7.86 i.remove(); 25.63/7.86 modified = true; 25.63/7.86 } 25.63/7.86 } 25.63/7.86 } 25.63/7.86 return modified; 25.63/7.86 } 25.63/7.86 25.63/7.86 } 25.63/7.86 25.63/7.86 25.63/7.86 /* 25.63/7.86 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 25.63/7.86 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 25.63/7.86 * 25.63/7.86 * This code is free software; you can redistribute it and/or modify it 25.63/7.86 * under the terms of the GNU General Public License version 2 only, as 25.63/7.86 * published by the Free Software Foundation. Sun designates this 25.63/7.86 * particular file as subject to the "Classpath" exception as provided 25.63/7.86 * by Sun in the LICENSE file that accompanied this code. 25.63/7.86 * 25.63/7.86 * This code is distributed in the hope that it will be useful, but WITHOUT 25.63/7.86 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 25.63/7.86 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 25.63/7.86 * version 2 for more details (a copy is included in the LICENSE file that 25.63/7.86 * accompanied this code). 25.63/7.86 * 25.63/7.86 * You should have received a copy of the GNU General Public License version 25.63/7.86 * 2 along with this work; if not, write to the Free Software Foundation, 25.63/7.86 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 25.63/7.86 * 25.63/7.86 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 25.63/7.86 * CA 95054 USA or visit www.sun.com if you need additional information or 25.63/7.86 * have any questions. 25.63/7.86 */ 25.63/7.86 25.63/7.86 package javaUtilEx; 25.63/7.86 25.63/7.86 /** 25.63/7.86 * The root interface in the collection hierarchy. A collection 25.63/7.86 * represents a group of objects, known as its elements. Some 25.63/7.86 * collections allow duplicate elements and others do not. Some are ordered 25.63/7.86 * and others unordered. The JDK does not provide any direct 25.63/7.86 * implementations of this interface: it provides implementations of more 25.63/7.86 * specific subinterfaces like Set and List. This interface 25.63/7.86 * is typically used to pass collections around and manipulate them where 25.63/7.86 * maximum generality is desired. 25.63/7.86 * 25.63/7.86 *

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

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

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

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

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

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

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

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

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

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

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

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

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

Note that fail-fast behavior cannot be guaranteed as it is, generally 25.63/7.86 * speaking, impossible to make any hard guarantees in the presence of 25.63/7.86 * unsynchronized concurrent modification. Fail-fast operations 25.63/7.86 * throw ConcurrentModificationException on a best-effort basis. 25.63/7.86 * Therefore, it would be wrong to write a program that depended on this 25.63/7.86 * exception for its correctness: ConcurrentModificationException 25.63/7.86 * should be used only to detect bugs. 25.63/7.86 * 25.63/7.86 * @author Josh Bloch 25.63/7.86 * @see Collection 25.63/7.86 * @see Iterator 25.63/7.86 * @see ListIterator 25.63/7.86 * @see Vector 25.63/7.86 * @see LinkedList 25.63/7.86 * @see HashSet 25.63/7.86 * @see Hashtable 25.63/7.86 * @see TreeMap 25.63/7.86 * @see AbstractList 25.63/7.86 * @since 1.2 25.63/7.86 */ 25.63/7.86 public class ConcurrentModificationException extends RuntimeException { 25.63/7.86 /** 25.63/7.86 * Constructs a ConcurrentModificationException with no 25.63/7.86 * detail message. 25.63/7.86 */ 25.63/7.86 public ConcurrentModificationException() { 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Constructs a ConcurrentModificationException with the 25.63/7.86 * specified detail message. 25.63/7.86 * 25.63/7.86 * @param message the detail message pertaining to this exception. 25.63/7.86 */ 25.63/7.86 public ConcurrentModificationException(String message) { 25.63/7.86 super(message); 25.63/7.86 } 25.63/7.86 } 25.63/7.86 25.63/7.86 25.63/7.86 /* 25.63/7.86 * Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved. 25.63/7.86 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 25.63/7.86 * 25.63/7.86 * This code is free software; you can redistribute it and/or modify it 25.63/7.86 * under the terms of the GNU General Public License version 2 only, as 25.63/7.86 * published by the Free Software Foundation. Sun designates this 25.63/7.86 * particular file as subject to the "Classpath" exception as provided 25.63/7.86 * by Sun in the LICENSE file that accompanied this code. 25.63/7.86 * 25.63/7.86 * This code is distributed in the hope that it will be useful, but WITHOUT 25.63/7.86 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 25.63/7.86 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 25.63/7.86 * version 2 for more details (a copy is included in the LICENSE file that 25.63/7.86 * accompanied this code). 25.63/7.86 * 25.63/7.86 * You should have received a copy of the GNU General Public License version 25.63/7.86 * 2 along with this work; if not, write to the Free Software Foundation, 25.63/7.86 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 25.63/7.86 * 25.63/7.86 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 25.63/7.86 * CA 95054 USA or visit www.sun.com if you need additional information or 25.63/7.86 * have any questions. 25.63/7.86 */ 25.63/7.86 25.63/7.86 package javaUtilEx; 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Hash table based implementation of the Map interface. This 25.63/7.86 * implementation provides all of the optional map operations, and permits 25.63/7.86 * null values and the null key. (The HashMap 25.63/7.86 * class is roughly equivalent to Hashtable, except that it is 25.63/7.86 * unsynchronized and permits nulls.) This class makes no guarantees as to 25.63/7.86 * the order of the map; in particular, it does not guarantee that the order 25.63/7.86 * will remain constant over time. 25.63/7.86 * 25.63/7.86 *

This implementation provides constant-time performance for the basic 25.63/7.86 * operations (get and put), assuming the hash function 25.63/7.86 * disperses the elements properly among the buckets. Iteration over 25.63/7.86 * collection views requires time proportional to the "capacity" of the 25.63/7.86 * HashMap instance (the number of buckets) plus its size (the number 25.63/7.86 * of key-value mappings). Thus, it's very important not to set the initial 25.63/7.86 * capacity too high (or the load factor too low) if iteration performance is 25.63/7.86 * important. 25.63/7.86 * 25.63/7.86 *

An instance of HashMap has two parameters that affect its 25.63/7.86 * performance: initial capacity and load factor. The 25.63/7.86 * capacity is the number of buckets in the hash table, and the initial 25.63/7.86 * capacity is simply the capacity at the time the hash table is created. The 25.63/7.86 * load factor is a measure of how full the hash table is allowed to 25.63/7.86 * get before its capacity is automatically increased. When the number of 25.63/7.86 * entries in the hash table exceeds the product of the load factor and the 25.63/7.86 * current capacity, the hash table is rehashed (that is, internal data 25.63/7.86 * structures are rebuilt) so that the hash table has approximately twice the 25.63/7.86 * number of buckets. 25.63/7.86 * 25.63/7.86 *

As a general rule, the default load factor (.75) offers a good tradeoff 25.63/7.86 * between time and space costs. Higher values decrease the space overhead 25.63/7.86 * but increase the lookup cost (reflected in most of the operations of the 25.63/7.86 * HashMap class, including get and put). The 25.63/7.86 * expected number of entries in the map and its load factor should be taken 25.63/7.86 * into account when setting its initial capacity, so as to minimize the 25.63/7.86 * number of rehash operations. If the initial capacity is greater 25.63/7.86 * than the maximum number of entries divided by the load factor, no 25.63/7.86 * rehash operations will ever occur. 25.63/7.86 * 25.63/7.86 *

If many mappings are to be stored in a HashMap instance, 25.63/7.86 * creating it with a sufficiently large capacity will allow the mappings to 25.63/7.86 * be stored more efficiently than letting it perform automatic rehashing as 25.63/7.86 * needed to grow the table. 25.63/7.86 * 25.63/7.86 *

Note that this implementation is not synchronized. 25.63/7.86 * If multiple threads access a hash map concurrently, and at least one of 25.63/7.86 * the threads modifies the map structurally, it must be 25.63/7.86 * synchronized externally. (A structural modification is any operation 25.63/7.86 * that adds or deletes one or more mappings; merely changing the value 25.63/7.86 * associated with a key that an instance already contains is not a 25.63/7.86 * structural modification.) This is typically accomplished by 25.63/7.86 * synchronizing on some object that naturally encapsulates the map. 25.63/7.86 * 25.63/7.86 * If no such object exists, the map should be "wrapped" using the 25.63/7.86 * {@link Collections#synchronizedMap Collections.synchronizedMap} 25.63/7.86 * method. This is best done at creation time, to prevent accidental 25.63/7.86 * unsynchronized access to the map:

25.63/7.86	 *   Map m = Collections.synchronizedMap(new HashMap(...));
25.63/7.86 * 25.63/7.86 *

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

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

This class is a member of the 25.63/7.86 * 25.63/7.86 * Java Collections Framework. 25.63/7.86 * 25.63/7.86 * @param the type of keys maintained by this map 25.63/7.86 * @param the type of mapped values 25.63/7.86 * 25.63/7.86 * @author Doug Lea 25.63/7.86 * @author Josh Bloch 25.63/7.86 * @author Arthur van Hoff 25.63/7.86 * @author Neal Gafter 25.63/7.86 * @see Object#hashCode() 25.63/7.86 * @see Collection 25.63/7.86 * @see Map 25.63/7.86 * @see TreeMap 25.63/7.86 * @see Hashtable 25.63/7.86 * @since 1.2 25.63/7.86 */ 25.63/7.86 25.63/7.86 public class HashMap 25.63/7.86 extends AbstractMap 25.63/7.86 implements Map, Cloneable 25.63/7.86 { 25.63/7.86 25.63/7.86 /** 25.63/7.86 * The default initial capacity - MUST be a power of two. 25.63/7.86 */ 25.63/7.86 static final int DEFAULT_INITIAL_CAPACITY = 16; 25.63/7.86 25.63/7.86 /** 25.63/7.86 * The maximum capacity, used if a higher value is implicitly specified 25.63/7.86 * by either of the constructors with arguments. 25.63/7.86 * MUST be a power of two <= 1<<30. 25.63/7.86 */ 25.63/7.86 static final int MAXIMUM_CAPACITY = 1 << 30; 25.63/7.86 25.63/7.86 /** 25.63/7.86 * The load factor used when none specified in constructor. 25.63/7.86 */ 25.63/7.86 static final float DEFAULT_LOAD_FACTOR = 0.75f; 25.63/7.86 25.63/7.86 /** 25.63/7.86 * The table, resized as necessary. Length MUST Always be a power of two. 25.63/7.86 */ 25.63/7.86 transient Entry[] table; 25.63/7.86 25.63/7.86 /** 25.63/7.86 * The number of key-value mappings contained in this map. 25.63/7.86 */ 25.63/7.86 transient int size; 25.63/7.86 25.63/7.86 /** 25.63/7.86 * The next size value at which to resize (capacity * load factor). 25.63/7.86 * @serial 25.63/7.86 */ 25.63/7.86 int threshold; 25.63/7.86 25.63/7.86 /** 25.63/7.86 * The load factor for the hash table. 25.63/7.86 * 25.63/7.86 * @serial 25.63/7.86 */ 25.63/7.86 final float loadFactor; 25.63/7.86 25.63/7.86 /** 25.63/7.86 * The number of times this HashMap has been structurally modified 25.63/7.86 * Structural modifications are those that change the number of mappings in 25.63/7.86 * the HashMap or otherwise modify its internal structure (e.g., 25.63/7.86 * rehash). This field is used to make iterators on Collection-views of 25.63/7.86 * the HashMap fail-fast. (See ConcurrentModificationException). 25.63/7.86 */ 25.63/7.86 transient volatile int modCount; 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Constructs an empty HashMap with the specified initial 25.63/7.86 * capacity and load factor. 25.63/7.86 * 25.63/7.86 * @param initialCapacity the initial capacity 25.63/7.86 * @param loadFactor the load factor 25.63/7.86 * @throws IllegalArgumentException if the initial capacity is negative 25.63/7.86 * or the load factor is nonpositive 25.63/7.86 */ 25.63/7.86 public HashMap(int initialCapacity, float loadFactor) { 25.63/7.86 if (initialCapacity < 0) 25.63/7.86 throw new IllegalArgumentException("Illegal initial capacity: " + 25.63/7.86 initialCapacity); 25.63/7.86 if (initialCapacity > MAXIMUM_CAPACITY) 25.63/7.86 initialCapacity = MAXIMUM_CAPACITY; 25.63/7.86 if (loadFactor <= 0 || Float.isNaN(loadFactor)) 25.63/7.86 throw new IllegalArgumentException("Illegal load factor: " + 25.63/7.86 loadFactor); 25.63/7.86 25.63/7.86 // Find a power of 2 >= initialCapacity 25.63/7.86 int capacity = 1; 25.63/7.86 while (capacity < initialCapacity) 25.63/7.86 capacity <<= 1; 25.63/7.86 25.63/7.86 this.loadFactor = loadFactor; 25.63/7.86 threshold = (int)(capacity * loadFactor); 25.63/7.86 table = new Entry[capacity]; 25.63/7.86 init(); 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Constructs an empty HashMap with the specified initial 25.63/7.86 * capacity and the default load factor (0.75). 25.63/7.86 * 25.63/7.86 * @param initialCapacity the initial capacity. 25.63/7.86 * @throws IllegalArgumentException if the initial capacity is negative. 25.63/7.86 */ 25.63/7.86 public HashMap(int initialCapacity) { 25.63/7.86 this(initialCapacity, DEFAULT_LOAD_FACTOR); 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Constructs an empty HashMap with the default initial capacity 25.63/7.86 * (16) and the default load factor (0.75). 25.63/7.86 */ 25.63/7.86 public HashMap() { 25.63/7.86 this.loadFactor = DEFAULT_LOAD_FACTOR; 25.63/7.86 threshold = (int)(DEFAULT_INITIAL_CAPACITY * DEFAULT_LOAD_FACTOR); 25.63/7.86 table = new Entry[DEFAULT_INITIAL_CAPACITY]; 25.63/7.86 init(); 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Constructs a new HashMap with the same mappings as the 25.63/7.86 * specified Map. The HashMap is created with 25.63/7.86 * default load factor (0.75) and an initial capacity sufficient to 25.63/7.86 * hold the mappings in the specified Map. 25.63/7.86 * 25.63/7.86 * @param m the map whose mappings are to be placed in this map 25.63/7.86 * @throws NullPointerException if the specified map is null 25.63/7.86 */ 25.63/7.86 public HashMap(Map m) { 25.63/7.86 this(Math.max((int) (m.size() / DEFAULT_LOAD_FACTOR) + 1, 25.63/7.86 DEFAULT_INITIAL_CAPACITY), DEFAULT_LOAD_FACTOR); 25.63/7.86 putAllForCreate(m); 25.63/7.86 } 25.63/7.86 25.63/7.86 // internal utilities 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Initialization hook for subclasses. This method is called 25.63/7.86 * in all constructors and pseudo-constructors (clone, readObject) 25.63/7.86 * after HashMap has been initialized but before any entries have 25.63/7.86 * been inserted. (In the absence of this method, readObject would 25.63/7.86 * require explicit knowledge of subclasses.) 25.63/7.86 */ 25.63/7.86 void init() { 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Applies a supplemental hash function to a given hashCode, which 25.63/7.86 * defends against poor quality hash functions. This is critical 25.63/7.86 * because HashMap uses power-of-two length hash tables, that 25.63/7.86 * otherwise encounter collisions for hashCodes that do not differ 25.63/7.86 * in lower bits. Note: Null keys always map to hash 0, thus index 0. 25.63/7.86 */ 25.63/7.86 static int hash(int h) { 25.63/7.86 // This function ensures that hashCodes that differ only by 25.63/7.86 // constant multiples at each bit position have a bounded 25.63/7.86 // number of collisions (approximately 8 at default load factor). 25.63/7.86 h ^= (h >>> 20) ^ (h >>> 12); 25.63/7.86 return h ^ (h >>> 7) ^ (h >>> 4); 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Returns index for hash code h. 25.63/7.86 */ 25.63/7.86 static int indexFor(int h, int length) { 25.63/7.86 return h & (length-1); 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Returns the number of key-value mappings in this map. 25.63/7.86 * 25.63/7.86 * @return the number of key-value mappings in this map 25.63/7.86 */ 25.63/7.86 public int size() { 25.63/7.86 return size; 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Returns true if this map contains no key-value mappings. 25.63/7.86 * 25.63/7.86 * @return true if this map contains no key-value mappings 25.63/7.86 */ 25.63/7.86 public boolean isEmpty() { 25.63/7.86 return size == 0; 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Returns the value to which the specified key is mapped, 25.63/7.86 * or {@code null} if this map contains no mapping for the key. 25.63/7.86 * 25.63/7.86 *

More formally, if this map contains a mapping from a key 25.63/7.86 * {@code k} to a value {@code v} such that {@code (key==null ? k==null : 25.63/7.86 * key.equals(k))}, then this method returns {@code v}; otherwise 25.63/7.86 * it returns {@code null}. (There can be at most one such mapping.) 25.63/7.86 * 25.63/7.86 *

A return value of {@code null} does not necessarily 25.63/7.86 * indicate that the map contains no mapping for the key; it's also 25.63/7.86 * possible that the map explicitly maps the key to {@code null}. 25.63/7.86 * The {@link #containsKey containsKey} operation may be used to 25.63/7.86 * distinguish these two cases. 25.63/7.86 * 25.63/7.86 * @see #put(Object, Object) 25.63/7.86 */ 25.63/7.86 public V get(Object key) { 25.63/7.86 if (key == null) 25.63/7.86 return getForNullKey(); 25.63/7.86 int hash = hash(key.hashCode()); 25.63/7.86 for (Entry e = table[indexFor(hash, table.length)]; 25.63/7.86 e != null; 25.63/7.86 e = e.next) { 25.63/7.86 Object k; 25.63/7.86 if (e.hash == hash && ((k = e.key) == key || key.equals(k))) 25.63/7.86 return e.value; 25.63/7.86 } 25.63/7.86 return null; 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Offloaded version of get() to look up null keys. Null keys map 25.63/7.86 * to index 0. This null case is split out into separate methods 25.63/7.86 * for the sake of performance in the two most commonly used 25.63/7.86 * operations (get and put), but incorporated with conditionals in 25.63/7.86 * others. 25.63/7.86 */ 25.63/7.86 private V getForNullKey() { 25.63/7.86 for (Entry e = table[0]; e != null; e = e.next) { 25.63/7.86 if (e.key == null) 25.63/7.86 return e.value; 25.63/7.86 } 25.63/7.86 return null; 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Returns true if this map contains a mapping for the 25.63/7.86 * specified key. 25.63/7.86 * 25.63/7.86 * @param key The key whose presence in this map is to be tested 25.63/7.86 * @return true if this map contains a mapping for the specified 25.63/7.86 * key. 25.63/7.86 */ 25.63/7.86 public boolean containsKey(Object key) { 25.63/7.86 return getEntry(key) != null; 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Returns the entry associated with the specified key in the 25.63/7.86 * HashMap. Returns null if the HashMap contains no mapping 25.63/7.86 * for the key. 25.63/7.86 */ 25.63/7.86 final Entry getEntry(Object key) { 25.63/7.86 int hash = (key == null) ? 0 : hash(key.hashCode()); 25.63/7.86 for (Entry e = table[indexFor(hash, table.length)]; 25.63/7.86 e != null; 25.63/7.86 e = e.next) { 25.63/7.86 Object k; 25.63/7.86 if (e.hash == hash && 25.63/7.86 ((k = e.key) == key || (key != null && key.equals(k)))) 25.63/7.86 return e; 25.63/7.86 } 25.63/7.86 return null; 25.63/7.86 } 25.63/7.86 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Associates the specified value with the specified key in this map. 25.63/7.86 * If the map previously contained a mapping for the key, the old 25.63/7.86 * value is replaced. 25.63/7.86 * 25.63/7.86 * @param key key with which the specified value is to be associated 25.63/7.86 * @param value value to be associated with the specified key 25.63/7.86 * @return the previous value associated with key, or 25.63/7.86 * null if there was no mapping for key. 25.63/7.86 * (A null return can also indicate that the map 25.63/7.86 * previously associated null with key.) 25.63/7.86 */ 25.63/7.86 public V put(K key, V value) { 25.63/7.86 if (key == null) 25.63/7.86 return putForNullKey(value); 25.63/7.86 int hash = hash(key.hashCode()); 25.63/7.86 int i = indexFor(hash, table.length); 25.63/7.86 for (Entry e = table[i]; e != null; e = e.next) { 25.63/7.86 Object k; 25.63/7.86 if (e.hash == hash && ((k = e.key) == key || key.equals(k))) { 25.63/7.86 V oldValue = e.value; 25.63/7.86 e.value = value; 25.63/7.86 e.recordAccess(this); 25.63/7.86 return oldValue; 25.63/7.86 } 25.63/7.86 } 25.63/7.86 25.63/7.86 modCount++; 25.63/7.86 addEntry(hash, key, value, i); 25.63/7.86 return null; 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * Offloaded version of put for null keys 25.63/7.86 */ 25.63/7.86 private V putForNullKey(V value) { 25.63/7.86 for (Entry e = table[0]; e != null; e = e.next) { 25.63/7.86 if (e.key == null) { 25.63/7.86 V oldValue = e.value; 25.63/7.86 e.value = value; 25.63/7.86 e.recordAccess(this); 25.63/7.86 return oldValue; 25.63/7.86 } 25.63/7.86 } 25.63/7.86 modCount++; 25.63/7.86 addEntry(0, null, value, 0); 25.63/7.86 return null; 25.63/7.86 } 25.63/7.86 25.63/7.86 /** 25.63/7.86 * This method is used instead of put by constructors and 25.63/7.86 * pseudoconstructors (clone, readObject). It does not resize the table, 25.63/7.86 * check for comodification, etc. It calls createEntry rather than 25.63/7.86 * addEntry. 25.83/7.86 */ 25.83/7.86 private void putForCreate(K key, V value) { 25.83/7.86 int hash = (key == null) ? 0 : hash(key.hashCode()); 25.83/7.86 int i = indexFor(hash, table.length); 25.83/7.86 25.83/7.86 /** 25.83/7.86 * Look for preexisting entry for key. This will never happen for 25.83/7.86 * clone or deserialize. It will only happen for construction if the 25.83/7.86 * input Map is a sorted map whose ordering is inconsistent w/ equals. 25.83/7.86 */ 25.83/7.86 for (Entry e = table[i]; e != null; e = e.next) { 25.83/7.86 Object k; 25.83/7.86 if (e.hash == hash && 25.83/7.86 ((k = e.key) == key || (key != null && key.equals(k)))) { 25.83/7.86 e.value = value; 25.83/7.86 return; 25.83/7.86 } 25.83/7.86 } 25.83/7.86 25.83/7.86 createEntry(hash, key, value, i); 25.83/7.86 } 25.83/7.86 25.83/7.86 private void putAllForCreate(Map m) { 25.83/7.86 for (Iterator> i = m.entrySet().iterator(); i.hasNext(); ) { 25.83/7.86 Map.Entry e = i.next(); 25.83/7.86 putForCreate(e.getKey(), e.getValue()); 25.83/7.86 } 25.83/7.86 } 25.83/7.86 25.83/7.86 /** 25.83/7.86 * Rehashes the contents of this map into a new array with a 25.83/7.86 * larger capacity. This method is called automatically when the 25.83/7.86 * number of keys in this map reaches its threshold. 25.83/7.86 * 25.83/7.86 * If current capacity is MAXIMUM_CAPACITY, this method does not 25.83/7.86 * resize the map, but sets threshold to Integer.MAX_VALUE. 25.83/7.86 * This has the effect of preventing future calls. 25.83/7.86 * 25.83/7.86 * @param newCapacity the new capacity, MUST be a power of two; 25.83/7.86 * must be greater than current capacity unless current 25.83/7.86 * capacity is MAXIMUM_CAPACITY (in which case value 25.83/7.86 * is irrelevant). 25.83/7.86 */ 25.83/7.86 void resize(int newCapacity) { 25.83/7.86 Entry[] oldTable = table; 25.83/7.86 int oldCapacity = oldTable.length; 25.83/7.86 if (oldCapacity == MAXIMUM_CAPACITY) { 25.83/7.86 threshold = Integer.MAX_VALUE; 25.83/7.86 return; 25.83/7.86 } 25.83/7.86 25.83/7.86 Entry[] newTable = new Entry[newCapacity]; 25.83/7.86 transfer(newTable); 25.83/7.86 table = newTable; 25.83/7.86 threshold = (int)(newCapacity * loadFactor); 25.83/7.86 } 25.83/7.86 25.83/7.86 /** 25.83/7.86 * Transfers all entries from current table to newTable. 25.83/7.86 */ 25.83/7.86 void transfer(Entry[] newTable) { 25.83/7.86 Entry[] src = table; 25.83/7.86 int newCapacity = newTable.length; 25.83/7.86 for (int j = 0; j < src.length; j++) { 25.83/7.86 Entry e = src[j]; 25.83/7.86 if (e != null) { 25.83/7.86 src[j] = null; 25.83/7.86 do { 25.83/7.86 Entry next = e.next; 25.83/7.86 int i = indexFor(e.hash, newCapacity); 25.83/7.86 e.next = newTable[i]; 25.83/7.86 newTable[i] = e; 25.83/7.86 e = next; 25.83/7.86 } while (e != null); 25.83/7.86 } 25.83/7.86 } 25.83/7.86 } 25.83/7.86 25.83/7.86 /** 25.83/7.86 * Copies all of the mappings from the specified map to this map. 25.83/7.86 * These mappings will replace any mappings that this map had for 25.83/7.86 * any of the keys currently in the specified map. 25.83/7.86 * 25.83/7.86 * @param m mappings to be stored in this map 25.83/7.86 * @throws NullPointerException if the specified map is null 25.83/7.86 */ 25.83/7.86 public void putAll(Map m) { 25.83/7.86 int numKeysToBeAdded = m.size(); 25.83/7.86 if (numKeysToBeAdded == 0) 25.83/7.86 return; 25.83/7.86 25.83/7.86 /* 25.83/7.86 * Expand the map if the map if the number of mappings to be added 25.83/7.86 * is greater than or equal to threshold. This is conservative; the 25.83/7.86 * obvious condition is (m.size() + size) >= threshold, but this 25.83/7.86 * condition could result in a map with twice the appropriate capacity, 25.83/7.86 * if the keys to be added overlap with the keys already in this map. 25.83/7.86 * By using the conservative calculation, we subject ourself 25.83/7.86 * to at most one extra resize. 25.83/7.86 */ 25.83/7.86 if (numKeysToBeAdded > threshold) { 25.83/7.86 int targetCapacity = (int)(numKeysToBeAdded / loadFactor + 1); 25.83/7.86 if (targetCapacity > MAXIMUM_CAPACITY) 25.83/7.86 targetCapacity = MAXIMUM_CAPACITY; 25.83/7.86 int newCapacity = table.length; 25.83/7.86 while (newCapacity < targetCapacity) 25.83/7.86 newCapacity <<= 1; 25.83/7.86 if (newCapacity > table.length) 25.83/7.86 resize(newCapacity); 25.83/7.86 } 25.83/7.86 25.83/7.86 for (Iterator> i = m.entrySet().iterator(); i.hasNext(); ) { 25.83/7.86 Map.Entry e = i.next(); 25.83/7.86 put(e.getKey(), e.getValue()); 25.83/7.86 } 25.83/7.86 } 25.83/7.86 25.83/7.86 /** 25.83/7.86 * Removes the mapping for the specified key from this map if present. 25.83/7.86 * 25.83/7.86 * @param key key whose mapping is to be removed from the map 25.83/7.86 * @return the previous value associated with key, or 25.83/7.86 * null if there was no mapping for key. 25.83/7.86 * (A null return can also indicate that the map 25.83/7.86 * previously associated null with key.) 25.83/7.86 */ 25.83/7.86 public V remove(Object key) { 25.83/7.86 Entry e = removeEntryForKey(key); 25.83/7.86 return (e == null ? null : e.value); 25.83/7.86 } 25.83/7.86 25.83/7.86 /** 25.83/7.86 * Removes and returns the entry associated with the specified key 25.83/7.86 * in the HashMap. Returns null if the HashMap contains no mapping 25.83/7.86 * for this key. 25.83/7.86 */ 25.83/7.86 final Entry removeEntryForKey(Object key) { 25.83/7.86 int hash = (key == null) ? 0 : hash(key.hashCode()); 25.83/7.86 int i = indexFor(hash, table.length); 25.83/7.86 Entry prev = table[i]; 25.83/7.86 Entry e = prev; 25.83/7.86 25.83/7.86 while (e != null) { 25.83/7.86 Entry next = e.next; 25.83/7.86 Object k; 25.83/7.86 if (e.hash == hash && 25.83/7.86 ((k = e.key) == key || (key != null && key.equals(k)))) { 25.83/7.86 modCount++; 25.83/7.86 size--; 25.83/7.86 if (prev == e) 25.83/7.86 table[i] = next; 25.83/7.86 else 25.83/7.86 prev.next = next; 25.83/7.86 e.recordRemoval(this); 25.83/7.86 return e; 25.83/7.86 } 25.83/7.86 prev = e; 25.83/7.86 e = next; 25.83/7.86 } 25.83/7.86 25.83/7.86 return e; 25.83/7.86 } 25.83/7.86 25.83/7.86 /** 25.83/7.86 * Special version of remove for EntrySet. 25.83/7.86 */ 25.83/7.86 final Entry removeMapping(Object o) { 25.83/7.86 if (!(o instanceof Map.Entry)) 25.83/7.86 return null; 25.83/7.86 25.83/7.86 Map.Entry entry = (Map.Entry) o; 25.83/7.86 Object key = entry.getKey(); 25.83/7.86 int hash = (key == null) ? 0 : hash(key.hashCode()); 25.83/7.86 int i = indexFor(hash, table.length); 25.83/7.86 Entry prev = table[i]; 25.83/7.86 Entry e = prev; 25.83/7.86 25.83/7.86 while (e != null) { 25.83/7.86 Entry next = e.next; 25.83/7.86 if (e.hash == hash && e.equals(entry)) { 25.83/7.86 modCount++; 25.83/7.86 size--; 25.83/7.86 if (prev == e) 25.83/7.86 table[i] = next; 25.83/7.86 else 25.83/7.86 prev.next = next; 25.83/7.86 e.recordRemoval(this); 25.83/7.86 return e; 25.83/7.86 } 25.83/7.86 prev = e; 25.83/7.86 e = next; 25.83/7.86 } 25.83/7.86 25.83/7.86 return e; 25.83/7.86 } 25.83/7.86 25.83/7.86 /** 25.83/7.86 * Removes all of the mappings from this map. 25.83/7.86 * The map will be empty after this call returns. 25.83/7.86 */ 25.83/7.86 public void clear() { 25.83/7.86 modCount++; 25.83/7.86 Entry[] tab = table; 25.83/7.86 for (int i = 0; i < tab.length; i++) 25.83/7.86 tab[i] = null; 25.83/7.86 size = 0; 25.83/7.86 } 25.83/7.86 25.83/7.86 /** 25.83/7.86 * Returns true if this map maps one or more keys to the 25.83/7.86 * specified value. 25.83/7.86 * 25.83/7.86 * @param value value whose presence in this map is to be tested 25.83/7.86 * @return true if this map maps one or more keys to the 25.83/7.86 * specified value 25.83/7.86 */ 25.83/7.86 public boolean containsValue(Object value) { 25.83/7.86 if (value == null) 25.83/7.86 return containsNullValue(); 25.83/7.86 25.83/7.86 Entry[] tab = table; 25.83/7.86 for (int i = 0; i < tab.length ; i++) 25.83/7.86 for (Entry e = tab[i] ; e != null ; e = e.next) 25.83/7.86 if (value.equals(e.value)) 25.83/7.86 return true; 25.83/7.86 return false; 25.83/7.86 } 25.83/7.86 25.83/7.86 /** 25.83/7.86 * Special-case code for containsValue with null argument 25.83/7.86 */ 25.83/7.86 private boolean containsNullValue() { 25.83/7.86 Entry[] tab = table; 25.83/7.86 for (int i = 0; i < tab.length ; i++) 25.83/7.86 for (Entry e = tab[i] ; e != null ; e = e.next) 25.83/7.86 if (e.value == null) 25.83/7.86 return true; 25.83/7.86 return false; 25.83/7.86 } 25.83/7.86 25.83/7.86 /** 25.83/7.86 * Returns a shallow copy of this HashMap instance: the keys and 25.83/7.87 * values themselves are not cloned. 25.83/7.87 * 25.83/7.87 * @return a shallow copy of this map 25.83/7.87 */ 25.83/7.87 public Object clone() { 25.83/7.87 HashMap result = null; 25.83/7.87 try { 25.83/7.87 result = (HashMap)super.clone(); 25.83/7.87 } catch (CloneNotSupportedException e) { 25.83/7.87 // assert false; 25.83/7.87 } 25.83/7.87 result.table = new Entry[table.length]; 25.83/7.87 result.entrySet = null; 25.83/7.87 result.modCount = 0; 25.83/7.87 result.size = 0; 25.83/7.87 result.init(); 25.83/7.87 result.putAllForCreate(this); 25.83/7.87 25.83/7.87 return result; 25.83/7.87 } 25.83/7.87 25.83/7.87 static class Entry implements Map.Entry { 25.83/7.87 final K key; 25.83/7.87 V value; 25.83/7.87 Entry next; 25.83/7.87 final int hash; 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Creates new entry. 25.83/7.87 */ 25.83/7.87 Entry(int h, K k, V v, Entry n) { 25.83/7.87 value = v; 25.83/7.87 next = n; 25.83/7.87 key = k; 25.83/7.87 hash = h; 25.83/7.87 } 25.83/7.87 25.83/7.87 public final K getKey() { 25.83/7.87 return key; 25.83/7.87 } 25.83/7.87 25.83/7.87 public final V getValue() { 25.83/7.87 return value; 25.83/7.87 } 25.83/7.87 25.83/7.87 public final V setValue(V newValue) { 25.83/7.87 V oldValue = value; 25.83/7.87 value = newValue; 25.83/7.87 return oldValue; 25.83/7.87 } 25.83/7.87 25.83/7.87 public final boolean equals(Object o) { 25.83/7.87 if (!(o instanceof Map.Entry)) 25.83/7.87 return false; 25.83/7.87 Map.Entry e = (Map.Entry)o; 25.83/7.87 Object k1 = getKey(); 25.83/7.87 Object k2 = e.getKey(); 25.83/7.87 if (k1 == k2 || (k1 != null && k1.equals(k2))) { 25.83/7.87 Object v1 = getValue(); 25.83/7.87 Object v2 = e.getValue(); 25.83/7.87 if (v1 == v2 || (v1 != null && v1.equals(v2))) 25.83/7.87 return true; 25.83/7.87 } 25.83/7.87 return false; 25.83/7.87 } 25.83/7.87 25.83/7.87 public final int hashCode() { 25.83/7.87 return (key==null ? 0 : key.hashCode()) ^ 25.83/7.87 (value==null ? 0 : value.hashCode()); 25.83/7.87 } 25.83/7.87 25.83/7.87 public final String toString() { 25.83/7.87 return getKey() + "=" + getValue(); 25.83/7.87 } 25.83/7.87 25.83/7.87 /** 25.83/7.87 * This method is invoked whenever the value in an entry is 25.83/7.87 * overwritten by an invocation of put(k,v) for a key k that's already 25.83/7.87 * in the HashMap. 25.83/7.87 */ 25.83/7.87 void recordAccess(HashMap m) { 25.83/7.87 } 25.83/7.87 25.83/7.87 /** 25.83/7.87 * This method is invoked whenever the entry is 25.83/7.87 * removed from the table. 25.83/7.87 */ 25.83/7.87 void recordRemoval(HashMap m) { 25.83/7.87 } 25.83/7.87 } 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Adds a new entry with the specified key, value and hash code to 25.83/7.87 * the specified bucket. It is the responsibility of this 25.83/7.87 * method to resize the table if appropriate. 25.83/7.87 * 25.83/7.87 * Subclass overrides this to alter the behavior of put method. 25.83/7.87 */ 25.83/7.87 void addEntry(int hash, K key, V value, int bucketIndex) { 25.83/7.87 Entry e = table[bucketIndex]; 25.83/7.87 table[bucketIndex] = new Entry(hash, key, value, e); 25.83/7.87 if (size++ >= threshold) 25.83/7.87 resize(2 * table.length); 25.83/7.87 } 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Like addEntry except that this version is used when creating entries 25.83/7.87 * as part of Map construction or "pseudo-construction" (cloning, 25.83/7.87 * deserialization). This version needn't worry about resizing the table. 25.83/7.87 * 25.83/7.87 * Subclass overrides this to alter the behavior of HashMap(Map), 25.83/7.87 * clone, and readObject. 25.83/7.87 */ 25.83/7.87 void createEntry(int hash, K key, V value, int bucketIndex) { 25.83/7.87 Entry e = table[bucketIndex]; 25.83/7.87 table[bucketIndex] = new Entry(hash, key, value, e); 25.83/7.87 size++; 25.83/7.87 } 25.83/7.87 25.83/7.87 private abstract class HashIterator implements Iterator { 25.83/7.87 Entry next; // next entry to return 25.83/7.87 int expectedModCount; // For fast-fail 25.83/7.87 int index; // current slot 25.83/7.87 Entry current; // current entry 25.83/7.87 25.83/7.87 HashIterator() { 25.83/7.87 expectedModCount = modCount; 25.83/7.87 if (size > 0) { // advance to first entry 25.83/7.87 Entry[] t = table; 25.83/7.87 while (index < t.length && (next = t[index++]) == null) 25.83/7.87 ; 25.83/7.87 } 25.83/7.87 } 25.83/7.87 25.83/7.87 public final boolean hasNext() { 25.83/7.87 return next != null; 25.83/7.87 } 25.83/7.87 25.83/7.87 final Entry nextEntry() { 25.83/7.87 if (modCount != expectedModCount) 25.83/7.87 throw new ConcurrentModificationException(); 25.83/7.87 Entry e = next; 25.83/7.87 if (e == null) 25.83/7.87 throw new NoSuchElementException(); 25.83/7.87 25.83/7.87 if ((next = e.next) == null) { 25.83/7.87 Entry[] t = table; 25.83/7.87 while (index < t.length && (next = t[index++]) == null) 25.83/7.87 ; 25.83/7.87 } 25.83/7.87 current = e; 25.83/7.87 return e; 25.83/7.87 } 25.83/7.87 25.83/7.87 public void remove() { 25.83/7.87 if (current == null) 25.83/7.87 throw new IllegalStateException(); 25.83/7.87 if (modCount != expectedModCount) 25.83/7.87 throw new ConcurrentModificationException(); 25.83/7.87 Object k = current.key; 25.83/7.87 current = null; 25.83/7.87 HashMap.this.removeEntryForKey(k); 25.83/7.87 expectedModCount = modCount; 25.83/7.87 } 25.83/7.87 25.83/7.87 } 25.83/7.87 25.83/7.87 private final class ValueIterator extends HashIterator { 25.83/7.87 public V next() { 25.83/7.87 return nextEntry().value; 25.83/7.87 } 25.83/7.87 } 25.83/7.87 25.83/7.87 private final class KeyIterator extends HashIterator { 25.83/7.87 public K next() { 25.83/7.87 return nextEntry().getKey(); 25.83/7.87 } 25.83/7.87 } 25.83/7.87 25.83/7.87 private final class EntryIterator extends HashIterator> { 25.83/7.87 public Map.Entry next() { 25.83/7.87 return nextEntry(); 25.83/7.87 } 25.83/7.87 } 25.83/7.87 25.83/7.87 // Subclass overrides these to alter behavior of views' iterator() method 25.83/7.87 Iterator newKeyIterator() { 25.83/7.87 return new KeyIterator(); 25.83/7.87 } 25.83/7.87 Iterator newValueIterator() { 25.83/7.87 return new ValueIterator(); 25.83/7.87 } 25.83/7.87 Iterator> newEntryIterator() { 25.83/7.87 return new EntryIterator(); 25.83/7.87 } 25.83/7.87 25.83/7.87 25.83/7.87 // Views 25.83/7.87 25.83/7.87 private transient Set> entrySet = null; 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns a {@link Set} view of the keys contained in this map. 25.83/7.87 * The set is backed by the map, so changes to the map are 25.83/7.87 * reflected in the set, and vice-versa. If the map is modified 25.83/7.87 * while an iteration over the set is in progress (except through 25.83/7.87 * the iterator's own remove operation), the results of 25.83/7.87 * the iteration are undefined. The set supports element removal, 25.83/7.87 * which removes the corresponding mapping from the map, via the 25.83/7.87 * Iterator.remove, Set.remove, 25.83/7.87 * removeAll, retainAll, and clear 25.83/7.87 * operations. It does not support the add or addAll 25.83/7.87 * operations. 25.83/7.87 */ 25.83/7.87 public Set keySet() { 25.83/7.87 Set ks = keySet; 25.83/7.87 return (ks != null ? ks : (keySet = new KeySet())); 25.83/7.87 } 25.83/7.87 25.83/7.87 private final class KeySet extends AbstractSet { 25.83/7.87 public Iterator iterator() { 25.83/7.87 return newKeyIterator(); 25.83/7.87 } 25.83/7.87 public int size() { 25.83/7.87 return size; 25.83/7.87 } 25.83/7.87 public boolean contains(Object o) { 25.83/7.87 return containsKey(o); 25.83/7.87 } 25.83/7.87 public boolean remove(Object o) { 25.83/7.87 return HashMap.this.removeEntryForKey(o) != null; 25.83/7.87 } 25.83/7.87 public void clear() { 25.83/7.87 HashMap.this.clear(); 25.83/7.87 } 25.83/7.87 public Object[] toArray() { 25.83/7.87 Object[] res = new Object[size]; 25.83/7.87 Iterator it = iterator(); 25.83/7.87 int i = 0; 25.83/7.87 while (it.hasNext()) 25.83/7.87 res[i++] = it.next(); 25.83/7.87 return res; 25.83/7.87 } 25.83/7.87 public T[] toArray(T[] a) { 25.83/7.87 a = (T[])java.lang.reflect.Array.newInstance( 25.83/7.87 a.getClass().getComponentType(), size); 25.83/7.87 Object[] res = a; 25.83/7.87 Iterator it = iterator(); 25.83/7.87 int i = 0; 25.83/7.87 while (it.hasNext()) 25.83/7.87 res[i++] = it.next(); 25.83/7.87 return a; 25.83/7.87 } 25.83/7.87 } 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns a {@link Collection} view of the values contained in this map. 25.83/7.87 * The collection is backed by the map, so changes to the map are 25.83/7.87 * reflected in the collection, and vice-versa. If the map is 25.83/7.87 * modified while an iteration over the collection is in progress 25.83/7.87 * (except through the iterator's own remove operation), 25.83/7.87 * the results of the iteration are undefined. The collection 25.83/7.87 * supports element removal, which removes the corresponding 25.83/7.87 * mapping from the map, via the Iterator.remove, 25.83/7.87 * Collection.remove, removeAll, 25.83/7.87 * retainAll and clear operations. It does not 25.83/7.87 * support the add or addAll operations. 25.83/7.87 */ 25.83/7.87 public Collection values() { 25.83/7.87 Collection vs = values; 25.83/7.87 return (vs != null ? vs : (values = new Values())); 25.83/7.87 } 25.83/7.87 25.83/7.87 private final class Values extends AbstractCollection { 25.83/7.87 public Iterator iterator() { 25.83/7.87 return newValueIterator(); 25.83/7.87 } 25.83/7.87 public int size() { 25.83/7.87 return size; 25.83/7.87 } 25.83/7.87 public boolean contains(Object o) { 25.83/7.87 return containsValue(o); 25.83/7.87 } 25.83/7.87 public void clear() { 25.83/7.87 HashMap.this.clear(); 25.83/7.87 } 25.83/7.87 } 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns a {@link Set} view of the mappings contained in this map. 25.83/7.87 * The set is backed by the map, so changes to the map are 25.83/7.87 * reflected in the set, and vice-versa. If the map is modified 25.83/7.87 * while an iteration over the set is in progress (except through 25.83/7.87 * the iterator's own remove operation, or through the 25.83/7.87 * setValue operation on a map entry returned by the 25.83/7.87 * iterator) the results of the iteration are undefined. The set 25.83/7.87 * supports element removal, which removes the corresponding 25.83/7.87 * mapping from the map, via the Iterator.remove, 25.83/7.87 * Set.remove, removeAll, retainAll and 25.83/7.87 * clear operations. It does not support the 25.83/7.87 * add or addAll operations. 25.83/7.87 * 25.83/7.87 * @return a set view of the mappings contained in this map 25.83/7.87 */ 25.83/7.87 public Set> entrySet() { 25.83/7.87 return entrySet0(); 25.83/7.87 } 25.83/7.87 25.83/7.87 private Set> entrySet0() { 25.83/7.87 Set> es = entrySet; 25.83/7.87 return es != null ? es : (entrySet = new EntrySet()); 25.83/7.87 } 25.83/7.87 25.83/7.87 private final class EntrySet extends AbstractSet> { 25.83/7.87 public Iterator> iterator() { 25.83/7.87 return newEntryIterator(); 25.83/7.87 } 25.83/7.87 public boolean contains(Object o) { 25.83/7.87 if (!(o instanceof Map.Entry)) 25.83/7.87 return false; 25.83/7.87 Map.Entry e = (Map.Entry) o; 25.83/7.87 Entry candidate = getEntry(e.getKey()); 25.83/7.87 return candidate != null && candidate.equals(e); 25.83/7.87 } 25.83/7.87 public boolean remove(Object o) { 25.83/7.87 return removeMapping(o) != null; 25.83/7.87 } 25.83/7.87 public int size() { 25.83/7.87 return size; 25.83/7.87 } 25.83/7.87 public void clear() { 25.83/7.87 HashMap.this.clear(); 25.83/7.87 } 25.83/7.87 public Object[] toArray() { 25.83/7.87 Object[] res = new Object[size]; 25.83/7.87 Iterator> it = iterator(); 25.83/7.87 int i = 0; 25.83/7.87 while (it.hasNext()) 25.83/7.87 res[i++] = it.next(); 25.83/7.87 return res; 25.83/7.87 } 25.83/7.87 public T[] toArray(T[] a) { 25.83/7.87 a = (T[])java.lang.reflect.Array.newInstance( 25.83/7.87 a.getClass().getComponentType(), size); 25.83/7.87 Object[] res = a; 25.83/7.87 Iterator> it = iterator(); 25.83/7.87 int i = 0; 25.83/7.87 while (it.hasNext()) 25.83/7.87 res[i++] = it.next(); 25.83/7.87 return a; 25.83/7.87 } 25.83/7.87 } 25.83/7.87 25.83/7.87 private static final long serialVersionUID = 362498820763181265L; 25.83/7.87 } 25.83/7.87 25.83/7.87 25.83/7.87 /* 25.83/7.87 * Copyright 1994-2003 Sun Microsystems, Inc. All Rights Reserved. 25.83/7.87 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 25.83/7.87 * 25.83/7.87 * This code is free software; you can redistribute it and/or modify it 25.83/7.87 * under the terms of the GNU General Public License version 2 only, as 25.83/7.87 * published by the Free Software Foundation. Sun designates this 25.83/7.87 * particular file as subject to the "Classpath" exception as provided 25.83/7.87 * by Sun in the LICENSE file that accompanied this code. 25.83/7.87 * 25.83/7.87 * This code is distributed in the hope that it will be useful, but WITHOUT 25.83/7.87 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 25.83/7.87 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 25.83/7.87 * version 2 for more details (a copy is included in the LICENSE file that 25.83/7.87 * accompanied this code). 25.83/7.87 * 25.83/7.87 * You should have received a copy of the GNU General Public License version 25.83/7.87 * 2 along with this work; if not, write to the Free Software Foundation, 25.83/7.87 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 25.83/7.87 * 25.83/7.87 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 25.83/7.87 * CA 95054 USA or visit www.sun.com if you need additional information or 25.83/7.87 * have any questions. 25.83/7.87 */ 25.83/7.87 25.83/7.87 package javaUtilEx; 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Thrown to indicate that a method has been passed an illegal or 25.83/7.87 * inappropriate argument. 25.83/7.87 * 25.83/7.87 * @author unascribed 25.83/7.87 * @see java.lang.Thread#setPriority(int) 25.83/7.87 * @since JDK1.0 25.83/7.87 */ 25.83/7.87 public 25.83/7.87 class IllegalArgumentException extends RuntimeException { 25.83/7.87 /** 25.83/7.87 * Constructs an IllegalArgumentException with no 25.83/7.87 * detail message. 25.83/7.87 */ 25.83/7.87 public IllegalArgumentException() { 25.83/7.87 super(); 25.83/7.87 } 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Constructs an IllegalArgumentException with the 25.83/7.87 * specified detail message. 25.83/7.87 * 25.83/7.87 * @param s the detail message. 25.83/7.87 */ 25.83/7.87 public IllegalArgumentException(String s) { 25.83/7.87 super(s); 25.83/7.87 } 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Constructs a new exception with the specified detail message and 25.83/7.87 * cause. 25.83/7.87 * 25.83/7.87 *

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

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

25.83/7.87 * 25.83/7.87 *

This interface is a member of the 25.83/7.87 * 25.83/7.87 * Java Collections Framework. 25.83/7.87 * 25.83/7.87 * @author Josh Bloch 25.83/7.87 * @see Collection 25.83/7.87 * @see ListIterator 25.83/7.87 * @see Iterable 25.83/7.87 * @since 1.2 25.83/7.87 */ 25.83/7.87 public interface Iterator { 25.83/7.87 /** 25.83/7.87 * Returns {@code true} if the iteration has more elements. 25.83/7.87 * (In other words, returns {@code true} if {@link #next} would 25.83/7.87 * return an element rather than throwing an exception.) 25.83/7.87 * 25.83/7.87 * @return {@code true} if the iteration has more elements 25.83/7.87 */ 25.83/7.87 boolean hasNext(); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns the next element in the iteration. 25.83/7.87 * 25.83/7.87 * @return the next element in the iteration 25.83/7.87 * @throws NoSuchElementException if the iteration has no more elements 25.83/7.87 */ 25.83/7.87 E next(); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Removes from the underlying collection the last element returned 25.83/7.87 * by this iterator (optional operation). This method can be called 25.83/7.87 * only once per call to {@link #next}. The behavior of an iterator 25.83/7.87 * is unspecified if the underlying collection is modified while the 25.83/7.87 * iteration is in progress in any way other than by calling this 25.83/7.87 * method. 25.83/7.87 * 25.83/7.87 * @throws UnsupportedOperationException if the {@code remove} 25.83/7.87 * operation is not supported by this iterator 25.83/7.87 * 25.83/7.87 * @throws IllegalStateException if the {@code next} method has not 25.83/7.87 * yet been called, or the {@code remove} method has already 25.83/7.87 * been called after the last call to the {@code next} 25.83/7.87 * method 25.83/7.87 */ 25.83/7.87 void remove(); 25.83/7.87 } 25.83/7.87 25.83/7.87 25.83/7.87 package javaUtilEx; 25.83/7.87 25.83/7.87 public class juHashMapCreateSize { 25.83/7.87 public static void main(String[] args) { 25.83/7.87 Random.args = args; 25.83/7.87 25.83/7.87 HashMap m = createMap(Random.random()); 25.83/7.87 int size = m.size(); 25.83/7.87 } 25.83/7.87 25.83/7.87 public static HashMap createMap(int n) { 25.83/7.87 HashMap m = new HashMap(); 25.83/7.87 while (n > 0) { 25.83/7.87 Content key = new Content(Random.random()); 25.83/7.87 Content val = new Content(Random.random()); 25.83/7.87 m.put(key, val); 25.83/7.87 n--; 25.83/7.87 } 25.83/7.87 return m; 25.83/7.87 } 25.83/7.87 } 25.83/7.87 25.83/7.87 final class Content { 25.83/7.87 int val; 25.83/7.87 25.83/7.87 public Content(int v) { 25.83/7.87 this.val = v; 25.83/7.87 } 25.83/7.87 25.83/7.87 public int hashCode() { 25.83/7.87 return val^31; 25.83/7.87 } 25.83/7.87 25.83/7.87 public boolean equals(Object o) { 25.83/7.87 if (o instanceof Content) { 25.83/7.87 return this.val == ((Content) o).val; 25.83/7.87 } 25.83/7.87 return false; 25.83/7.87 } 25.83/7.87 } 25.83/7.87 25.83/7.87 25.83/7.87 /* 25.83/7.87 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 25.83/7.87 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 25.83/7.87 * 25.83/7.87 * This code is free software; you can redistribute it and/or modify it 25.83/7.87 * under the terms of the GNU General Public License version 2 only, as 25.83/7.87 * published by the Free Software Foundation. Sun designates this 25.83/7.87 * particular file as subject to the "Classpath" exception as provided 25.83/7.87 * by Sun in the LICENSE file that accompanied this code. 25.83/7.87 * 25.83/7.87 * This code is distributed in the hope that it will be useful, but WITHOUT 25.83/7.87 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 25.83/7.87 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 25.83/7.87 * version 2 for more details (a copy is included in the LICENSE file that 25.83/7.87 * accompanied this code). 25.83/7.87 * 25.83/7.87 * You should have received a copy of the GNU General Public License version 25.83/7.87 * 2 along with this work; if not, write to the Free Software Foundation, 25.83/7.87 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 25.83/7.87 * 25.83/7.87 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 25.83/7.87 * CA 95054 USA or visit www.sun.com if you need additional information or 25.83/7.87 * have any questions. 25.83/7.87 */ 25.83/7.87 25.83/7.87 package javaUtilEx; 25.83/7.87 25.83/7.87 /** 25.83/7.87 * An object that maps keys to values. A map cannot contain duplicate keys; 25.83/7.87 * each key can map to at most one value. 25.83/7.87 * 25.83/7.87 *

This interface takes the place of the Dictionary class, which 25.83/7.87 * was a totally abstract class rather than an interface. 25.83/7.87 * 25.83/7.87 *

The Map interface provides three collection views, which 25.83/7.87 * allow a map's contents to be viewed as a set of keys, collection of values, 25.83/7.87 * or set of key-value mappings. The order of a map is defined as 25.83/7.87 * the order in which the iterators on the map's collection views return their 25.83/7.87 * elements. Some map implementations, like the TreeMap class, make 25.83/7.87 * specific guarantees as to their order; others, like the HashMap 25.83/7.87 * class, do not. 25.83/7.87 * 25.83/7.87 *

Note: great care must be exercised if mutable objects are used as map 25.83/7.87 * keys. The behavior of a map is not specified if the value of an object is 25.83/7.87 * changed in a manner that affects equals comparisons while the 25.83/7.87 * object is a key in the map. A special case of this prohibition is that it 25.83/7.87 * is not permissible for a map to contain itself as a key. While it is 25.83/7.87 * permissible for a map to contain itself as a value, extreme caution is 25.83/7.87 * advised: the equals and hashCode methods are no longer 25.83/7.87 * well defined on such a map. 25.83/7.87 * 25.83/7.87 *

All general-purpose map implementation classes should provide two 25.83/7.87 * "standard" constructors: a void (no arguments) constructor which creates an 25.83/7.87 * empty map, and a constructor with a single argument of type Map, 25.83/7.87 * which creates a new map with the same key-value mappings as its argument. 25.83/7.87 * In effect, the latter constructor allows the user to copy any map, 25.83/7.87 * producing an equivalent map of the desired class. There is no way to 25.83/7.87 * enforce this recommendation (as interfaces cannot contain constructors) but 25.83/7.87 * all of the general-purpose map implementations in the JDK comply. 25.83/7.87 * 25.83/7.87 *

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

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

This interface is a member of the 25.83/7.87 * 25.83/7.87 * Java Collections Framework. 25.83/7.87 * 25.83/7.87 *

Many methods in Collections Framework interfaces are defined 25.83/7.87 * in terms of the {@link Object#equals(Object) equals} method. For 25.83/7.87 * example, the specification for the {@link #containsKey(Object) 25.83/7.87 * containsKey(Object key)} method says: "returns true if and 25.83/7.87 * only if this map contains a mapping for a key k such that 25.83/7.87 * (key==null ? k==null : key.equals(k))." This specification should 25.83/7.87 * not be construed to imply that invoking Map.containsKey 25.83/7.87 * with a non-null argument key will cause key.equals(k) to 25.83/7.87 * be invoked for any key k. Implementations are free to 25.83/7.87 * implement optimizations whereby the equals invocation is avoided, 25.83/7.87 * for example, by first comparing the hash codes of the two keys. (The 25.83/7.87 * {@link Object#hashCode()} specification guarantees that two objects with 25.83/7.87 * unequal hash codes cannot be equal.) More generally, implementations of 25.83/7.87 * the various Collections Framework interfaces are free to take advantage of 25.83/7.87 * the specified behavior of underlying {@link Object} methods wherever the 25.83/7.87 * implementor deems it appropriate. 25.83/7.87 * 25.83/7.87 * @param the type of keys maintained by this map 25.83/7.87 * @param the type of mapped values 25.83/7.87 * 25.83/7.87 * @author Josh Bloch 25.83/7.87 * @see HashMap 25.83/7.87 * @see TreeMap 25.83/7.87 * @see Hashtable 25.83/7.87 * @see SortedMap 25.83/7.87 * @see Collection 25.83/7.87 * @see Set 25.83/7.87 * @since 1.2 25.83/7.87 */ 25.83/7.87 public interface Map { 25.83/7.87 // Query Operations 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns the number of key-value mappings in this map. If the 25.83/7.87 * map contains more than Integer.MAX_VALUE elements, returns 25.83/7.87 * Integer.MAX_VALUE. 25.83/7.87 * 25.83/7.87 * @return the number of key-value mappings in this map 25.83/7.87 */ 25.83/7.87 int size(); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns true if this map contains no key-value mappings. 25.83/7.87 * 25.83/7.87 * @return true if this map contains no key-value mappings 25.83/7.87 */ 25.83/7.87 boolean isEmpty(); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns true if this map contains a mapping for the specified 25.83/7.87 * key. More formally, returns true if and only if 25.83/7.87 * this map contains a mapping for a key k such that 25.83/7.87 * (key==null ? k==null : key.equals(k)). (There can be 25.83/7.87 * at most one such mapping.) 25.83/7.87 * 25.83/7.87 * @param key key whose presence in this map is to be tested 25.83/7.87 * @return true if this map contains a mapping for the specified 25.83/7.87 * key 25.83/7.87 * @throws ClassCastException if the key is of an inappropriate type for 25.83/7.87 * this map (optional) 25.83/7.87 * @throws NullPointerException if the specified key is null and this map 25.83/7.87 * does not permit null keys (optional) 25.83/7.87 */ 25.83/7.87 boolean containsKey(Object key); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns true if this map maps one or more keys to the 25.83/7.87 * specified value. More formally, returns true if and only if 25.83/7.87 * this map contains at least one mapping to a value v such that 25.83/7.87 * (value==null ? v==null : value.equals(v)). This operation 25.83/7.87 * will probably require time linear in the map size for most 25.83/7.87 * implementations of the Map interface. 25.83/7.87 * 25.83/7.87 * @param value value whose presence in this map is to be tested 25.83/7.87 * @return true if this map maps one or more keys to the 25.83/7.87 * specified value 25.83/7.87 * @throws ClassCastException if the value is of an inappropriate type for 25.83/7.87 * this map (optional) 25.83/7.87 * @throws NullPointerException if the specified value is null and this 25.83/7.87 * map does not permit null values (optional) 25.83/7.87 */ 25.83/7.87 boolean containsValue(Object value); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns the value to which the specified key is mapped, 25.83/7.87 * or {@code null} if this map contains no mapping for the key. 25.83/7.87 * 25.83/7.87 *

More formally, if this map contains a mapping from a key 25.83/7.87 * {@code k} to a value {@code v} such that {@code (key==null ? k==null : 25.83/7.87 * key.equals(k))}, then this method returns {@code v}; otherwise 25.83/7.87 * it returns {@code null}. (There can be at most one such mapping.) 25.83/7.87 * 25.83/7.87 *

If this map permits null values, then a return value of 25.83/7.87 * {@code null} does not necessarily indicate that the map 25.83/7.87 * contains no mapping for the key; it's also possible that the map 25.83/7.87 * explicitly maps the key to {@code null}. The {@link #containsKey 25.83/7.87 * containsKey} operation may be used to distinguish these two cases. 25.83/7.87 * 25.83/7.87 * @param key the key whose associated value is to be returned 25.83/7.87 * @return the value to which the specified key is mapped, or 25.83/7.87 * {@code null} if this map contains no mapping for the key 25.83/7.87 * @throws ClassCastException if the key is of an inappropriate type for 25.83/7.87 * this map (optional) 25.83/7.87 * @throws NullPointerException if the specified key is null and this map 25.83/7.87 * does not permit null keys (optional) 25.83/7.87 */ 25.83/7.87 V get(Object key); 25.83/7.87 25.83/7.87 // Modification Operations 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Associates the specified value with the specified key in this map 25.83/7.87 * (optional operation). If the map previously contained a mapping for 25.83/7.87 * the key, the old value is replaced by the specified value. (A map 25.83/7.87 * m is said to contain a mapping for a key k if and only 25.83/7.87 * if {@link #containsKey(Object) m.containsKey(k)} would return 25.83/7.87 * true.) 25.83/7.87 * 25.83/7.87 * @param key key with which the specified value is to be associated 25.83/7.87 * @param value value to be associated with the specified key 25.83/7.87 * @return the previous value associated with key, or 25.83/7.87 * null if there was no mapping for key. 25.83/7.87 * (A null return can also indicate that the map 25.83/7.87 * previously associated null with key, 25.83/7.87 * if the implementation supports null values.) 25.83/7.87 * @throws UnsupportedOperationException if the put operation 25.83/7.87 * is not supported by this map 25.83/7.87 * @throws ClassCastException if the class of the specified key or value 25.83/7.87 * prevents it from being stored in this map 25.83/7.87 * @throws NullPointerException if the specified key or value is null 25.83/7.87 * and this map does not permit null keys or values 25.83/7.87 * @throws IllegalArgumentException if some property of the specified key 25.83/7.87 * or value prevents it from being stored in this map 25.83/7.87 */ 25.83/7.87 V put(K key, V value); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Removes the mapping for a key from this map if it is present 25.83/7.87 * (optional operation). More formally, if this map contains a mapping 25.83/7.87 * from key k to value v such that 25.83/7.87 * (key==null ? k==null : key.equals(k)), that mapping 25.83/7.87 * is removed. (The map can contain at most one such mapping.) 25.83/7.87 * 25.83/7.87 *

Returns the value to which this map previously associated the key, 25.83/7.87 * or null if the map contained no mapping for the key. 25.83/7.87 * 25.83/7.87 *

If this map permits null values, then a return value of 25.83/7.87 * null does not necessarily indicate that the map 25.83/7.87 * contained no mapping for the key; it's also possible that the map 25.83/7.87 * explicitly mapped the key to null. 25.83/7.87 * 25.83/7.87 *

The map will not contain a mapping for the specified key once the 25.83/7.87 * call returns. 25.83/7.87 * 25.83/7.87 * @param key key whose mapping is to be removed from the map 25.83/7.87 * @return the previous value associated with key, or 25.83/7.87 * null if there was no mapping for key. 25.83/7.87 * @throws UnsupportedOperationException if the remove operation 25.83/7.87 * is not supported by this map 25.83/7.87 * @throws ClassCastException if the key is of an inappropriate type for 25.83/7.87 * this map (optional) 25.83/7.87 * @throws NullPointerException if the specified key is null and this 25.83/7.87 * map does not permit null keys (optional) 25.83/7.87 */ 25.83/7.87 V remove(Object key); 25.83/7.87 25.83/7.87 25.83/7.87 // Bulk Operations 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Copies all of the mappings from the specified map to this map 25.83/7.87 * (optional operation). The effect of this call is equivalent to that 25.83/7.87 * of calling {@link #put(Object,Object) put(k, v)} on this map once 25.83/7.87 * for each mapping from key k to value v in the 25.83/7.87 * specified map. The behavior of this operation is undefined if the 25.83/7.87 * specified map is modified while the operation is in progress. 25.83/7.87 * 25.83/7.87 * @param m mappings to be stored in this map 25.83/7.87 * @throws UnsupportedOperationException if the putAll operation 25.83/7.87 * is not supported by this map 25.83/7.87 * @throws ClassCastException if the class of a key or value in the 25.83/7.87 * specified map prevents it from being stored in this map 25.83/7.87 * @throws NullPointerException if the specified map is null, or if 25.83/7.87 * this map does not permit null keys or values, and the 25.83/7.87 * specified map contains null keys or values 25.83/7.87 * @throws IllegalArgumentException if some property of a key or value in 25.83/7.87 * the specified map prevents it from being stored in this map 25.83/7.87 */ 25.83/7.87 void putAll(Map m); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Removes all of the mappings from this map (optional operation). 25.83/7.87 * The map will be empty after this call returns. 25.83/7.87 * 25.83/7.87 * @throws UnsupportedOperationException if the clear operation 25.83/7.87 * is not supported by this map 25.83/7.87 */ 25.83/7.87 void clear(); 25.83/7.87 25.83/7.87 25.83/7.87 // Views 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns a {@link Set} view of the keys contained in this map. 25.83/7.87 * The set is backed by the map, so changes to the map are 25.83/7.87 * reflected in the set, and vice-versa. If the map is modified 25.83/7.87 * while an iteration over the set is in progress (except through 25.83/7.87 * the iterator's own remove operation), the results of 25.83/7.87 * the iteration are undefined. The set supports element removal, 25.83/7.87 * which removes the corresponding mapping from the map, via the 25.83/7.87 * Iterator.remove, Set.remove, 25.83/7.87 * removeAll, retainAll, and clear 25.83/7.87 * operations. It does not support the add or addAll 25.83/7.87 * operations. 25.83/7.87 * 25.83/7.87 * @return a set view of the keys contained in this map 25.83/7.87 */ 25.83/7.87 Set keySet(); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns a {@link Collection} view of the values contained in this map. 25.83/7.87 * The collection is backed by the map, so changes to the map are 25.83/7.87 * reflected in the collection, and vice-versa. If the map is 25.83/7.87 * modified while an iteration over the collection is in progress 25.83/7.87 * (except through the iterator's own remove operation), 25.83/7.87 * the results of the iteration are undefined. The collection 25.83/7.87 * supports element removal, which removes the corresponding 25.83/7.87 * mapping from the map, via the Iterator.remove, 25.83/7.87 * Collection.remove, removeAll, 25.83/7.87 * retainAll and clear operations. It does not 25.83/7.87 * support the add or addAll operations. 25.83/7.87 * 25.83/7.87 * @return a collection view of the values contained in this map 25.83/7.87 */ 25.83/7.87 Collection values(); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns a {@link Set} view of the mappings contained in this map. 25.83/7.87 * The set is backed by the map, so changes to the map are 25.83/7.87 * reflected in the set, and vice-versa. If the map is modified 25.83/7.87 * while an iteration over the set is in progress (except through 25.83/7.87 * the iterator's own remove operation, or through the 25.83/7.87 * setValue operation on a map entry returned by the 25.83/7.87 * iterator) the results of the iteration are undefined. The set 25.83/7.87 * supports element removal, which removes the corresponding 25.83/7.87 * mapping from the map, via the Iterator.remove, 25.83/7.87 * Set.remove, removeAll, retainAll and 25.83/7.87 * clear operations. It does not support the 25.83/7.87 * add or addAll operations. 25.83/7.87 * 25.83/7.87 * @return a set view of the mappings contained in this map 25.83/7.87 */ 25.83/7.87 Set> entrySet(); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * A map entry (key-value pair). The Map.entrySet method returns 25.83/7.87 * a collection-view of the map, whose elements are of this class. The 25.83/7.87 * only way to obtain a reference to a map entry is from the 25.83/7.87 * iterator of this collection-view. These Map.Entry objects are 25.83/7.87 * valid only for the duration of the iteration; more formally, 25.83/7.87 * the behavior of a map entry is undefined if the backing map has been 25.83/7.87 * modified after the entry was returned by the iterator, except through 25.83/7.87 * the setValue operation on the map entry. 25.83/7.87 * 25.83/7.87 * @see Map#entrySet() 25.83/7.87 * @since 1.2 25.83/7.87 */ 25.83/7.87 interface Entry { 25.83/7.87 /** 25.83/7.87 * Returns the key corresponding to this entry. 25.83/7.87 * 25.83/7.87 * @return the key corresponding to this entry 25.83/7.87 * @throws IllegalStateException implementations may, but are not 25.83/7.87 * required to, throw this exception if the entry has been 25.83/7.87 * removed from the backing map. 25.83/7.87 */ 25.83/7.87 K getKey(); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns the value corresponding to this entry. If the mapping 25.83/7.87 * has been removed from the backing map (by the iterator's 25.83/7.87 * remove operation), the results of this call are undefined. 25.83/7.87 * 25.83/7.87 * @return the value corresponding to this entry 25.83/7.87 * @throws IllegalStateException implementations may, but are not 25.83/7.87 * required to, throw this exception if the entry has been 25.83/7.87 * removed from the backing map. 25.83/7.87 */ 25.83/7.87 V getValue(); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Replaces the value corresponding to this entry with the specified 25.83/7.87 * value (optional operation). (Writes through to the map.) The 25.83/7.87 * behavior of this call is undefined if the mapping has already been 25.83/7.87 * removed from the map (by the iterator's remove operation). 25.83/7.87 * 25.83/7.87 * @param value new value to be stored in this entry 25.83/7.87 * @return old value corresponding to the entry 25.83/7.87 * @throws UnsupportedOperationException if the put operation 25.83/7.87 * is not supported by the backing map 25.83/7.87 * @throws ClassCastException if the class of the specified value 25.83/7.87 * prevents it from being stored in the backing map 25.83/7.87 * @throws NullPointerException if the backing map does not permit 25.83/7.87 * null values, and the specified value is null 25.83/7.87 * @throws IllegalArgumentException if some property of this value 25.83/7.87 * prevents it from being stored in the backing map 25.83/7.87 * @throws IllegalStateException implementations may, but are not 25.83/7.87 * required to, throw this exception if the entry has been 25.83/7.87 * removed from the backing map. 25.83/7.87 */ 25.83/7.87 V setValue(V value); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Compares the specified object with this entry for equality. 25.83/7.87 * Returns true if the given object is also a map entry and 25.83/7.87 * the two entries represent the same mapping. More formally, two 25.83/7.87 * entries e1 and e2 represent the same mapping 25.83/7.87 * if

25.83/7.87	         *     (e1.getKey()==null ?
25.83/7.87	         *      e2.getKey()==null : e1.getKey().equals(e2.getKey()))  &&
25.83/7.87	         *     (e1.getValue()==null ?
25.83/7.87	         *      e2.getValue()==null : e1.getValue().equals(e2.getValue()))
25.83/7.87	         * 
25.83/7.87 * This ensures that the equals method works properly across 25.83/7.87 * different implementations of the Map.Entry interface. 25.83/7.87 * 25.83/7.87 * @param o object to be compared for equality with this map entry 25.83/7.87 * @return true if the specified object is equal to this map 25.83/7.87 * entry 25.83/7.87 */ 25.83/7.87 boolean equals(Object o); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns the hash code value for this map entry. The hash code 25.83/7.87 * of a map entry e is defined to be:
25.83/7.87	         *     (e.getKey()==null   ? 0 : e.getKey().hashCode()) ^
25.83/7.87	         *     (e.getValue()==null ? 0 : e.getValue().hashCode())
25.83/7.87	         * 
25.83/7.87 * This ensures that e1.equals(e2) implies that 25.83/7.87 * e1.hashCode()==e2.hashCode() for any two Entries 25.83/7.87 * e1 and e2, as required by the general 25.83/7.87 * contract of Object.hashCode. 25.83/7.87 * 25.83/7.87 * @return the hash code value for this map entry 25.83/7.87 * @see Object#hashCode() 25.83/7.87 * @see Object#equals(Object) 25.83/7.87 * @see #equals(Object) 25.83/7.87 */ 25.83/7.87 int hashCode(); 25.83/7.87 } 25.83/7.87 25.83/7.87 // Comparison and hashing 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Compares the specified object with this map for equality. Returns 25.83/7.87 * true if the given object is also a map and the two maps 25.83/7.87 * represent the same mappings. More formally, two maps m1 and 25.83/7.87 * m2 represent the same mappings if 25.83/7.87 * m1.entrySet().equals(m2.entrySet()). This ensures that the 25.83/7.87 * equals method works properly across different implementations 25.83/7.87 * of the Map interface. 25.83/7.87 * 25.83/7.87 * @param o object to be compared for equality with this map 25.83/7.87 * @return true if the specified object is equal to this map 25.83/7.87 */ 25.83/7.87 boolean equals(Object o); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns the hash code value for this map. The hash code of a map is 25.83/7.87 * defined to be the sum of the hash codes of each entry in the map's 25.83/7.87 * entrySet() view. This ensures that m1.equals(m2) 25.83/7.87 * implies that m1.hashCode()==m2.hashCode() for any two maps 25.83/7.87 * m1 and m2, as required by the general contract of 25.83/7.87 * {@link Object#hashCode}. 25.83/7.87 * 25.83/7.87 * @return the hash code value for this map 25.83/7.87 * @see Map.Entry#hashCode() 25.83/7.87 * @see Object#equals(Object) 25.83/7.87 * @see #equals(Object) 25.83/7.87 */ 25.83/7.87 int hashCode(); 25.83/7.87 } 25.83/7.87 25.83/7.87 25.83/7.87 /* 25.83/7.87 * Copyright 1994-1998 Sun Microsystems, Inc. All Rights Reserved. 25.83/7.87 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 25.83/7.87 * 25.83/7.87 * This code is free software; you can redistribute it and/or modify it 25.83/7.87 * under the terms of the GNU General Public License version 2 only, as 25.83/7.87 * published by the Free Software Foundation. Sun designates this 25.83/7.87 * particular file as subject to the "Classpath" exception as provided 25.83/7.87 * by Sun in the LICENSE file that accompanied this code. 25.83/7.87 * 25.83/7.87 * This code is distributed in the hope that it will be useful, but WITHOUT 25.83/7.87 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 25.83/7.87 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 25.83/7.87 * version 2 for more details (a copy is included in the LICENSE file that 25.83/7.87 * accompanied this code). 25.83/7.87 * 25.83/7.87 * You should have received a copy of the GNU General Public License version 25.83/7.87 * 2 along with this work; if not, write to the Free Software Foundation, 25.83/7.87 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 25.83/7.87 * 25.83/7.87 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 25.83/7.87 * CA 95054 USA or visit www.sun.com if you need additional information or 25.83/7.87 * have any questions. 25.83/7.87 */ 25.83/7.87 25.83/7.87 package javaUtilEx; 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Thrown by the nextElement method of an 25.83/7.87 * Enumeration to indicate that there are no more 25.83/7.87 * elements in the enumeration. 25.83/7.87 * 25.83/7.87 * @author unascribed 25.83/7.87 * @see java.util.Enumeration 25.83/7.87 * @see java.util.Enumeration#nextElement() 25.83/7.87 * @since JDK1.0 25.83/7.87 */ 25.83/7.87 public 25.83/7.87 class NoSuchElementException extends RuntimeException { 25.83/7.87 /** 25.83/7.87 * Constructs a NoSuchElementException with null 25.83/7.87 * as its error message string. 25.83/7.87 */ 25.83/7.87 public NoSuchElementException() { 25.83/7.87 super(); 25.83/7.87 } 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Constructs a NoSuchElementException, saving a reference 25.83/7.87 * to the error message string s for later retrieval by the 25.83/7.87 * getMessage method. 25.83/7.87 * 25.83/7.87 * @param s the detail message. 25.83/7.87 */ 25.83/7.87 public NoSuchElementException(String s) { 25.83/7.87 super(s); 25.83/7.87 } 25.83/7.87 } 25.83/7.87 25.83/7.87 25.83/7.87 package javaUtilEx; 25.83/7.87 25.83/7.87 public class Random { 25.83/7.87 static String[] args; 25.83/7.87 static int index = 0; 25.83/7.87 25.83/7.87 public static int random() { 25.83/7.87 String string = args[index]; 25.83/7.87 index++; 25.83/7.87 return string.length(); 25.83/7.87 } 25.83/7.87 } 25.83/7.87 25.83/7.87 25.83/7.87 /* 25.83/7.87 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 25.83/7.87 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 25.83/7.87 * 25.83/7.87 * This code is free software; you can redistribute it and/or modify it 25.83/7.87 * under the terms of the GNU General Public License version 2 only, as 25.83/7.87 * published by the Free Software Foundation. Sun designates this 25.83/7.87 * particular file as subject to the "Classpath" exception as provided 25.83/7.87 * by Sun in the LICENSE file that accompanied this code. 25.83/7.87 * 25.83/7.87 * This code is distributed in the hope that it will be useful, but WITHOUT 25.83/7.87 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 25.83/7.87 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 25.83/7.87 * version 2 for more details (a copy is included in the LICENSE file that 25.83/7.87 * accompanied this code). 25.83/7.87 * 25.83/7.87 * You should have received a copy of the GNU General Public License version 25.83/7.87 * 2 along with this work; if not, write to the Free Software Foundation, 25.83/7.87 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 25.83/7.87 * 25.83/7.87 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 25.83/7.87 * CA 95054 USA or visit www.sun.com if you need additional information or 25.83/7.87 * have any questions. 25.83/7.87 */ 25.83/7.87 25.83/7.87 package javaUtilEx; 25.83/7.87 25.83/7.87 /** 25.83/7.87 * A collection that contains no duplicate elements. More formally, sets 25.83/7.87 * contain no pair of elements e1 and e2 such that 25.83/7.87 * e1.equals(e2), and at most one null element. As implied by 25.83/7.87 * its name, this interface models the mathematical set abstraction. 25.83/7.87 * 25.83/7.87 *

The Set interface places additional stipulations, beyond those 25.83/7.87 * inherited from the Collection interface, on the contracts of all 25.83/7.87 * constructors and on the contracts of the add, equals and 25.83/7.87 * hashCode methods. Declarations for other inherited methods are 25.83/7.87 * also included here for convenience. (The specifications accompanying these 25.83/7.87 * declarations have been tailored to the Set interface, but they do 25.83/7.87 * not contain any additional stipulations.) 25.83/7.87 * 25.83/7.87 *

The additional stipulation on constructors is, not surprisingly, 25.83/7.87 * that all constructors must create a set that contains no duplicate elements 25.83/7.87 * (as defined above). 25.83/7.87 * 25.83/7.87 *

Note: Great care must be exercised if mutable objects are used as set 25.83/7.87 * elements. The behavior of a set is not specified if the value of an object 25.83/7.87 * is changed in a manner that affects equals comparisons while the 25.83/7.87 * object is an element in the set. A special case of this prohibition is 25.83/7.87 * that it is not permissible for a set to contain itself as an element. 25.83/7.87 * 25.83/7.87 *

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

This interface is a member of the 25.83/7.87 * 25.83/7.87 * Java Collections Framework. 25.83/7.87 * 25.83/7.87 * @param the type of elements maintained by this set 25.83/7.87 * 25.83/7.87 * @author Josh Bloch 25.83/7.87 * @author Neal Gafter 25.83/7.87 * @see Collection 25.83/7.87 * @see List 25.83/7.87 * @see SortedSet 25.83/7.87 * @see HashSet 25.83/7.87 * @see TreeSet 25.83/7.87 * @see AbstractSet 25.83/7.87 * @see Collections#singleton(java.lang.Object) 25.83/7.87 * @see Collections#EMPTY_SET 25.83/7.87 * @since 1.2 25.83/7.87 */ 25.83/7.87 25.83/7.87 public interface Set extends Collection { 25.83/7.87 // Query Operations 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns the number of elements in this set (its cardinality). If this 25.83/7.87 * set contains more than Integer.MAX_VALUE elements, returns 25.83/7.87 * Integer.MAX_VALUE. 25.83/7.87 * 25.83/7.87 * @return the number of elements in this set (its cardinality) 25.83/7.87 */ 25.83/7.87 int size(); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns true if this set contains no elements. 25.83/7.87 * 25.83/7.87 * @return true if this set contains no elements 25.83/7.87 */ 25.83/7.87 boolean isEmpty(); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns true if this set contains the specified element. 25.83/7.87 * More formally, returns true if and only if this set 25.83/7.87 * contains an element e such that 25.83/7.87 * (o==null ? e==null : o.equals(e)). 25.83/7.87 * 25.83/7.87 * @param o element whose presence in this set is to be tested 25.83/7.87 * @return true if this set contains the specified element 25.83/7.87 * @throws ClassCastException if the type of the specified element 25.83/7.87 * is incompatible with this set (optional) 25.83/7.87 * @throws NullPointerException if the specified element is null and this 25.83/7.87 * set does not permit null elements (optional) 25.83/7.87 */ 25.83/7.87 boolean contains(Object o); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns an iterator over the elements in this set. The elements are 25.83/7.87 * returned in no particular order (unless this set is an instance of some 25.83/7.87 * class that provides a guarantee). 25.83/7.87 * 25.83/7.87 * @return an iterator over the elements in this set 25.83/7.87 */ 25.83/7.87 Iterator iterator(); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns an array containing all of the elements in this set. 25.83/7.87 * If this set makes any guarantees as to what order its elements 25.83/7.87 * are returned by its iterator, this method must return the 25.83/7.87 * elements in the same order. 25.83/7.87 * 25.83/7.87 *

The returned array will be "safe" in that no references to it 25.83/7.87 * are maintained by this set. (In other words, this method must 25.83/7.87 * allocate a new array even if this set is backed by an array). 25.83/7.87 * The caller is thus free to modify the returned array. 25.83/7.87 * 25.83/7.87 *

This method acts as bridge between array-based and collection-based 25.83/7.87 * APIs. 25.83/7.87 * 25.83/7.87 * @return an array containing all the elements in this set 25.83/7.87 */ 25.83/7.87 Object[] toArray(); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns an array containing all of the elements in this set; the 25.83/7.87 * runtime type of the returned array is that of the specified array. 25.83/7.87 * If the set fits in the specified array, it is returned therein. 25.83/7.87 * Otherwise, a new array is allocated with the runtime type of the 25.83/7.87 * specified array and the size of this set. 25.83/7.87 * 25.83/7.87 *

If this set fits in the specified array with room to spare 25.83/7.87 * (i.e., the array has more elements than this set), the element in 25.83/7.87 * the array immediately following the end of the set is set to 25.83/7.87 * null. (This is useful in determining the length of this 25.83/7.87 * set only if the caller knows that this set does not contain 25.83/7.87 * any null elements.) 25.83/7.87 * 25.83/7.87 *

If this set makes any guarantees as to what order its elements 25.83/7.87 * are returned by its iterator, this method must return the elements 25.83/7.87 * in the same order. 25.83/7.87 * 25.83/7.87 *

Like the {@link #toArray()} method, this method acts as bridge between 25.83/7.87 * array-based and collection-based APIs. Further, this method allows 25.83/7.87 * precise control over the runtime type of the output array, and may, 25.83/7.87 * under certain circumstances, be used to save allocation costs. 25.83/7.87 * 25.83/7.87 *

Suppose x is a set known to contain only strings. 25.83/7.87 * The following code can be used to dump the set into a newly allocated 25.83/7.87 * array of String: 25.83/7.87 * 25.83/7.87 *

25.83/7.87	     *     String[] y = x.toArray(new String[0]);
25.83/7.87 * 25.83/7.87 * Note that toArray(new Object[0]) is identical in function to 25.83/7.87 * toArray(). 25.83/7.87 * 25.83/7.87 * @param a the array into which the elements of this set are to be 25.83/7.87 * stored, if it is big enough; otherwise, a new array of the same 25.83/7.87 * runtime type is allocated for this purpose. 25.83/7.87 * @return an array containing all the elements in this set 25.83/7.87 * @throws ArrayStoreException if the runtime type of the specified array 25.83/7.87 * is not a supertype of the runtime type of every element in this 25.83/7.87 * set 25.83/7.87 * @throws NullPointerException if the specified array is null 25.83/7.87 */ 25.83/7.87 T[] toArray(T[] a); 25.83/7.87 25.83/7.87 25.83/7.87 // Modification Operations 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Adds the specified element to this set if it is not already present 25.83/7.87 * (optional operation). More formally, adds the specified element 25.83/7.87 * e to this set if the set contains no element e2 25.83/7.87 * such that 25.83/7.87 * (e==null ? e2==null : e.equals(e2)). 25.83/7.87 * If this set already contains the element, the call leaves the set 25.83/7.87 * unchanged and returns false. In combination with the 25.83/7.87 * restriction on constructors, this ensures that sets never contain 25.83/7.87 * duplicate elements. 25.83/7.87 * 25.83/7.87 *

The stipulation above does not imply that sets must accept all 25.83/7.87 * elements; sets may refuse to add any particular element, including 25.83/7.87 * null, and throw an exception, as described in the 25.83/7.87 * specification for {@link Collection#add Collection.add}. 25.83/7.87 * Individual set implementations should clearly document any 25.83/7.87 * restrictions on the elements that they may contain. 25.83/7.87 * 25.83/7.87 * @param e element to be added to this set 25.83/7.87 * @return true if this set did not already contain the specified 25.83/7.87 * element 25.83/7.87 * @throws UnsupportedOperationException if the add operation 25.83/7.87 * is not supported by this set 25.83/7.87 * @throws ClassCastException if the class of the specified element 25.83/7.87 * prevents it from being added to this set 25.83/7.87 * @throws NullPointerException if the specified element is null and this 25.83/7.87 * set does not permit null elements 25.83/7.87 * @throws IllegalArgumentException if some property of the specified element 25.83/7.87 * prevents it from being added to this set 25.83/7.87 */ 25.83/7.87 boolean add(E e); 25.83/7.87 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Removes the specified element from this set if it is present 25.83/7.87 * (optional operation). More formally, removes an element e 25.83/7.87 * such that 25.83/7.87 * (o==null ? e==null : o.equals(e)), if 25.83/7.87 * this set contains such an element. Returns true if this set 25.83/7.87 * contained the element (or equivalently, if this set changed as a 25.83/7.87 * result of the call). (This set will not contain the element once the 25.83/7.87 * call returns.) 25.83/7.87 * 25.83/7.87 * @param o object to be removed from this set, if present 25.83/7.87 * @return true if this set contained the specified element 25.83/7.87 * @throws ClassCastException if the type of the specified element 25.83/7.87 * is incompatible with this set (optional) 25.83/7.87 * @throws NullPointerException if the specified element is null and this 25.83/7.87 * set does not permit null elements (optional) 25.83/7.87 * @throws UnsupportedOperationException if the remove operation 25.83/7.87 * is not supported by this set 25.83/7.87 */ 25.83/7.87 boolean remove(Object o); 25.83/7.87 25.83/7.87 25.83/7.87 // Bulk Operations 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns true if this set contains all of the elements of the 25.83/7.87 * specified collection. If the specified collection is also a set, this 25.83/7.87 * method returns true if it is a subset of this set. 25.83/7.87 * 25.83/7.87 * @param c collection to be checked for containment in this set 25.83/7.87 * @return true if this set contains all of the elements of the 25.83/7.87 * specified collection 25.83/7.87 * @throws ClassCastException if the types of one or more elements 25.83/7.87 * in the specified collection are incompatible with this 25.83/7.87 * set (optional) 25.83/7.87 * @throws NullPointerException if the specified collection contains one 25.83/7.87 * or more null elements and this set does not permit null 25.83/7.87 * elements (optional), or if the specified collection is null 25.83/7.87 * @see #contains(Object) 25.83/7.87 */ 25.83/7.87 boolean containsAll(Collection c); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Adds all of the elements in the specified collection to this set if 25.83/7.87 * they're not already present (optional operation). If the specified 25.83/7.87 * collection is also a set, the addAll operation effectively 25.83/7.87 * modifies this set so that its value is the union of the two 25.83/7.87 * sets. The behavior of this operation is undefined if the specified 25.83/7.87 * collection is modified while the operation is in progress. 25.83/7.87 * 25.83/7.87 * @param c collection containing elements to be added to this set 25.83/7.87 * @return true if this set changed as a result of the call 25.83/7.87 * 25.83/7.87 * @throws UnsupportedOperationException if the addAll operation 25.83/7.87 * is not supported by this set 25.83/7.87 * @throws ClassCastException if the class of an element of the 25.83/7.87 * specified collection prevents it from being added to this set 25.83/7.87 * @throws NullPointerException if the specified collection contains one 25.83/7.87 * or more null elements and this set does not permit null 25.83/7.87 * elements, or if the specified collection is null 25.83/7.87 * @throws IllegalArgumentException if some property of an element of the 25.83/7.87 * specified collection prevents it from being added to this set 25.83/7.87 * @see #add(Object) 25.83/7.87 */ 25.83/7.87 boolean addAll(Collection c); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Retains only the elements in this set that are contained in the 25.83/7.87 * specified collection (optional operation). In other words, removes 25.83/7.87 * from this set all of its elements that are not contained in the 25.83/7.87 * specified collection. If the specified collection is also a set, this 25.83/7.87 * operation effectively modifies this set so that its value is the 25.83/7.87 * intersection of the two sets. 25.83/7.87 * 25.83/7.87 * @param c collection containing elements to be retained in this set 25.83/7.87 * @return true if this set changed as a result of the call 25.83/7.87 * @throws UnsupportedOperationException if the retainAll operation 25.83/7.87 * is not supported by this set 25.83/7.87 * @throws ClassCastException if the class of an element of this set 25.83/7.87 * is incompatible with the specified collection (optional) 25.83/7.87 * @throws NullPointerException if this set contains a null element and the 25.83/7.87 * specified collection does not permit null elements (optional), 25.83/7.87 * or if the specified collection is null 25.83/7.87 * @see #remove(Object) 25.83/7.87 */ 25.83/7.87 boolean retainAll(Collection c); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Removes from this set all of its elements that are contained in the 25.83/7.87 * specified collection (optional operation). If the specified 25.83/7.87 * collection is also a set, this operation effectively modifies this 25.83/7.87 * set so that its value is the asymmetric set difference of 25.83/7.87 * the two sets. 25.83/7.87 * 25.83/7.87 * @param c collection containing elements to be removed from this set 25.83/7.87 * @return true if this set changed as a result of the call 25.83/7.87 * @throws UnsupportedOperationException if the removeAll operation 25.83/7.87 * is not supported by this set 25.83/7.87 * @throws ClassCastException if the class of an element of this set 25.83/7.87 * is incompatible with the specified collection (optional) 25.83/7.87 * @throws NullPointerException if this set contains a null element and the 25.83/7.87 * specified collection does not permit null elements (optional), 25.83/7.87 * or if the specified collection is null 25.83/7.87 * @see #remove(Object) 25.83/7.87 * @see #contains(Object) 25.83/7.87 */ 25.83/7.87 boolean removeAll(Collection c); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Removes all of the elements from this set (optional operation). 25.83/7.87 * The set will be empty after this call returns. 25.83/7.87 * 25.83/7.87 * @throws UnsupportedOperationException if the clear method 25.83/7.87 * is not supported by this set 25.83/7.87 */ 25.83/7.87 void clear(); 25.83/7.87 25.83/7.87 25.83/7.87 // Comparison and hashing 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Compares the specified object with this set for equality. Returns 25.83/7.87 * true if the specified object is also a set, the two sets 25.83/7.87 * have the same size, and every member of the specified set is 25.83/7.87 * contained in this set (or equivalently, every member of this set is 25.83/7.87 * contained in the specified set). This definition ensures that the 25.83/7.87 * equals method works properly across different implementations of the 25.83/7.87 * set interface. 25.83/7.87 * 25.83/7.87 * @param o object to be compared for equality with this set 25.83/7.87 * @return true if the specified object is equal to this set 25.83/7.87 */ 25.83/7.87 boolean equals(Object o); 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Returns the hash code value for this set. The hash code of a set is 25.83/7.87 * defined to be the sum of the hash codes of the elements in the set, 25.83/7.87 * where the hash code of a null element is defined to be zero. 25.83/7.87 * This ensures that s1.equals(s2) implies that 25.83/7.87 * s1.hashCode()==s2.hashCode() for any two sets s1 25.83/7.87 * and s2, as required by the general contract of 25.83/7.87 * {@link Object#hashCode}. 25.83/7.87 * 25.83/7.87 * @return the hash code value for this set 25.83/7.87 * @see Object#equals(Object) 25.83/7.87 * @see Set#equals(Object) 25.83/7.87 */ 25.83/7.87 int hashCode(); 25.83/7.87 } 25.83/7.87 25.83/7.87 25.83/7.87 /* 25.83/7.87 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 25.83/7.87 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 25.83/7.87 * 25.83/7.87 * This code is free software; you can redistribute it and/or modify it 25.83/7.87 * under the terms of the GNU General Public License version 2 only, as 25.83/7.87 * published by the Free Software Foundation. Sun designates this 25.83/7.87 * particular file as subject to the "Classpath" exception as provided 25.83/7.87 * by Sun in the LICENSE file that accompanied this code. 25.83/7.87 * 25.83/7.87 * This code is distributed in the hope that it will be useful, but WITHOUT 25.83/7.87 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 25.83/7.87 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 25.83/7.87 * version 2 for more details (a copy is included in the LICENSE file that 25.83/7.87 * accompanied this code). 25.83/7.87 * 25.83/7.87 * You should have received a copy of the GNU General Public License version 25.83/7.87 * 2 along with this work; if not, write to the Free Software Foundation, 25.83/7.87 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 25.83/7.87 * 25.83/7.87 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 25.83/7.87 * CA 95054 USA or visit www.sun.com if you need additional information or 25.83/7.87 * have any questions. 25.83/7.87 */ 25.83/7.87 25.83/7.87 package javaUtilEx; 25.83/7.87 25.83/7.87 /** 25.83/7.87 * Thrown to indicate that the requested operation is not supported.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

To implement an unmodifiable map, the programmer needs only to extend this 25.83/7.88 * class and provide an implementation for the entrySet method, which 25.83/7.88 * returns a set-view of the map's mappings. Typically, the returned set 25.83/7.88 * will, in turn, be implemented atop AbstractSet. This set should 25.83/7.88 * not support the add or remove methods, and its iterator 25.83/7.88 * should not support the remove method. 25.83/7.88 * 25.83/7.88 *

To implement a modifiable map, the programmer must additionally override 25.83/7.88 * this class's put method (which otherwise throws an 25.83/7.88 * UnsupportedOperationException), and the iterator returned by 25.83/7.88 * entrySet().iterator() must additionally implement its 25.83/7.88 * remove method. 25.83/7.88 * 25.83/7.88 *

The programmer should generally provide a void (no argument) and map 25.83/7.88 * constructor, as per the recommendation in the Map interface 25.83/7.88 * specification. 25.83/7.88 * 25.83/7.88 *

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

This class is a member of the 25.83/7.88 * 25.83/7.88 * Java Collections Framework. 25.83/7.88 * 25.83/7.88 * @param the type of keys maintained by this map 25.83/7.88 * @param the type of mapped values 25.83/7.88 * 25.83/7.88 * @author Josh Bloch 25.83/7.88 * @author Neal Gafter 25.83/7.88 * @see Map 25.83/7.88 * @see Collection 25.83/7.88 * @since 1.2 25.83/7.88 */ 25.83/7.88 25.83/7.88 public abstract class AbstractMap implements Map { 25.83/7.88 /** 25.83/7.88 * Sole constructor. (For invocation by subclass constructors, typically 25.83/7.88 * implicit.) 25.83/7.88 */ 25.83/7.88 protected AbstractMap() { 25.83/7.88 } 25.83/7.88 25.83/7.88 // Query Operations 25.83/7.88 25.83/7.88 /** 25.83/7.88 * {@inheritDoc} 25.83/7.88 * 25.83/7.88 *

This implementation returns entrySet().size(). 25.83/7.88 */ 25.83/7.88 public int size() { 25.83/7.88 return entrySet().size(); 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * {@inheritDoc} 25.83/7.88 * 25.83/7.88 *

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

This implementation iterates over entrySet() searching 25.83/7.88 * for an entry with the specified value. If such an entry is found, 25.83/7.88 * true is returned. If the iteration terminates without 25.83/7.88 * finding such an entry, false is returned. Note that this 25.83/7.88 * implementation requires linear time in the size of the map. 25.83/7.88 * 25.83/7.88 * @throws ClassCastException {@inheritDoc} 25.83/7.88 * @throws NullPointerException {@inheritDoc} 25.83/7.88 */ 25.83/7.88 public boolean containsValue(Object value) { 25.83/7.88 Iterator> i = entrySet().iterator(); 25.83/7.88 if (value==null) { 25.83/7.88 while (i.hasNext()) { 25.83/7.88 Entry e = i.next(); 25.83/7.88 if (e.getValue()==null) 25.83/7.88 return true; 25.83/7.88 } 25.83/7.88 } else { 25.83/7.88 while (i.hasNext()) { 25.83/7.88 Entry e = i.next(); 25.83/7.88 if (value.equals(e.getValue())) 25.83/7.88 return true; 25.83/7.88 } 25.83/7.88 } 25.83/7.88 return false; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * {@inheritDoc} 25.83/7.88 * 25.83/7.88 *

This implementation iterates over entrySet() searching 25.83/7.88 * for an entry with the specified key. If such an entry is found, 25.83/7.88 * true is returned. If the iteration terminates without 25.83/7.88 * finding such an entry, false is returned. Note that this 25.83/7.88 * implementation requires linear time in the size of the map; many 25.83/7.88 * implementations will override this method. 25.83/7.88 * 25.83/7.88 * @throws ClassCastException {@inheritDoc} 25.83/7.88 * @throws NullPointerException {@inheritDoc} 25.83/7.88 */ 25.83/7.88 public boolean containsKey(Object key) { 25.83/7.88 Iterator> i = entrySet().iterator(); 25.83/7.88 if (key==null) { 25.83/7.88 while (i.hasNext()) { 25.83/7.88 Entry e = i.next(); 25.83/7.88 if (e.getKey()==null) 25.83/7.88 return true; 25.83/7.88 } 25.83/7.88 } else { 25.83/7.88 while (i.hasNext()) { 25.83/7.88 Entry e = i.next(); 25.83/7.88 if (key.equals(e.getKey())) 25.83/7.88 return true; 25.83/7.88 } 25.83/7.88 } 25.83/7.88 return false; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * {@inheritDoc} 25.83/7.88 * 25.83/7.88 *

This implementation iterates over entrySet() searching 25.83/7.88 * for an entry with the specified key. If such an entry is found, 25.83/7.88 * the entry's value is returned. If the iteration terminates without 25.83/7.88 * finding such an entry, null is returned. Note that this 25.83/7.88 * implementation requires linear time in the size of the map; many 25.83/7.88 * implementations will override this method. 25.83/7.88 * 25.83/7.88 * @throws ClassCastException {@inheritDoc} 25.83/7.88 * @throws NullPointerException {@inheritDoc} 25.83/7.88 */ 25.83/7.88 public V get(Object key) { 25.83/7.88 Iterator> i = entrySet().iterator(); 25.83/7.88 if (key==null) { 25.83/7.88 while (i.hasNext()) { 25.83/7.88 Entry e = i.next(); 25.83/7.88 if (e.getKey()==null) 25.83/7.88 return e.getValue(); 25.83/7.88 } 25.83/7.88 } else { 25.83/7.88 while (i.hasNext()) { 25.83/7.88 Entry e = i.next(); 25.83/7.88 if (key.equals(e.getKey())) 25.83/7.88 return e.getValue(); 25.83/7.88 } 25.83/7.88 } 25.83/7.88 return null; 25.83/7.88 } 25.83/7.88 25.83/7.88 25.83/7.88 // Modification Operations 25.83/7.88 25.83/7.88 /** 25.83/7.88 * {@inheritDoc} 25.83/7.88 * 25.83/7.88 *

This implementation always throws an 25.83/7.88 * UnsupportedOperationException. 25.83/7.88 * 25.83/7.88 * @throws UnsupportedOperationException {@inheritDoc} 25.83/7.88 * @throws ClassCastException {@inheritDoc} 25.83/7.88 * @throws NullPointerException {@inheritDoc} 25.83/7.88 * @throws IllegalArgumentException {@inheritDoc} 25.83/7.88 */ 25.83/7.88 public V put(K key, V value) { 25.83/7.88 throw new UnsupportedOperationException(); 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * {@inheritDoc} 25.83/7.88 * 25.83/7.88 *

This implementation iterates over entrySet() searching for an 25.83/7.88 * entry with the specified key. If such an entry is found, its value is 25.83/7.88 * obtained with its getValue operation, the entry is removed 25.83/7.88 * from the collection (and the backing map) with the iterator's 25.83/7.88 * remove operation, and the saved value is returned. If the 25.83/7.88 * iteration terminates without finding such an entry, null is 25.83/7.88 * returned. Note that this implementation requires linear time in the 25.83/7.88 * size of the map; many implementations will override this method. 25.83/7.88 * 25.83/7.88 *

Note that this implementation throws an 25.83/7.88 * UnsupportedOperationException if the entrySet 25.83/7.88 * iterator does not support the remove method and this map 25.83/7.88 * contains a mapping for the specified key. 25.83/7.88 * 25.83/7.88 * @throws UnsupportedOperationException {@inheritDoc} 25.83/7.88 * @throws ClassCastException {@inheritDoc} 25.83/7.88 * @throws NullPointerException {@inheritDoc} 25.83/7.88 */ 25.83/7.88 public V remove(Object key) { 25.83/7.88 Iterator> i = entrySet().iterator(); 25.83/7.88 Entry correctEntry = null; 25.83/7.88 if (key==null) { 25.83/7.88 while (correctEntry==null && i.hasNext()) { 25.83/7.88 Entry e = i.next(); 25.83/7.88 if (e.getKey()==null) 25.83/7.88 correctEntry = e; 25.83/7.88 } 25.83/7.88 } else { 25.83/7.88 while (correctEntry==null && i.hasNext()) { 25.83/7.88 Entry e = i.next(); 25.83/7.88 if (key.equals(e.getKey())) 25.83/7.88 correctEntry = e; 25.83/7.88 } 25.83/7.88 } 25.83/7.88 25.83/7.88 V oldValue = null; 25.83/7.88 if (correctEntry !=null) { 25.83/7.88 oldValue = correctEntry.getValue(); 25.83/7.88 i.remove(); 25.83/7.88 } 25.83/7.88 return oldValue; 25.83/7.88 } 25.83/7.88 25.83/7.88 25.83/7.88 // Bulk Operations 25.83/7.88 25.83/7.88 /** 25.83/7.88 * {@inheritDoc} 25.83/7.88 * 25.83/7.88 *

This implementation iterates over the specified map's 25.83/7.88 * entrySet() collection, and calls this map's put 25.83/7.88 * operation once for each entry returned by the iteration. 25.83/7.88 * 25.83/7.88 *

Note that this implementation throws an 25.83/7.88 * UnsupportedOperationException if this map does not support 25.83/7.88 * the put operation and the specified map is nonempty. 25.83/7.88 * 25.83/7.88 * @throws UnsupportedOperationException {@inheritDoc} 25.83/7.88 * @throws ClassCastException {@inheritDoc} 25.83/7.88 * @throws NullPointerException {@inheritDoc} 25.83/7.88 * @throws IllegalArgumentException {@inheritDoc} 25.83/7.88 */ 25.83/7.88 public void putAll(Map m) { 25.83/7.88 Iterator it = m.entrySet().iterator(); 25.83/7.88 while (it.hasNext()) { 25.83/7.88 Map.Entry e = (Map.Entry) it.next(); 25.83/7.88 put((K) e.getKey(), (V) e.getValue()); 25.83/7.88 } 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * {@inheritDoc} 25.83/7.88 * 25.83/7.88 *

This implementation calls entrySet().clear(). 25.83/7.88 * 25.83/7.88 *

Note that this implementation throws an 25.83/7.88 * UnsupportedOperationException if the entrySet 25.83/7.88 * does not support the clear operation. 25.83/7.88 * 25.83/7.88 * @throws UnsupportedOperationException {@inheritDoc} 25.83/7.88 */ 25.83/7.88 public void clear() { 25.83/7.88 entrySet().clear(); 25.83/7.88 } 25.83/7.88 25.83/7.88 25.83/7.88 // Views 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Each of these fields are initialized to contain an instance of the 25.83/7.88 * appropriate view the first time this view is requested. The views are 25.83/7.88 * stateless, so there's no reason to create more than one of each. 25.83/7.88 */ 25.83/7.88 transient volatile Set keySet = null; 25.83/7.88 transient volatile Collection values = null; 25.83/7.88 25.83/7.88 /** 25.83/7.88 * {@inheritDoc} 25.83/7.88 * 25.83/7.88 *

This implementation returns a set that subclasses {@link AbstractSet}. 25.83/7.88 * The subclass's iterator method returns a "wrapper object" over this 25.83/7.88 * map's entrySet() iterator. The size method 25.83/7.88 * delegates to this map's size method and the 25.83/7.88 * contains method delegates to this map's 25.83/7.88 * containsKey method. 25.83/7.88 * 25.83/7.88 *

The set is created the first time this method is called, 25.83/7.88 * and returned in response to all subsequent calls. No synchronization 25.83/7.88 * is performed, so there is a slight chance that multiple calls to this 25.83/7.88 * method will not all return the same set. 25.83/7.88 */ 25.83/7.88 public Set keySet() { 25.83/7.88 if (keySet == null) { 25.83/7.88 keySet = new AbstractSet() { 25.83/7.88 public Iterator iterator() { 25.83/7.88 return new Iterator() { 25.83/7.88 private Iterator> i = entrySet().iterator(); 25.83/7.88 25.83/7.88 public boolean hasNext() { 25.83/7.88 return i.hasNext(); 25.83/7.88 } 25.83/7.88 25.83/7.88 public K next() { 25.83/7.88 return i.next().getKey(); 25.83/7.88 } 25.83/7.88 25.83/7.88 public void remove() { 25.83/7.88 i.remove(); 25.83/7.88 } 25.83/7.88 }; 25.83/7.88 } 25.83/7.88 25.83/7.88 public int size() { 25.83/7.88 return AbstractMap.this.size(); 25.83/7.88 } 25.83/7.88 25.83/7.88 public boolean isEmpty() { 25.83/7.88 return AbstractMap.this.isEmpty(); 25.83/7.88 } 25.83/7.88 25.83/7.88 public void clear() { 25.83/7.88 AbstractMap.this.clear(); 25.83/7.88 } 25.83/7.88 25.83/7.88 public boolean contains(Object k) { 25.83/7.88 return AbstractMap.this.containsKey(k); 25.83/7.88 } 25.83/7.88 25.83/7.88 public Object[] toArray() { 25.83/7.88 Object[] res = new Object[AbstractMap.this.size()]; 25.83/7.88 Iterator> it = entrySet().iterator(); 25.83/7.88 int i = 0; 25.83/7.88 while (it.hasNext()) 25.83/7.88 res[i++] = it.next().getKey(); 25.83/7.88 return res; 25.83/7.88 } 25.83/7.88 25.83/7.88 public T[] toArray(T[] a) { 25.83/7.88 a = (T[])java.lang.reflect.Array.newInstance( 25.83/7.88 a.getClass().getComponentType(), AbstractMap.this.size()); 25.83/7.88 Object[] res = a; 25.83/7.88 Iterator> it = entrySet().iterator(); 25.83/7.88 int i = 0; 25.83/7.88 while (it.hasNext()) 25.83/7.88 res[i++] = it.next().getKey(); 25.83/7.88 return a; 25.83/7.88 } 25.83/7.88 }; 25.83/7.88 } 25.83/7.88 return keySet; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * {@inheritDoc} 25.83/7.88 * 25.83/7.88 *

This implementation returns a collection that subclasses {@link 25.83/7.88 * AbstractCollection}. The subclass's iterator method returns a 25.83/7.88 * "wrapper object" over this map's entrySet() iterator. 25.83/7.88 * The size method delegates to this map's size 25.83/7.88 * method and the contains method delegates to this map's 25.83/7.88 * containsValue method. 25.83/7.88 * 25.83/7.88 *

The collection is created the first time this method is called, and 25.83/7.88 * returned in response to all subsequent calls. No synchronization is 25.83/7.88 * performed, so there is a slight chance that multiple calls to this 25.83/7.88 * method will not all return the same collection. 25.83/7.88 */ 25.83/7.88 public Collection values() { 25.83/7.88 if (values == null) { 25.83/7.88 values = new AbstractCollection() { 25.83/7.88 public Iterator iterator() { 25.83/7.88 return new Iterator() { 25.83/7.88 private Iterator> i = entrySet().iterator(); 25.83/7.88 25.83/7.88 public boolean hasNext() { 25.83/7.88 return i.hasNext(); 25.83/7.88 } 25.83/7.88 25.83/7.88 public V next() { 25.83/7.88 return i.next().getValue(); 25.83/7.88 } 25.83/7.88 25.83/7.88 public void remove() { 25.83/7.88 i.remove(); 25.83/7.88 } 25.83/7.88 }; 25.83/7.88 } 25.83/7.88 25.83/7.88 public int size() { 25.83/7.88 return AbstractMap.this.size(); 25.83/7.88 } 25.83/7.88 25.83/7.88 public boolean isEmpty() { 25.83/7.88 return AbstractMap.this.isEmpty(); 25.83/7.88 } 25.83/7.88 25.83/7.88 public void clear() { 25.83/7.88 AbstractMap.this.clear(); 25.83/7.88 } 25.83/7.88 25.83/7.88 public boolean contains(Object v) { 25.83/7.88 return AbstractMap.this.containsValue(v); 25.83/7.88 } 25.83/7.88 }; 25.83/7.88 } 25.83/7.88 return values; 25.83/7.88 } 25.83/7.88 25.83/7.88 public abstract Set> entrySet(); 25.83/7.88 25.83/7.88 25.83/7.88 // Comparison and hashing 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Compares the specified object with this map for equality. Returns 25.83/7.88 * true if the given object is also a map and the two maps 25.83/7.88 * represent the same mappings. More formally, two maps m1 and 25.83/7.88 * m2 represent the same mappings if 25.83/7.88 * m1.entrySet().equals(m2.entrySet()). This ensures that the 25.83/7.88 * equals method works properly across different implementations 25.83/7.88 * of the Map interface. 25.83/7.88 * 25.83/7.88 *

This implementation first checks if the specified object is this map; 25.83/7.88 * if so it returns true. Then, it checks if the specified 25.83/7.88 * object is a map whose size is identical to the size of this map; if 25.83/7.88 * not, it returns false. If so, it iterates over this map's 25.83/7.88 * entrySet collection, and checks that the specified map 25.83/7.88 * contains each mapping that this map contains. If the specified map 25.83/7.88 * fails to contain such a mapping, false is returned. If the 25.83/7.88 * iteration completes, true is returned. 25.83/7.88 * 25.83/7.88 * @param o object to be compared for equality with this map 25.83/7.88 * @return true if the specified object is equal to this map 25.83/7.88 */ 25.83/7.88 public boolean equals(Object o) { 25.83/7.88 if (o == this) 25.83/7.88 return true; 25.83/7.88 25.83/7.88 if (!(o instanceof Map)) 25.83/7.88 return false; 25.83/7.88 Map m = (Map) o; 25.83/7.88 if (m.size() != size()) 25.83/7.88 return false; 25.83/7.88 25.83/7.88 try { 25.83/7.88 Iterator> i = entrySet().iterator(); 25.83/7.88 while (i.hasNext()) { 25.83/7.88 Entry e = i.next(); 25.83/7.88 K key = e.getKey(); 25.83/7.88 V value = e.getValue(); 25.83/7.88 if (value == null) { 25.83/7.88 if (!(m.get(key)==null && m.containsKey(key))) 25.83/7.88 return false; 25.83/7.88 } else { 25.83/7.88 if (!value.equals(m.get(key))) 25.83/7.88 return false; 25.83/7.88 } 25.83/7.88 } 25.83/7.88 } catch (ClassCastException unused) { 25.83/7.88 return false; 25.83/7.88 } catch (NullPointerException unused) { 25.83/7.88 return false; 25.83/7.88 } 25.83/7.88 25.83/7.88 return true; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Returns the hash code value for this map. The hash code of a map is 25.83/7.88 * defined to be the sum of the hash codes of each entry in the map's 25.83/7.88 * entrySet() view. This ensures that m1.equals(m2) 25.83/7.88 * implies that m1.hashCode()==m2.hashCode() for any two maps 25.83/7.88 * m1 and m2, as required by the general contract of 25.83/7.88 * {@link Object#hashCode}. 25.83/7.88 * 25.83/7.88 *

This implementation iterates over entrySet(), calling 25.83/7.88 * {@link Map.Entry#hashCode hashCode()} on each element (entry) in the 25.83/7.88 * set, and adding up the results. 25.83/7.88 * 25.83/7.88 * @return the hash code value for this map 25.83/7.88 * @see Map.Entry#hashCode() 25.83/7.88 * @see Object#equals(Object) 25.83/7.88 * @see Set#equals(Object) 25.83/7.88 */ 25.83/7.88 public int hashCode() { 25.83/7.88 int h = 0; 25.83/7.88 Iterator> i = entrySet().iterator(); 25.83/7.88 while (i.hasNext()) 25.83/7.88 h += i.next().hashCode(); 25.83/7.88 return h; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Returns a string representation of this map. The string representation 25.83/7.88 * consists of a list of key-value mappings in the order returned by the 25.83/7.88 * map's entrySet view's iterator, enclosed in braces 25.83/7.88 * ("{}"). Adjacent mappings are separated by the characters 25.83/7.88 * ", " (comma and space). Each key-value mapping is rendered as 25.83/7.88 * the key followed by an equals sign ("=") followed by the 25.83/7.88 * associated value. Keys and values are converted to strings as by 25.83/7.88 * {@link String#valueOf(Object)}. 25.83/7.88 * 25.83/7.88 * @return a string representation of this map 25.83/7.88 */ 25.83/7.88 public String toString() { 25.83/7.88 Iterator> i = entrySet().iterator(); 25.83/7.88 if (! i.hasNext()) 25.83/7.88 return "{}"; 25.83/7.88 25.83/7.88 StringBuilder sb = new StringBuilder(); 25.83/7.88 sb.append('{'); 25.83/7.88 for (;;) { 25.83/7.88 Entry e = i.next(); 25.83/7.88 K key = e.getKey(); 25.83/7.88 V value = e.getValue(); 25.83/7.88 sb.append(key == this ? "(this Map)" : key); 25.83/7.88 sb.append('='); 25.83/7.88 sb.append(value == this ? "(this Map)" : value); 25.83/7.88 if (! i.hasNext()) 25.83/7.88 return sb.append('}').toString(); 25.83/7.88 sb.append(", "); 25.83/7.88 } 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Returns a shallow copy of this AbstractMap instance: the keys 25.83/7.88 * and values themselves are not cloned. 25.83/7.88 * 25.83/7.88 * @return a shallow copy of this map 25.83/7.88 */ 25.83/7.88 protected Object clone() throws CloneNotSupportedException { 25.83/7.88 AbstractMap result = (AbstractMap)super.clone(); 25.83/7.88 result.keySet = null; 25.83/7.88 result.values = null; 25.83/7.88 return result; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Utility method for SimpleEntry and SimpleImmutableEntry. 25.83/7.88 * Test for equality, checking for nulls. 25.83/7.88 */ 25.83/7.88 private static boolean eq(Object o1, Object o2) { 25.83/7.88 return o1 == null ? o2 == null : o1.equals(o2); 25.83/7.88 } 25.83/7.88 25.83/7.88 // Implementation Note: SimpleEntry and SimpleImmutableEntry 25.83/7.88 // are distinct unrelated classes, even though they share 25.83/7.88 // some code. Since you can't add or subtract final-ness 25.83/7.88 // of a field in a subclass, they can't share representations, 25.83/7.88 // and the amount of duplicated code is too small to warrant 25.83/7.88 // exposing a common abstract class. 25.83/7.88 25.83/7.88 25.83/7.88 /** 25.83/7.88 * An Entry maintaining a key and a value. The value may be 25.83/7.88 * changed using the setValue method. This class 25.83/7.88 * facilitates the process of building custom map 25.83/7.88 * implementations. For example, it may be convenient to return 25.83/7.88 * arrays of SimpleEntry instances in method 25.83/7.88 * Map.entrySet().toArray. 25.83/7.88 * 25.83/7.88 * @since 1.6 25.83/7.88 */ 25.83/7.88 public static class SimpleEntry 25.83/7.88 implements Entry, java.io.Serializable 25.83/7.88 { 25.83/7.88 private static final long serialVersionUID = -8499721149061103585L; 25.83/7.88 25.83/7.88 private final K key; 25.83/7.88 private V value; 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Creates an entry representing a mapping from the specified 25.83/7.88 * key to the specified value. 25.83/7.88 * 25.83/7.88 * @param key the key represented by this entry 25.83/7.88 * @param value the value represented by this entry 25.83/7.88 */ 25.83/7.88 public SimpleEntry(K key, V value) { 25.83/7.88 this.key = key; 25.83/7.88 this.value = value; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Creates an entry representing the same mapping as the 25.83/7.88 * specified entry. 25.83/7.88 * 25.83/7.88 * @param entry the entry to copy 25.83/7.88 */ 25.83/7.88 public SimpleEntry(Entry entry) { 25.83/7.88 this.key = entry.getKey(); 25.83/7.88 this.value = entry.getValue(); 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Returns the key corresponding to this entry. 25.83/7.88 * 25.83/7.88 * @return the key corresponding to this entry 25.83/7.88 */ 25.83/7.88 public K getKey() { 25.83/7.88 return key; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Returns the value corresponding to this entry. 25.83/7.88 * 25.83/7.88 * @return the value corresponding to this entry 25.83/7.88 */ 25.83/7.88 public V getValue() { 25.83/7.88 return value; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Replaces the value corresponding to this entry with the specified 25.83/7.88 * value. 25.83/7.88 * 25.83/7.88 * @param value new value to be stored in this entry 25.83/7.88 * @return the old value corresponding to the entry 25.83/7.88 */ 25.83/7.88 public V setValue(V value) { 25.83/7.88 V oldValue = this.value; 25.83/7.88 this.value = value; 25.83/7.88 return oldValue; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Compares the specified object with this entry for equality. 25.83/7.88 * Returns {@code true} if the given object is also a map entry and 25.83/7.88 * the two entries represent the same mapping. More formally, two 25.83/7.88 * entries {@code e1} and {@code e2} represent the same mapping 25.83/7.88 * if

25.83/7.88	         *   (e1.getKey()==null ?
25.83/7.88	         *    e2.getKey()==null :
25.83/7.88	         *    e1.getKey().equals(e2.getKey()))
25.83/7.88	         *   &&
25.83/7.88	         *   (e1.getValue()==null ?
25.83/7.88	         *    e2.getValue()==null :
25.83/7.88	         *    e1.getValue().equals(e2.getValue()))
25.83/7.88 * This ensures that the {@code equals} method works properly across 25.83/7.88 * different implementations of the {@code Map.Entry} interface. 25.83/7.88 * 25.83/7.88 * @param o object to be compared for equality with this map entry 25.83/7.88 * @return {@code true} if the specified object is equal to this map 25.83/7.88 * entry 25.83/7.88 * @see #hashCode 25.83/7.88 */ 25.83/7.88 public boolean equals(Object o) { 25.83/7.88 if (!(o instanceof Map.Entry)) 25.83/7.88 return false; 25.83/7.88 Map.Entry e = (Map.Entry)o; 25.83/7.88 return eq(key, e.getKey()) && eq(value, e.getValue()); 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Returns the hash code value for this map entry. The hash code 25.83/7.88 * of a map entry {@code e} is defined to be:
25.83/7.88	         *   (e.getKey()==null   ? 0 : e.getKey().hashCode()) ^
25.83/7.88	         *   (e.getValue()==null ? 0 : e.getValue().hashCode())
25.83/7.88 * This ensures that {@code e1.equals(e2)} implies that 25.83/7.88 * {@code e1.hashCode()==e2.hashCode()} for any two Entries 25.83/7.88 * {@code e1} and {@code e2}, as required by the general 25.83/7.88 * contract of {@link Object#hashCode}. 25.83/7.88 * 25.83/7.88 * @return the hash code value for this map entry 25.83/7.88 * @see #equals 25.83/7.88 */ 25.83/7.88 public int hashCode() { 25.83/7.88 return (key == null ? 0 : key.hashCode()) ^ 25.83/7.88 (value == null ? 0 : value.hashCode()); 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Returns a String representation of this map entry. This 25.83/7.88 * implementation returns the string representation of this 25.83/7.88 * entry's key followed by the equals character ("=") 25.83/7.88 * followed by the string representation of this entry's value. 25.83/7.88 * 25.83/7.88 * @return a String representation of this map entry 25.83/7.88 */ 25.83/7.88 public String toString() { 25.83/7.88 return key + "=" + value; 25.83/7.88 } 25.83/7.88 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * An Entry maintaining an immutable key and value. This class 25.83/7.88 * does not support method setValue. This class may be 25.83/7.88 * convenient in methods that return thread-safe snapshots of 25.83/7.88 * key-value mappings. 25.83/7.88 * 25.83/7.88 * @since 1.6 25.83/7.88 */ 25.83/7.88 public static class SimpleImmutableEntry 25.83/7.88 implements Entry, java.io.Serializable 25.83/7.88 { 25.83/7.88 private static final long serialVersionUID = 7138329143949025153L; 25.83/7.88 25.83/7.88 private final K key; 25.83/7.88 private final V value; 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Creates an entry representing a mapping from the specified 25.83/7.88 * key to the specified value. 25.83/7.88 * 25.83/7.88 * @param key the key represented by this entry 25.83/7.88 * @param value the value represented by this entry 25.83/7.88 */ 25.83/7.88 public SimpleImmutableEntry(K key, V value) { 25.83/7.88 this.key = key; 25.83/7.88 this.value = value; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Creates an entry representing the same mapping as the 25.83/7.88 * specified entry. 25.83/7.88 * 25.83/7.88 * @param entry the entry to copy 25.83/7.88 */ 25.83/7.88 public SimpleImmutableEntry(Entry entry) { 25.83/7.88 this.key = entry.getKey(); 25.83/7.88 this.value = entry.getValue(); 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Returns the key corresponding to this entry. 25.83/7.88 * 25.83/7.88 * @return the key corresponding to this entry 25.83/7.88 */ 25.83/7.88 public K getKey() { 25.83/7.88 return key; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Returns the value corresponding to this entry. 25.83/7.88 * 25.83/7.88 * @return the value corresponding to this entry 25.83/7.88 */ 25.83/7.88 public V getValue() { 25.83/7.88 return value; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Replaces the value corresponding to this entry with the specified 25.83/7.88 * value (optional operation). This implementation simply throws 25.83/7.88 * UnsupportedOperationException, as this class implements 25.83/7.88 * an immutable map entry. 25.83/7.88 * 25.83/7.88 * @param value new value to be stored in this entry 25.83/7.88 * @return (Does not return) 25.83/7.88 * @throws UnsupportedOperationException always 25.83/7.88 */ 25.83/7.88 public V setValue(V value) { 25.83/7.88 throw new UnsupportedOperationException(); 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Compares the specified object with this entry for equality. 25.83/7.88 * Returns {@code true} if the given object is also a map entry and 25.83/7.88 * the two entries represent the same mapping. More formally, two 25.83/7.88 * entries {@code e1} and {@code e2} represent the same mapping 25.83/7.88 * if
25.83/7.88	         *   (e1.getKey()==null ?
25.83/7.88	         *    e2.getKey()==null :
25.83/7.88	         *    e1.getKey().equals(e2.getKey()))
25.83/7.88	         *   &&
25.83/7.88	         *   (e1.getValue()==null ?
25.83/7.88	         *    e2.getValue()==null :
25.83/7.88	         *    e1.getValue().equals(e2.getValue()))
25.83/7.88 * This ensures that the {@code equals} method works properly across 25.83/7.88 * different implementations of the {@code Map.Entry} interface. 25.83/7.88 * 25.83/7.88 * @param o object to be compared for equality with this map entry 25.83/7.88 * @return {@code true} if the specified object is equal to this map 25.83/7.88 * entry 25.83/7.88 * @see #hashCode 25.83/7.88 */ 25.83/7.88 public boolean equals(Object o) { 25.83/7.88 if (!(o instanceof Map.Entry)) 25.83/7.88 return false; 25.83/7.88 Map.Entry e = (Map.Entry)o; 25.83/7.88 return eq(key, e.getKey()) && eq(value, e.getValue()); 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Returns the hash code value for this map entry. The hash code 25.83/7.88 * of a map entry {@code e} is defined to be:
25.83/7.88	         *   (e.getKey()==null   ? 0 : e.getKey().hashCode()) ^
25.83/7.88	         *   (e.getValue()==null ? 0 : e.getValue().hashCode())
25.83/7.88 * This ensures that {@code e1.equals(e2)} implies that 25.83/7.88 * {@code e1.hashCode()==e2.hashCode()} for any two Entries 25.83/7.88 * {@code e1} and {@code e2}, as required by the general 25.83/7.88 * contract of {@link Object#hashCode}. 25.83/7.88 * 25.83/7.88 * @return the hash code value for this map entry 25.83/7.88 * @see #equals 25.83/7.88 */ 25.83/7.88 public int hashCode() { 25.83/7.88 return (key == null ? 0 : key.hashCode()) ^ 25.83/7.88 (value == null ? 0 : value.hashCode()); 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Returns a String representation of this map entry. This 25.83/7.88 * implementation returns the string representation of this 25.83/7.88 * entry's key followed by the equals character ("=") 25.83/7.88 * followed by the string representation of this entry's value. 25.83/7.88 * 25.83/7.88 * @return a String representation of this map entry 25.83/7.88 */ 25.83/7.88 public String toString() { 25.83/7.88 return key + "=" + value; 25.83/7.88 } 25.83/7.88 25.83/7.88 } 25.83/7.88 25.83/7.88 } 25.83/7.88 25.83/7.88 25.83/7.88 /* 25.83/7.88 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 25.83/7.88 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 25.83/7.88 * 25.83/7.88 * This code is free software; you can redistribute it and/or modify it 25.83/7.88 * under the terms of the GNU General Public License version 2 only, as 25.83/7.88 * published by the Free Software Foundation. Sun designates this 25.83/7.88 * particular file as subject to the "Classpath" exception as provided 25.83/7.88 * by Sun in the LICENSE file that accompanied this code. 25.83/7.88 * 25.83/7.88 * This code is distributed in the hope that it will be useful, but WITHOUT 25.83/7.88 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 25.83/7.88 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 25.83/7.88 * version 2 for more details (a copy is included in the LICENSE file that 25.83/7.88 * accompanied this code). 25.83/7.88 * 25.83/7.88 * You should have received a copy of the GNU General Public License version 25.83/7.88 * 2 along with this work; if not, write to the Free Software Foundation, 25.83/7.88 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 25.83/7.88 * 25.83/7.88 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 25.83/7.88 * CA 95054 USA or visit www.sun.com if you need additional information or 25.83/7.88 * have any questions. 25.83/7.88 */ 25.83/7.88 25.83/7.88 package javaUtilEx; 25.83/7.88 25.83/7.88 /** 25.83/7.88 * This class provides a skeletal implementation of the Set 25.83/7.88 * interface to minimize the effort required to implement this 25.83/7.88 * interface.

25.83/7.88 * 25.83/7.88 * The process of implementing a set by extending this class is identical 25.83/7.88 * to that of implementing a Collection by extending AbstractCollection, 25.83/7.88 * except that all of the methods and constructors in subclasses of this 25.83/7.88 * class must obey the additional constraints imposed by the Set 25.83/7.88 * interface (for instance, the add method must not permit addition of 25.83/7.88 * multiple instances of an object to a set).

25.83/7.88 * 25.83/7.88 * Note that this class does not override any of the implementations from 25.83/7.88 * the AbstractCollection class. It merely adds implementations 25.83/7.88 * for equals and hashCode.

25.83/7.88 * 25.83/7.88 * This class is a member of the 25.83/7.88 * 25.83/7.88 * Java Collections Framework. 25.83/7.88 * 25.83/7.88 * @param the type of elements maintained by this set 25.83/7.88 * 25.83/7.88 * @author Josh Bloch 25.83/7.88 * @author Neal Gafter 25.83/7.88 * @see Collection 25.83/7.88 * @see AbstractCollection 25.83/7.88 * @see Set 25.83/7.88 * @since 1.2 25.83/7.88 */ 25.83/7.88 25.83/7.88 public abstract class AbstractSet extends AbstractCollection implements Set { 25.83/7.88 /** 25.83/7.88 * Sole constructor. (For invocation by subclass constructors, typically 25.83/7.88 * implicit.) 25.83/7.88 */ 25.83/7.88 protected AbstractSet() { 25.83/7.88 } 25.83/7.88 25.83/7.88 // Comparison and hashing 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Compares the specified object with this set for equality. Returns 25.83/7.88 * true if the given object is also a set, the two sets have 25.83/7.88 * the same size, and every member of the given set is contained in 25.83/7.88 * this set. This ensures that the equals method works 25.83/7.88 * properly across different implementations of the Set 25.83/7.88 * interface.

25.83/7.88 * 25.83/7.88 * This implementation first checks if the specified object is this 25.83/7.88 * set; if so it returns true. Then, it checks if the 25.83/7.88 * specified object is a set whose size is identical to the size of 25.83/7.88 * this set; if not, it returns false. If so, it returns 25.83/7.88 * containsAll((Collection) o). 25.83/7.88 * 25.83/7.88 * @param o object to be compared for equality with this set 25.83/7.88 * @return true if the specified object is equal to this set 25.83/7.88 */ 25.83/7.88 public boolean equals(Object o) { 25.83/7.88 if (o == this) 25.83/7.88 return true; 25.83/7.88 25.83/7.88 if (!(o instanceof Set)) 25.83/7.88 return false; 25.83/7.88 Collection c = (Collection) o; 25.83/7.88 if (c.size() != size()) 25.83/7.88 return false; 25.83/7.88 try { 25.83/7.88 return containsAll(c); 25.83/7.88 } catch (ClassCastException unused) { 25.83/7.88 return false; 25.83/7.88 } catch (NullPointerException unused) { 25.83/7.88 return false; 25.83/7.88 } 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Returns the hash code value for this set. The hash code of a set is 25.83/7.88 * defined to be the sum of the hash codes of the elements in the set, 25.83/7.88 * where the hash code of a null element is defined to be zero. 25.83/7.88 * This ensures that s1.equals(s2) implies that 25.83/7.88 * s1.hashCode()==s2.hashCode() for any two sets s1 25.83/7.88 * and s2, as required by the general contract of 25.83/7.88 * {@link Object#hashCode}. 25.83/7.88 * 25.83/7.88 *

This implementation iterates over the set, calling the 25.83/7.88 * hashCode method on each element in the set, and adding up 25.83/7.88 * the results. 25.83/7.88 * 25.83/7.88 * @return the hash code value for this set 25.83/7.88 * @see Object#equals(Object) 25.83/7.88 * @see Set#equals(Object) 25.83/7.88 */ 25.83/7.88 public int hashCode() { 25.83/7.88 int h = 0; 25.83/7.88 Iterator i = iterator(); 25.83/7.88 while (i.hasNext()) { 25.83/7.88 E obj = i.next(); 25.83/7.88 if (obj != null) 25.83/7.88 h += obj.hashCode(); 25.83/7.88 } 25.83/7.88 return h; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Removes from this set all of its elements that are contained in the 25.83/7.88 * specified collection (optional operation). If the specified 25.83/7.88 * collection is also a set, this operation effectively modifies this 25.83/7.88 * set so that its value is the asymmetric set difference of 25.83/7.88 * the two sets. 25.83/7.88 * 25.83/7.88 *

This implementation determines which is the smaller of this set 25.83/7.88 * and the specified collection, by invoking the size 25.83/7.88 * method on each. If this set has fewer elements, then the 25.83/7.88 * implementation iterates over this set, checking each element 25.83/7.88 * returned by the iterator in turn to see if it is contained in 25.83/7.88 * the specified collection. If it is so contained, it is removed 25.83/7.88 * from this set with the iterator's remove method. If 25.83/7.88 * the specified collection has fewer elements, then the 25.83/7.88 * implementation iterates over the specified collection, removing 25.83/7.88 * from this set each element returned by the iterator, using this 25.83/7.88 * set's remove method. 25.83/7.88 * 25.83/7.88 *

Note that this implementation will throw an 25.83/7.88 * UnsupportedOperationException if the iterator returned by the 25.83/7.88 * iterator method does not implement the remove method. 25.83/7.88 * 25.83/7.88 * @param c collection containing elements to be removed from this set 25.83/7.88 * @return true if this set changed as a result of the call 25.83/7.88 * @throws UnsupportedOperationException if the removeAll operation 25.83/7.88 * is not supported by this set 25.83/7.88 * @throws ClassCastException if the class of an element of this set 25.83/7.88 * is incompatible with the specified collection (optional) 25.83/7.88 * @throws NullPointerException if this set contains a null element and the 25.83/7.88 * specified collection does not permit null elements (optional), 25.83/7.88 * or if the specified collection is null 25.83/7.88 * @see #remove(Object) 25.83/7.88 * @see #contains(Object) 25.83/7.88 */ 25.83/7.88 public boolean removeAll(Collection c) { 25.83/7.88 boolean modified = false; 25.83/7.88 25.83/7.88 if (size() > c.size()) { 25.83/7.88 for (Iterator i = c.iterator(); i.hasNext(); ) 25.83/7.88 modified |= remove(i.next()); 25.83/7.88 } else { 25.83/7.88 for (Iterator i = iterator(); i.hasNext(); ) { 25.83/7.88 if (c.contains(i.next())) { 25.83/7.88 i.remove(); 25.83/7.88 modified = true; 25.83/7.88 } 25.83/7.88 } 25.83/7.88 } 25.83/7.88 return modified; 25.83/7.88 } 25.83/7.88 25.83/7.88 } 25.83/7.88 25.83/7.88 25.83/7.88 /* 25.83/7.88 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 25.83/7.88 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 25.83/7.88 * 25.83/7.88 * This code is free software; you can redistribute it and/or modify it 25.83/7.88 * under the terms of the GNU General Public License version 2 only, as 25.83/7.88 * published by the Free Software Foundation. Sun designates this 25.83/7.88 * particular file as subject to the "Classpath" exception as provided 25.83/7.88 * by Sun in the LICENSE file that accompanied this code. 25.83/7.88 * 25.83/7.88 * This code is distributed in the hope that it will be useful, but WITHOUT 25.83/7.88 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 25.83/7.88 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 25.83/7.88 * version 2 for more details (a copy is included in the LICENSE file that 25.83/7.88 * accompanied this code). 25.83/7.88 * 25.83/7.88 * You should have received a copy of the GNU General Public License version 25.83/7.88 * 2 along with this work; if not, write to the Free Software Foundation, 25.83/7.88 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 25.83/7.88 * 25.83/7.88 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 25.83/7.88 * CA 95054 USA or visit www.sun.com if you need additional information or 25.83/7.88 * have any questions. 25.83/7.88 */ 25.83/7.88 25.83/7.88 package javaUtilEx; 25.83/7.88 25.83/7.88 /** 25.83/7.88 * The root interface in the collection hierarchy. A collection 25.83/7.88 * represents a group of objects, known as its elements. Some 25.83/7.88 * collections allow duplicate elements and others do not. Some are ordered 25.83/7.88 * and others unordered. The JDK does not provide any direct 25.83/7.88 * implementations of this interface: it provides implementations of more 25.83/7.88 * specific subinterfaces like Set and List. This interface 25.83/7.88 * is typically used to pass collections around and manipulate them where 25.83/7.88 * maximum generality is desired. 25.83/7.88 * 25.83/7.88 *

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

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

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

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

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

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

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

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

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

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

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

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

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

Note that fail-fast behavior cannot be guaranteed as it is, generally 25.83/7.88 * speaking, impossible to make any hard guarantees in the presence of 25.83/7.88 * unsynchronized concurrent modification. Fail-fast operations 25.83/7.88 * throw ConcurrentModificationException on a best-effort basis. 25.83/7.88 * Therefore, it would be wrong to write a program that depended on this 25.83/7.88 * exception for its correctness: ConcurrentModificationException 25.83/7.88 * should be used only to detect bugs. 25.83/7.88 * 25.83/7.88 * @author Josh Bloch 25.83/7.88 * @see Collection 25.83/7.88 * @see Iterator 25.83/7.88 * @see ListIterator 25.83/7.88 * @see Vector 25.83/7.88 * @see LinkedList 25.83/7.88 * @see HashSet 25.83/7.88 * @see Hashtable 25.83/7.88 * @see TreeMap 25.83/7.88 * @see AbstractList 25.83/7.88 * @since 1.2 25.83/7.88 */ 25.83/7.88 public class ConcurrentModificationException extends RuntimeException { 25.83/7.88 /** 25.83/7.88 * Constructs a ConcurrentModificationException with no 25.83/7.88 * detail message. 25.83/7.88 */ 25.83/7.88 public ConcurrentModificationException() { 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Constructs a ConcurrentModificationException with the 25.83/7.88 * specified detail message. 25.83/7.88 * 25.83/7.88 * @param message the detail message pertaining to this exception. 25.83/7.88 */ 25.83/7.88 public ConcurrentModificationException(String message) { 25.83/7.88 super(message); 25.83/7.88 } 25.83/7.88 } 25.83/7.88 25.83/7.88 25.83/7.88 /* 25.83/7.88 * Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved. 25.83/7.88 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 25.83/7.88 * 25.83/7.88 * This code is free software; you can redistribute it and/or modify it 25.83/7.88 * under the terms of the GNU General Public License version 2 only, as 25.83/7.88 * published by the Free Software Foundation. Sun designates this 25.83/7.88 * particular file as subject to the "Classpath" exception as provided 25.83/7.88 * by Sun in the LICENSE file that accompanied this code. 25.83/7.88 * 25.83/7.88 * This code is distributed in the hope that it will be useful, but WITHOUT 25.83/7.88 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 25.83/7.88 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 25.83/7.88 * version 2 for more details (a copy is included in the LICENSE file that 25.83/7.88 * accompanied this code). 25.83/7.88 * 25.83/7.88 * You should have received a copy of the GNU General Public License version 25.83/7.88 * 2 along with this work; if not, write to the Free Software Foundation, 25.83/7.88 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 25.83/7.88 * 25.83/7.88 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 25.83/7.88 * CA 95054 USA or visit www.sun.com if you need additional information or 25.83/7.88 * have any questions. 25.83/7.88 */ 25.83/7.88 25.83/7.88 package javaUtilEx; 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Hash table based implementation of the Map interface. This 25.83/7.88 * implementation provides all of the optional map operations, and permits 25.83/7.88 * null values and the null key. (The HashMap 25.83/7.88 * class is roughly equivalent to Hashtable, except that it is 25.83/7.88 * unsynchronized and permits nulls.) This class makes no guarantees as to 25.83/7.88 * the order of the map; in particular, it does not guarantee that the order 25.83/7.88 * will remain constant over time. 25.83/7.88 * 25.83/7.88 *

This implementation provides constant-time performance for the basic 25.83/7.88 * operations (get and put), assuming the hash function 25.83/7.88 * disperses the elements properly among the buckets. Iteration over 25.83/7.88 * collection views requires time proportional to the "capacity" of the 25.83/7.88 * HashMap instance (the number of buckets) plus its size (the number 25.83/7.88 * of key-value mappings). Thus, it's very important not to set the initial 25.83/7.88 * capacity too high (or the load factor too low) if iteration performance is 25.83/7.88 * important. 25.83/7.88 * 25.83/7.88 *

An instance of HashMap has two parameters that affect its 25.83/7.88 * performance: initial capacity and load factor. The 25.83/7.88 * capacity is the number of buckets in the hash table, and the initial 25.83/7.88 * capacity is simply the capacity at the time the hash table is created. The 25.83/7.88 * load factor is a measure of how full the hash table is allowed to 25.83/7.88 * get before its capacity is automatically increased. When the number of 25.83/7.88 * entries in the hash table exceeds the product of the load factor and the 25.83/7.88 * current capacity, the hash table is rehashed (that is, internal data 25.83/7.88 * structures are rebuilt) so that the hash table has approximately twice the 25.83/7.88 * number of buckets. 25.83/7.88 * 25.83/7.88 *

As a general rule, the default load factor (.75) offers a good tradeoff 25.83/7.88 * between time and space costs. Higher values decrease the space overhead 25.83/7.88 * but increase the lookup cost (reflected in most of the operations of the 25.83/7.88 * HashMap class, including get and put). The 25.83/7.88 * expected number of entries in the map and its load factor should be taken 25.83/7.88 * into account when setting its initial capacity, so as to minimize the 25.83/7.88 * number of rehash operations. If the initial capacity is greater 25.83/7.88 * than the maximum number of entries divided by the load factor, no 25.83/7.88 * rehash operations will ever occur. 25.83/7.88 * 25.83/7.88 *

If many mappings are to be stored in a HashMap instance, 25.83/7.88 * creating it with a sufficiently large capacity will allow the mappings to 25.83/7.88 * be stored more efficiently than letting it perform automatic rehashing as 25.83/7.88 * needed to grow the table. 25.83/7.88 * 25.83/7.88 *

Note that this implementation is not synchronized. 25.83/7.88 * If multiple threads access a hash map concurrently, and at least one of 25.83/7.88 * the threads modifies the map structurally, it must be 25.83/7.88 * synchronized externally. (A structural modification is any operation 25.83/7.88 * that adds or deletes one or more mappings; merely changing the value 25.83/7.88 * associated with a key that an instance already contains is not a 25.83/7.88 * structural modification.) This is typically accomplished by 25.83/7.88 * synchronizing on some object that naturally encapsulates the map. 25.83/7.88 * 25.83/7.88 * If no such object exists, the map should be "wrapped" using the 25.83/7.88 * {@link Collections#synchronizedMap Collections.synchronizedMap} 25.83/7.88 * method. This is best done at creation time, to prevent accidental 25.83/7.88 * unsynchronized access to the map:

25.83/7.88	 *   Map m = Collections.synchronizedMap(new HashMap(...));
25.83/7.88 * 25.83/7.88 *

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

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

This class is a member of the 25.83/7.88 * 25.83/7.88 * Java Collections Framework. 25.83/7.88 * 25.83/7.88 * @param the type of keys maintained by this map 25.83/7.88 * @param the type of mapped values 25.83/7.88 * 25.83/7.88 * @author Doug Lea 25.83/7.88 * @author Josh Bloch 25.83/7.88 * @author Arthur van Hoff 25.83/7.88 * @author Neal Gafter 25.83/7.88 * @see Object#hashCode() 25.83/7.88 * @see Collection 25.83/7.88 * @see Map 25.83/7.88 * @see TreeMap 25.83/7.88 * @see Hashtable 25.83/7.88 * @since 1.2 25.83/7.88 */ 25.83/7.88 25.83/7.88 public class HashMap 25.83/7.88 extends AbstractMap 25.83/7.88 implements Map, Cloneable 25.83/7.88 { 25.83/7.88 25.83/7.88 /** 25.83/7.88 * The default initial capacity - MUST be a power of two. 25.83/7.88 */ 25.83/7.88 static final int DEFAULT_INITIAL_CAPACITY = 16; 25.83/7.88 25.83/7.88 /** 25.83/7.88 * The maximum capacity, used if a higher value is implicitly specified 25.83/7.88 * by either of the constructors with arguments. 25.83/7.88 * MUST be a power of two <= 1<<30. 25.83/7.88 */ 25.83/7.88 static final int MAXIMUM_CAPACITY = 1 << 30; 25.83/7.88 25.83/7.88 /** 25.83/7.88 * The load factor used when none specified in constructor. 25.83/7.88 */ 25.83/7.88 static final float DEFAULT_LOAD_FACTOR = 0.75f; 25.83/7.88 25.83/7.88 /** 25.83/7.88 * The table, resized as necessary. Length MUST Always be a power of two. 25.83/7.88 */ 25.83/7.88 transient Entry[] table; 25.83/7.88 25.83/7.88 /** 25.83/7.88 * The number of key-value mappings contained in this map. 25.83/7.88 */ 25.83/7.88 transient int size; 25.83/7.88 25.83/7.88 /** 25.83/7.88 * The next size value at which to resize (capacity * load factor). 25.83/7.88 * @serial 25.83/7.88 */ 25.83/7.88 int threshold; 25.83/7.88 25.83/7.88 /** 25.83/7.88 * The load factor for the hash table. 25.83/7.88 * 25.83/7.88 * @serial 25.83/7.88 */ 25.83/7.88 final float loadFactor; 25.83/7.88 25.83/7.88 /** 25.83/7.88 * The number of times this HashMap has been structurally modified 25.83/7.88 * Structural modifications are those that change the number of mappings in 25.83/7.88 * the HashMap or otherwise modify its internal structure (e.g., 25.83/7.88 * rehash). This field is used to make iterators on Collection-views of 25.83/7.88 * the HashMap fail-fast. (See ConcurrentModificationException). 25.83/7.88 */ 25.83/7.88 transient volatile int modCount; 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Constructs an empty HashMap with the specified initial 25.83/7.88 * capacity and load factor. 25.83/7.88 * 25.83/7.88 * @param initialCapacity the initial capacity 25.83/7.88 * @param loadFactor the load factor 25.83/7.88 * @throws IllegalArgumentException if the initial capacity is negative 25.83/7.88 * or the load factor is nonpositive 25.83/7.88 */ 25.83/7.88 public HashMap(int initialCapacity, float loadFactor) { 25.83/7.88 if (initialCapacity < 0) 25.83/7.88 throw new IllegalArgumentException("Illegal initial capacity: " + 25.83/7.88 initialCapacity); 25.83/7.88 if (initialCapacity > MAXIMUM_CAPACITY) 25.83/7.88 initialCapacity = MAXIMUM_CAPACITY; 25.83/7.88 if (loadFactor <= 0 || Float.isNaN(loadFactor)) 25.83/7.88 throw new IllegalArgumentException("Illegal load factor: " + 25.83/7.88 loadFactor); 25.83/7.88 25.83/7.88 // Find a power of 2 >= initialCapacity 25.83/7.88 int capacity = 1; 25.83/7.88 while (capacity < initialCapacity) 25.83/7.88 capacity <<= 1; 25.83/7.88 25.83/7.88 this.loadFactor = loadFactor; 25.83/7.88 threshold = (int)(capacity * loadFactor); 25.83/7.88 table = new Entry[capacity]; 25.83/7.88 init(); 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Constructs an empty HashMap with the specified initial 25.83/7.88 * capacity and the default load factor (0.75). 25.83/7.88 * 25.83/7.88 * @param initialCapacity the initial capacity. 25.83/7.88 * @throws IllegalArgumentException if the initial capacity is negative. 25.83/7.88 */ 25.83/7.88 public HashMap(int initialCapacity) { 25.83/7.88 this(initialCapacity, DEFAULT_LOAD_FACTOR); 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Constructs an empty HashMap with the default initial capacity 25.83/7.88 * (16) and the default load factor (0.75). 25.83/7.88 */ 25.83/7.88 public HashMap() { 25.83/7.88 this.loadFactor = DEFAULT_LOAD_FACTOR; 25.83/7.88 threshold = (int)(DEFAULT_INITIAL_CAPACITY * DEFAULT_LOAD_FACTOR); 25.83/7.88 table = new Entry[DEFAULT_INITIAL_CAPACITY]; 25.83/7.88 init(); 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Constructs a new HashMap with the same mappings as the 25.83/7.88 * specified Map. The HashMap is created with 25.83/7.88 * default load factor (0.75) and an initial capacity sufficient to 25.83/7.88 * hold the mappings in the specified Map. 25.83/7.88 * 25.83/7.88 * @param m the map whose mappings are to be placed in this map 25.83/7.88 * @throws NullPointerException if the specified map is null 25.83/7.88 */ 25.83/7.88 public HashMap(Map m) { 25.83/7.88 this(Math.max((int) (m.size() / DEFAULT_LOAD_FACTOR) + 1, 25.83/7.88 DEFAULT_INITIAL_CAPACITY), DEFAULT_LOAD_FACTOR); 25.83/7.88 putAllForCreate(m); 25.83/7.88 } 25.83/7.88 25.83/7.88 // internal utilities 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Initialization hook for subclasses. This method is called 25.83/7.88 * in all constructors and pseudo-constructors (clone, readObject) 25.83/7.88 * after HashMap has been initialized but before any entries have 25.83/7.88 * been inserted. (In the absence of this method, readObject would 25.83/7.88 * require explicit knowledge of subclasses.) 25.83/7.88 */ 25.83/7.88 void init() { 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Applies a supplemental hash function to a given hashCode, which 25.83/7.88 * defends against poor quality hash functions. This is critical 25.83/7.88 * because HashMap uses power-of-two length hash tables, that 25.83/7.88 * otherwise encounter collisions for hashCodes that do not differ 25.83/7.88 * in lower bits. Note: Null keys always map to hash 0, thus index 0. 25.83/7.88 */ 25.83/7.88 static int hash(int h) { 25.83/7.88 // This function ensures that hashCodes that differ only by 25.83/7.88 // constant multiples at each bit position have a bounded 25.83/7.88 // number of collisions (approximately 8 at default load factor). 25.83/7.88 h ^= (h >>> 20) ^ (h >>> 12); 25.83/7.88 return h ^ (h >>> 7) ^ (h >>> 4); 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Returns index for hash code h. 25.83/7.88 */ 25.83/7.88 static int indexFor(int h, int length) { 25.83/7.88 return h & (length-1); 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Returns the number of key-value mappings in this map. 25.83/7.88 * 25.83/7.88 * @return the number of key-value mappings in this map 25.83/7.88 */ 25.83/7.88 public int size() { 25.83/7.88 return size; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Returns true if this map contains no key-value mappings. 25.83/7.88 * 25.83/7.88 * @return true if this map contains no key-value mappings 25.83/7.88 */ 25.83/7.88 public boolean isEmpty() { 25.83/7.88 return size == 0; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Returns the value to which the specified key is mapped, 25.83/7.88 * or {@code null} if this map contains no mapping for the key. 25.83/7.88 * 25.83/7.88 *

More formally, if this map contains a mapping from a key 25.83/7.88 * {@code k} to a value {@code v} such that {@code (key==null ? k==null : 25.83/7.88 * key.equals(k))}, then this method returns {@code v}; otherwise 25.83/7.88 * it returns {@code null}. (There can be at most one such mapping.) 25.83/7.88 * 25.83/7.88 *

A return value of {@code null} does not necessarily 25.83/7.88 * indicate that the map contains no mapping for the key; it's also 25.83/7.88 * possible that the map explicitly maps the key to {@code null}. 25.83/7.88 * The {@link #containsKey containsKey} operation may be used to 25.83/7.88 * distinguish these two cases. 25.83/7.88 * 25.83/7.88 * @see #put(Object, Object) 25.83/7.88 */ 25.83/7.88 public V get(Object key) { 25.83/7.88 if (key == null) 25.83/7.88 return getForNullKey(); 25.83/7.88 int hash = hash(key.hashCode()); 25.83/7.88 for (Entry e = table[indexFor(hash, table.length)]; 25.83/7.88 e != null; 25.83/7.88 e = e.next) { 25.83/7.88 Object k; 25.83/7.88 if (e.hash == hash && ((k = e.key) == key || key.equals(k))) 25.83/7.88 return e.value; 25.83/7.88 } 25.83/7.88 return null; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Offloaded version of get() to look up null keys. Null keys map 25.83/7.88 * to index 0. This null case is split out into separate methods 25.83/7.88 * for the sake of performance in the two most commonly used 25.83/7.88 * operations (get and put), but incorporated with conditionals in 25.83/7.88 * others. 25.83/7.88 */ 25.83/7.88 private V getForNullKey() { 25.83/7.88 for (Entry e = table[0]; e != null; e = e.next) { 25.83/7.88 if (e.key == null) 25.83/7.88 return e.value; 25.83/7.88 } 25.83/7.88 return null; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Returns true if this map contains a mapping for the 25.83/7.88 * specified key. 25.83/7.88 * 25.83/7.88 * @param key The key whose presence in this map is to be tested 25.83/7.88 * @return true if this map contains a mapping for the specified 25.83/7.88 * key. 25.83/7.88 */ 25.83/7.88 public boolean containsKey(Object key) { 25.83/7.88 return getEntry(key) != null; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Returns the entry associated with the specified key in the 25.83/7.88 * HashMap. Returns null if the HashMap contains no mapping 25.83/7.88 * for the key. 25.83/7.88 */ 25.83/7.88 final Entry getEntry(Object key) { 25.83/7.88 int hash = (key == null) ? 0 : hash(key.hashCode()); 25.83/7.88 for (Entry e = table[indexFor(hash, table.length)]; 25.83/7.88 e != null; 25.83/7.88 e = e.next) { 25.83/7.88 Object k; 25.83/7.88 if (e.hash == hash && 25.83/7.88 ((k = e.key) == key || (key != null && key.equals(k)))) 25.83/7.88 return e; 25.83/7.88 } 25.83/7.88 return null; 25.83/7.88 } 25.83/7.88 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Associates the specified value with the specified key in this map. 25.83/7.88 * If the map previously contained a mapping for the key, the old 25.83/7.88 * value is replaced. 25.83/7.88 * 25.83/7.88 * @param key key with which the specified value is to be associated 25.83/7.88 * @param value value to be associated with the specified key 25.83/7.88 * @return the previous value associated with key, or 25.83/7.88 * null if there was no mapping for key. 25.83/7.88 * (A null return can also indicate that the map 25.83/7.88 * previously associated null with key.) 25.83/7.88 */ 25.83/7.88 public V put(K key, V value) { 25.83/7.88 if (key == null) 25.83/7.88 return putForNullKey(value); 25.83/7.88 int hash = hash(key.hashCode()); 25.83/7.88 int i = indexFor(hash, table.length); 25.83/7.88 for (Entry e = table[i]; e != null; e = e.next) { 25.83/7.88 Object k; 25.83/7.88 if (e.hash == hash && ((k = e.key) == key || key.equals(k))) { 25.83/7.88 V oldValue = e.value; 25.83/7.88 e.value = value; 25.83/7.88 e.recordAccess(this); 25.83/7.88 return oldValue; 25.83/7.88 } 25.83/7.88 } 25.83/7.88 25.83/7.88 modCount++; 25.83/7.88 addEntry(hash, key, value, i); 25.83/7.88 return null; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Offloaded version of put for null keys 25.83/7.88 */ 25.83/7.88 private V putForNullKey(V value) { 25.83/7.88 for (Entry e = table[0]; e != null; e = e.next) { 25.83/7.88 if (e.key == null) { 25.83/7.88 V oldValue = e.value; 25.83/7.88 e.value = value; 25.83/7.88 e.recordAccess(this); 25.83/7.88 return oldValue; 25.83/7.88 } 25.83/7.88 } 25.83/7.88 modCount++; 25.83/7.88 addEntry(0, null, value, 0); 25.83/7.88 return null; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * This method is used instead of put by constructors and 25.83/7.88 * pseudoconstructors (clone, readObject). It does not resize the table, 25.83/7.88 * check for comodification, etc. It calls createEntry rather than 25.83/7.88 * addEntry. 25.83/7.88 */ 25.83/7.88 private void putForCreate(K key, V value) { 25.83/7.88 int hash = (key == null) ? 0 : hash(key.hashCode()); 25.83/7.88 int i = indexFor(hash, table.length); 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Look for preexisting entry for key. This will never happen for 25.83/7.88 * clone or deserialize. It will only happen for construction if the 25.83/7.88 * input Map is a sorted map whose ordering is inconsistent w/ equals. 25.83/7.88 */ 25.83/7.88 for (Entry e = table[i]; e != null; e = e.next) { 25.83/7.88 Object k; 25.83/7.88 if (e.hash == hash && 25.83/7.88 ((k = e.key) == key || (key != null && key.equals(k)))) { 25.83/7.88 e.value = value; 25.83/7.88 return; 25.83/7.88 } 25.83/7.88 } 25.83/7.88 25.83/7.88 createEntry(hash, key, value, i); 25.83/7.88 } 25.83/7.88 25.83/7.88 private void putAllForCreate(Map m) { 25.83/7.88 for (Iterator> i = m.entrySet().iterator(); i.hasNext(); ) { 25.83/7.88 Map.Entry e = i.next(); 25.83/7.88 putForCreate(e.getKey(), e.getValue()); 25.83/7.88 } 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Rehashes the contents of this map into a new array with a 25.83/7.88 * larger capacity. This method is called automatically when the 25.83/7.88 * number of keys in this map reaches its threshold. 25.83/7.88 * 25.83/7.88 * If current capacity is MAXIMUM_CAPACITY, this method does not 25.83/7.88 * resize the map, but sets threshold to Integer.MAX_VALUE. 25.83/7.88 * This has the effect of preventing future calls. 25.83/7.88 * 25.83/7.88 * @param newCapacity the new capacity, MUST be a power of two; 25.83/7.88 * must be greater than current capacity unless current 25.83/7.88 * capacity is MAXIMUM_CAPACITY (in which case value 25.83/7.88 * is irrelevant). 25.83/7.88 */ 25.83/7.88 void resize(int newCapacity) { 25.83/7.88 Entry[] oldTable = table; 25.83/7.88 int oldCapacity = oldTable.length; 25.83/7.88 if (oldCapacity == MAXIMUM_CAPACITY) { 25.83/7.88 threshold = Integer.MAX_VALUE; 25.83/7.88 return; 25.83/7.88 } 25.83/7.88 25.83/7.88 Entry[] newTable = new Entry[newCapacity]; 25.83/7.88 transfer(newTable); 25.83/7.88 table = newTable; 25.83/7.88 threshold = (int)(newCapacity * loadFactor); 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Transfers all entries from current table to newTable. 25.83/7.88 */ 25.83/7.88 void transfer(Entry[] newTable) { 25.83/7.88 Entry[] src = table; 25.83/7.88 int newCapacity = newTable.length; 25.83/7.88 for (int j = 0; j < src.length; j++) { 25.83/7.88 Entry e = src[j]; 25.83/7.88 if (e != null) { 25.83/7.88 src[j] = null; 25.83/7.88 do { 25.83/7.88 Entry next = e.next; 25.83/7.88 int i = indexFor(e.hash, newCapacity); 25.83/7.88 e.next = newTable[i]; 25.83/7.88 newTable[i] = e; 25.83/7.88 e = next; 25.83/7.88 } while (e != null); 25.83/7.88 } 25.83/7.88 } 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Copies all of the mappings from the specified map to this map. 25.83/7.88 * These mappings will replace any mappings that this map had for 25.83/7.88 * any of the keys currently in the specified map. 25.83/7.88 * 25.83/7.88 * @param m mappings to be stored in this map 25.83/7.88 * @throws NullPointerException if the specified map is null 25.83/7.88 */ 25.83/7.88 public void putAll(Map m) { 25.83/7.88 int numKeysToBeAdded = m.size(); 25.83/7.88 if (numKeysToBeAdded == 0) 25.83/7.88 return; 25.83/7.88 25.83/7.88 /* 25.83/7.88 * Expand the map if the map if the number of mappings to be added 25.83/7.88 * is greater than or equal to threshold. This is conservative; the 25.83/7.88 * obvious condition is (m.size() + size) >= threshold, but this 25.83/7.88 * condition could result in a map with twice the appropriate capacity, 25.83/7.88 * if the keys to be added overlap with the keys already in this map. 25.83/7.88 * By using the conservative calculation, we subject ourself 25.83/7.88 * to at most one extra resize. 25.83/7.88 */ 25.83/7.88 if (numKeysToBeAdded > threshold) { 25.83/7.88 int targetCapacity = (int)(numKeysToBeAdded / loadFactor + 1); 25.83/7.88 if (targetCapacity > MAXIMUM_CAPACITY) 25.83/7.88 targetCapacity = MAXIMUM_CAPACITY; 25.83/7.88 int newCapacity = table.length; 25.83/7.88 while (newCapacity < targetCapacity) 25.83/7.88 newCapacity <<= 1; 25.83/7.88 if (newCapacity > table.length) 25.83/7.88 resize(newCapacity); 25.83/7.88 } 25.83/7.88 25.83/7.88 for (Iterator> i = m.entrySet().iterator(); i.hasNext(); ) { 25.83/7.88 Map.Entry e = i.next(); 25.83/7.88 put(e.getKey(), e.getValue()); 25.83/7.88 } 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Removes the mapping for the specified key from this map if present. 25.83/7.88 * 25.83/7.88 * @param key key whose mapping is to be removed from the map 25.83/7.88 * @return the previous value associated with key, or 25.83/7.88 * null if there was no mapping for key. 25.83/7.88 * (A null return can also indicate that the map 25.83/7.88 * previously associated null with key.) 25.83/7.88 */ 25.83/7.88 public V remove(Object key) { 25.83/7.88 Entry e = removeEntryForKey(key); 25.83/7.88 return (e == null ? null : e.value); 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Removes and returns the entry associated with the specified key 25.83/7.88 * in the HashMap. Returns null if the HashMap contains no mapping 25.83/7.88 * for this key. 25.83/7.88 */ 25.83/7.88 final Entry removeEntryForKey(Object key) { 25.83/7.88 int hash = (key == null) ? 0 : hash(key.hashCode()); 25.83/7.88 int i = indexFor(hash, table.length); 25.83/7.88 Entry prev = table[i]; 25.83/7.88 Entry e = prev; 25.83/7.88 25.83/7.88 while (e != null) { 25.83/7.88 Entry next = e.next; 25.83/7.88 Object k; 25.83/7.88 if (e.hash == hash && 25.83/7.88 ((k = e.key) == key || (key != null && key.equals(k)))) { 25.83/7.88 modCount++; 25.83/7.88 size--; 25.83/7.88 if (prev == e) 25.83/7.88 table[i] = next; 25.83/7.88 else 25.83/7.88 prev.next = next; 25.83/7.88 e.recordRemoval(this); 25.83/7.88 return e; 25.83/7.88 } 25.83/7.88 prev = e; 25.83/7.88 e = next; 25.83/7.88 } 25.83/7.88 25.83/7.88 return e; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Special version of remove for EntrySet. 25.83/7.88 */ 25.83/7.88 final Entry removeMapping(Object o) { 25.83/7.88 if (!(o instanceof Map.Entry)) 25.83/7.88 return null; 25.83/7.88 25.83/7.88 Map.Entry entry = (Map.Entry) o; 25.83/7.88 Object key = entry.getKey(); 25.83/7.88 int hash = (key == null) ? 0 : hash(key.hashCode()); 25.83/7.88 int i = indexFor(hash, table.length); 25.83/7.88 Entry prev = table[i]; 25.83/7.88 Entry e = prev; 25.83/7.88 25.83/7.88 while (e != null) { 25.83/7.88 Entry next = e.next; 25.83/7.88 if (e.hash == hash && e.equals(entry)) { 25.83/7.88 modCount++; 25.83/7.88 size--; 25.83/7.88 if (prev == e) 25.83/7.88 table[i] = next; 25.83/7.88 else 25.83/7.88 prev.next = next; 25.83/7.88 e.recordRemoval(this); 25.83/7.88 return e; 25.83/7.88 } 25.83/7.88 prev = e; 25.83/7.88 e = next; 25.83/7.88 } 25.83/7.88 25.83/7.88 return e; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Removes all of the mappings from this map. 25.83/7.88 * The map will be empty after this call returns. 25.83/7.88 */ 25.83/7.88 public void clear() { 25.83/7.88 modCount++; 25.83/7.88 Entry[] tab = table; 25.83/7.88 for (int i = 0; i < tab.length; i++) 25.83/7.88 tab[i] = null; 25.83/7.88 size = 0; 25.83/7.88 } 25.83/7.88 25.83/7.88 /** 25.83/7.88 * Returns true if this map maps one or more keys to the 25.83/7.89 * specified value. 25.83/7.89 * 25.83/7.89 * @param value value whose presence in this map is to be tested 25.83/7.89 * @return true if this map maps one or more keys to the 25.83/7.89 * specified value 25.83/7.89 */ 25.83/7.89 public boolean containsValue(Object value) { 25.83/7.89 if (value == null) 25.83/7.89 return containsNullValue(); 25.83/7.89 25.83/7.89 Entry[] tab = table; 25.83/7.89 for (int i = 0; i < tab.length ; i++) 25.83/7.89 for (Entry e = tab[i] ; e != null ; e = e.next) 25.83/7.89 if (value.equals(e.value)) 25.83/7.89 return true; 25.83/7.89 return false; 25.83/7.89 } 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Special-case code for containsValue with null argument 25.83/7.89 */ 25.83/7.89 private boolean containsNullValue() { 25.83/7.89 Entry[] tab = table; 25.83/7.89 for (int i = 0; i < tab.length ; i++) 25.83/7.89 for (Entry e = tab[i] ; e != null ; e = e.next) 25.83/7.89 if (e.value == null) 25.83/7.89 return true; 25.83/7.89 return false; 25.83/7.89 } 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns a shallow copy of this HashMap instance: the keys and 25.83/7.89 * values themselves are not cloned. 25.83/7.89 * 25.83/7.89 * @return a shallow copy of this map 25.83/7.89 */ 25.83/7.89 public Object clone() { 25.83/7.89 HashMap result = null; 25.83/7.89 try { 25.83/7.89 result = (HashMap)super.clone(); 25.83/7.89 } catch (CloneNotSupportedException e) { 25.83/7.89 // assert false; 25.83/7.89 } 25.83/7.89 result.table = new Entry[table.length]; 25.83/7.89 result.entrySet = null; 25.83/7.89 result.modCount = 0; 25.83/7.89 result.size = 0; 25.83/7.89 result.init(); 25.83/7.89 result.putAllForCreate(this); 25.83/7.89 25.83/7.89 return result; 25.83/7.89 } 25.83/7.89 25.83/7.89 static class Entry implements Map.Entry { 25.83/7.89 final K key; 25.83/7.89 V value; 25.83/7.89 Entry next; 25.83/7.89 final int hash; 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Creates new entry. 25.83/7.89 */ 25.83/7.89 Entry(int h, K k, V v, Entry n) { 25.83/7.89 value = v; 25.83/7.89 next = n; 25.83/7.89 key = k; 25.83/7.89 hash = h; 25.83/7.89 } 25.83/7.89 25.83/7.89 public final K getKey() { 25.83/7.89 return key; 25.83/7.89 } 25.83/7.89 25.83/7.89 public final V getValue() { 25.83/7.89 return value; 25.83/7.89 } 25.83/7.89 25.83/7.89 public final V setValue(V newValue) { 25.83/7.89 V oldValue = value; 25.83/7.89 value = newValue; 25.83/7.89 return oldValue; 25.83/7.89 } 25.83/7.89 25.83/7.89 public final boolean equals(Object o) { 25.83/7.89 if (!(o instanceof Map.Entry)) 25.83/7.89 return false; 25.83/7.89 Map.Entry e = (Map.Entry)o; 25.83/7.89 Object k1 = getKey(); 25.83/7.89 Object k2 = e.getKey(); 25.83/7.89 if (k1 == k2 || (k1 != null && k1.equals(k2))) { 25.83/7.89 Object v1 = getValue(); 25.83/7.89 Object v2 = e.getValue(); 25.83/7.89 if (v1 == v2 || (v1 != null && v1.equals(v2))) 25.83/7.89 return true; 25.83/7.89 } 25.83/7.89 return false; 25.83/7.89 } 25.83/7.89 25.83/7.89 public final int hashCode() { 25.83/7.89 return (key==null ? 0 : key.hashCode()) ^ 25.83/7.89 (value==null ? 0 : value.hashCode()); 25.83/7.89 } 25.83/7.89 25.83/7.89 public final String toString() { 25.83/7.89 return getKey() + "=" + getValue(); 25.83/7.89 } 25.83/7.89 25.83/7.89 /** 25.83/7.89 * This method is invoked whenever the value in an entry is 25.83/7.89 * overwritten by an invocation of put(k,v) for a key k that's already 25.83/7.89 * in the HashMap. 25.83/7.89 */ 25.83/7.89 void recordAccess(HashMap m) { 25.83/7.89 } 25.83/7.89 25.83/7.89 /** 25.83/7.89 * This method is invoked whenever the entry is 25.83/7.89 * removed from the table. 25.83/7.89 */ 25.83/7.89 void recordRemoval(HashMap m) { 25.83/7.89 } 25.83/7.89 } 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Adds a new entry with the specified key, value and hash code to 25.83/7.89 * the specified bucket. It is the responsibility of this 25.83/7.89 * method to resize the table if appropriate. 25.83/7.89 * 25.83/7.89 * Subclass overrides this to alter the behavior of put method. 25.83/7.89 */ 25.83/7.89 void addEntry(int hash, K key, V value, int bucketIndex) { 25.83/7.89 Entry e = table[bucketIndex]; 25.83/7.89 table[bucketIndex] = new Entry(hash, key, value, e); 25.83/7.89 if (size++ >= threshold) 25.83/7.89 resize(2 * table.length); 25.83/7.89 } 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Like addEntry except that this version is used when creating entries 25.83/7.89 * as part of Map construction or "pseudo-construction" (cloning, 25.83/7.89 * deserialization). This version needn't worry about resizing the table. 25.83/7.89 * 25.83/7.89 * Subclass overrides this to alter the behavior of HashMap(Map), 25.83/7.89 * clone, and readObject. 25.83/7.89 */ 25.83/7.89 void createEntry(int hash, K key, V value, int bucketIndex) { 25.83/7.89 Entry e = table[bucketIndex]; 25.83/7.89 table[bucketIndex] = new Entry(hash, key, value, e); 25.83/7.89 size++; 25.83/7.89 } 25.83/7.89 25.83/7.89 private abstract class HashIterator implements Iterator { 25.83/7.89 Entry next; // next entry to return 25.83/7.89 int expectedModCount; // For fast-fail 25.83/7.89 int index; // current slot 25.83/7.89 Entry current; // current entry 25.83/7.89 25.83/7.89 HashIterator() { 25.83/7.89 expectedModCount = modCount; 25.83/7.89 if (size > 0) { // advance to first entry 25.83/7.89 Entry[] t = table; 25.83/7.89 while (index < t.length && (next = t[index++]) == null) 25.83/7.89 ; 25.83/7.89 } 25.83/7.89 } 25.83/7.89 25.83/7.89 public final boolean hasNext() { 25.83/7.89 return next != null; 25.83/7.89 } 25.83/7.89 25.83/7.89 final Entry nextEntry() { 25.83/7.89 if (modCount != expectedModCount) 25.83/7.89 throw new ConcurrentModificationException(); 25.83/7.89 Entry e = next; 25.83/7.89 if (e == null) 25.83/7.89 throw new NoSuchElementException(); 25.83/7.89 25.83/7.89 if ((next = e.next) == null) { 25.83/7.89 Entry[] t = table; 25.83/7.89 while (index < t.length && (next = t[index++]) == null) 25.83/7.89 ; 25.83/7.89 } 25.83/7.89 current = e; 25.83/7.89 return e; 25.83/7.89 } 25.83/7.89 25.83/7.89 public void remove() { 25.83/7.89 if (current == null) 25.83/7.89 throw new IllegalStateException(); 25.83/7.89 if (modCount != expectedModCount) 25.83/7.89 throw new ConcurrentModificationException(); 25.83/7.89 Object k = current.key; 25.83/7.89 current = null; 25.83/7.89 HashMap.this.removeEntryForKey(k); 25.83/7.89 expectedModCount = modCount; 25.83/7.89 } 25.83/7.89 25.83/7.89 } 25.83/7.89 25.83/7.89 private final class ValueIterator extends HashIterator { 25.83/7.89 public V next() { 25.83/7.89 return nextEntry().value; 25.83/7.89 } 25.83/7.89 } 25.83/7.89 25.83/7.89 private final class KeyIterator extends HashIterator { 25.83/7.89 public K next() { 25.83/7.89 return nextEntry().getKey(); 25.83/7.89 } 25.83/7.89 } 25.83/7.89 25.83/7.89 private final class EntryIterator extends HashIterator> { 25.83/7.89 public Map.Entry next() { 25.83/7.89 return nextEntry(); 25.83/7.89 } 25.83/7.89 } 25.83/7.89 25.83/7.89 // Subclass overrides these to alter behavior of views' iterator() method 25.83/7.89 Iterator newKeyIterator() { 25.83/7.89 return new KeyIterator(); 25.83/7.89 } 25.83/7.89 Iterator newValueIterator() { 25.83/7.89 return new ValueIterator(); 25.83/7.89 } 25.83/7.89 Iterator> newEntryIterator() { 25.83/7.89 return new EntryIterator(); 25.83/7.89 } 25.83/7.89 25.83/7.89 25.83/7.89 // Views 25.83/7.89 25.83/7.89 private transient Set> entrySet = null; 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns a {@link Set} view of the keys contained in this map. 25.83/7.89 * The set is backed by the map, so changes to the map are 25.83/7.89 * reflected in the set, and vice-versa. If the map is modified 25.83/7.89 * while an iteration over the set is in progress (except through 25.83/7.89 * the iterator's own remove operation), the results of 25.83/7.89 * the iteration are undefined. The set supports element removal, 25.83/7.89 * which removes the corresponding mapping from the map, via the 25.83/7.89 * Iterator.remove, Set.remove, 25.83/7.89 * removeAll, retainAll, and clear 25.83/7.89 * operations. It does not support the add or addAll 25.83/7.89 * operations. 25.83/7.89 */ 25.83/7.89 public Set keySet() { 25.83/7.89 Set ks = keySet; 25.83/7.89 return (ks != null ? ks : (keySet = new KeySet())); 25.83/7.89 } 25.83/7.89 25.83/7.89 private final class KeySet extends AbstractSet { 25.83/7.89 public Iterator iterator() { 25.83/7.89 return newKeyIterator(); 25.83/7.89 } 25.83/7.89 public int size() { 25.83/7.89 return size; 25.83/7.89 } 25.83/7.89 public boolean contains(Object o) { 25.83/7.89 return containsKey(o); 25.83/7.89 } 25.83/7.89 public boolean remove(Object o) { 25.83/7.89 return HashMap.this.removeEntryForKey(o) != null; 25.83/7.89 } 25.83/7.89 public void clear() { 25.83/7.89 HashMap.this.clear(); 25.83/7.89 } 25.83/7.89 public Object[] toArray() { 25.83/7.89 Object[] res = new Object[size]; 25.83/7.89 Iterator it = iterator(); 25.83/7.89 int i = 0; 25.83/7.89 while (it.hasNext()) 25.83/7.89 res[i++] = it.next(); 25.83/7.89 return res; 25.83/7.89 } 25.83/7.89 public T[] toArray(T[] a) { 25.83/7.89 a = (T[])java.lang.reflect.Array.newInstance( 25.83/7.89 a.getClass().getComponentType(), size); 25.83/7.89 Object[] res = a; 25.83/7.89 Iterator it = iterator(); 25.83/7.89 int i = 0; 25.83/7.89 while (it.hasNext()) 25.83/7.89 res[i++] = it.next(); 25.83/7.89 return a; 25.83/7.89 } 25.83/7.89 } 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns a {@link Collection} view of the values contained in this map. 25.83/7.89 * The collection is backed by the map, so changes to the map are 25.83/7.89 * reflected in the collection, and vice-versa. If the map is 25.83/7.89 * modified while an iteration over the collection is in progress 25.83/7.89 * (except through the iterator's own remove operation), 25.83/7.89 * the results of the iteration are undefined. The collection 25.83/7.89 * supports element removal, which removes the corresponding 25.83/7.89 * mapping from the map, via the Iterator.remove, 25.83/7.89 * Collection.remove, removeAll, 25.83/7.89 * retainAll and clear operations. It does not 25.83/7.89 * support the add or addAll operations. 25.83/7.89 */ 25.83/7.89 public Collection values() { 25.83/7.89 Collection vs = values; 25.83/7.89 return (vs != null ? vs : (values = new Values())); 25.83/7.89 } 25.83/7.89 25.83/7.89 private final class Values extends AbstractCollection { 25.83/7.89 public Iterator iterator() { 25.83/7.89 return newValueIterator(); 25.83/7.89 } 25.83/7.89 public int size() { 25.83/7.89 return size; 25.83/7.89 } 25.83/7.89 public boolean contains(Object o) { 25.83/7.89 return containsValue(o); 25.83/7.89 } 25.83/7.89 public void clear() { 25.83/7.89 HashMap.this.clear(); 25.83/7.89 } 25.83/7.89 } 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns a {@link Set} view of the mappings contained in this map. 25.83/7.89 * The set is backed by the map, so changes to the map are 25.83/7.89 * reflected in the set, and vice-versa. If the map is modified 25.83/7.89 * while an iteration over the set is in progress (except through 25.83/7.89 * the iterator's own remove operation, or through the 25.83/7.89 * setValue operation on a map entry returned by the 25.83/7.89 * iterator) the results of the iteration are undefined. The set 25.83/7.89 * supports element removal, which removes the corresponding 25.83/7.89 * mapping from the map, via the Iterator.remove, 25.83/7.89 * Set.remove, removeAll, retainAll and 25.83/7.89 * clear operations. It does not support the 25.83/7.89 * add or addAll operations. 25.83/7.89 * 25.83/7.89 * @return a set view of the mappings contained in this map 25.83/7.89 */ 25.83/7.89 public Set> entrySet() { 25.83/7.89 return entrySet0(); 25.83/7.89 } 25.83/7.89 25.83/7.89 private Set> entrySet0() { 25.83/7.89 Set> es = entrySet; 25.83/7.89 return es != null ? es : (entrySet = new EntrySet()); 25.83/7.89 } 25.83/7.89 25.83/7.89 private final class EntrySet extends AbstractSet> { 25.83/7.89 public Iterator> iterator() { 25.83/7.89 return newEntryIterator(); 25.83/7.89 } 25.83/7.89 public boolean contains(Object o) { 25.83/7.89 if (!(o instanceof Map.Entry)) 25.83/7.89 return false; 25.83/7.89 Map.Entry e = (Map.Entry) o; 25.83/7.89 Entry candidate = getEntry(e.getKey()); 25.83/7.89 return candidate != null && candidate.equals(e); 25.83/7.89 } 25.83/7.89 public boolean remove(Object o) { 25.83/7.89 return removeMapping(o) != null; 25.83/7.89 } 25.83/7.89 public int size() { 25.83/7.89 return size; 25.83/7.89 } 25.83/7.89 public void clear() { 25.83/7.89 HashMap.this.clear(); 25.83/7.89 } 25.83/7.89 public Object[] toArray() { 25.83/7.89 Object[] res = new Object[size]; 25.83/7.89 Iterator> it = iterator(); 25.83/7.89 int i = 0; 25.83/7.89 while (it.hasNext()) 25.83/7.89 res[i++] = it.next(); 25.83/7.89 return res; 25.83/7.89 } 25.83/7.89 public T[] toArray(T[] a) { 25.83/7.89 a = (T[])java.lang.reflect.Array.newInstance( 25.83/7.89 a.getClass().getComponentType(), size); 25.83/7.89 Object[] res = a; 25.83/7.89 Iterator> it = iterator(); 25.83/7.89 int i = 0; 25.83/7.89 while (it.hasNext()) 25.83/7.89 res[i++] = it.next(); 25.83/7.89 return a; 25.83/7.89 } 25.83/7.89 } 25.83/7.89 25.83/7.89 private static final long serialVersionUID = 362498820763181265L; 25.83/7.89 } 25.83/7.89 25.83/7.89 25.83/7.89 /* 25.83/7.89 * Copyright 1994-2003 Sun Microsystems, Inc. All Rights Reserved. 25.83/7.89 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 25.83/7.89 * 25.83/7.89 * This code is free software; you can redistribute it and/or modify it 25.83/7.89 * under the terms of the GNU General Public License version 2 only, as 25.83/7.89 * published by the Free Software Foundation. Sun designates this 25.83/7.89 * particular file as subject to the "Classpath" exception as provided 25.83/7.89 * by Sun in the LICENSE file that accompanied this code. 25.83/7.89 * 25.83/7.89 * This code is distributed in the hope that it will be useful, but WITHOUT 25.83/7.89 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 25.83/7.89 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 25.83/7.89 * version 2 for more details (a copy is included in the LICENSE file that 25.83/7.89 * accompanied this code). 25.83/7.89 * 25.83/7.89 * You should have received a copy of the GNU General Public License version 25.83/7.89 * 2 along with this work; if not, write to the Free Software Foundation, 25.83/7.89 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 25.83/7.89 * 25.83/7.89 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 25.83/7.89 * CA 95054 USA or visit www.sun.com if you need additional information or 25.83/7.89 * have any questions. 25.83/7.89 */ 25.83/7.89 25.83/7.89 package javaUtilEx; 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Thrown to indicate that a method has been passed an illegal or 25.83/7.89 * inappropriate argument. 25.83/7.89 * 25.83/7.89 * @author unascribed 25.83/7.89 * @see java.lang.Thread#setPriority(int) 25.83/7.89 * @since JDK1.0 25.83/7.89 */ 25.83/7.89 public 25.83/7.89 class IllegalArgumentException extends RuntimeException { 25.83/7.89 /** 25.83/7.89 * Constructs an IllegalArgumentException with no 25.83/7.89 * detail message. 25.83/7.89 */ 25.83/7.89 public IllegalArgumentException() { 25.83/7.89 super(); 25.83/7.89 } 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Constructs an IllegalArgumentException with the 25.83/7.89 * specified detail message. 25.83/7.89 * 25.83/7.89 * @param s the detail message. 25.83/7.89 */ 25.83/7.89 public IllegalArgumentException(String s) { 25.83/7.89 super(s); 25.83/7.89 } 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Constructs a new exception with the specified detail message and 25.83/7.89 * cause. 25.83/7.89 * 25.83/7.89 *

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

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

    25.83/7.89 *
  • Iterators allow the caller to remove elements from the 25.83/7.89 * underlying collection during the iteration with well-defined 25.83/7.89 * semantics. 25.83/7.89 *
  • Method names have been improved. 25.83/7.89 *
25.83/7.89 * 25.83/7.89 *

This interface is a member of the 25.83/7.89 * 25.83/7.89 * Java Collections Framework. 25.83/7.89 * 25.83/7.89 * @author Josh Bloch 25.83/7.89 * @see Collection 25.83/7.89 * @see ListIterator 25.83/7.89 * @see Iterable 25.83/7.89 * @since 1.2 25.83/7.89 */ 25.83/7.89 public interface Iterator { 25.83/7.89 /** 25.83/7.89 * Returns {@code true} if the iteration has more elements. 25.83/7.89 * (In other words, returns {@code true} if {@link #next} would 25.83/7.89 * return an element rather than throwing an exception.) 25.83/7.89 * 25.83/7.89 * @return {@code true} if the iteration has more elements 25.83/7.89 */ 25.83/7.89 boolean hasNext(); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns the next element in the iteration. 25.83/7.89 * 25.83/7.89 * @return the next element in the iteration 25.83/7.89 * @throws NoSuchElementException if the iteration has no more elements 25.83/7.89 */ 25.83/7.89 E next(); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Removes from the underlying collection the last element returned 25.83/7.89 * by this iterator (optional operation). This method can be called 25.83/7.89 * only once per call to {@link #next}. The behavior of an iterator 25.83/7.89 * is unspecified if the underlying collection is modified while the 25.83/7.89 * iteration is in progress in any way other than by calling this 25.83/7.89 * method. 25.83/7.89 * 25.83/7.89 * @throws UnsupportedOperationException if the {@code remove} 25.83/7.89 * operation is not supported by this iterator 25.83/7.89 * 25.83/7.89 * @throws IllegalStateException if the {@code next} method has not 25.83/7.89 * yet been called, or the {@code remove} method has already 25.83/7.89 * been called after the last call to the {@code next} 25.83/7.89 * method 25.83/7.89 */ 25.83/7.89 void remove(); 25.83/7.89 } 25.83/7.89 25.83/7.89 25.83/7.89 package javaUtilEx; 25.83/7.89 25.83/7.89 public class juHashMapCreateSize { 25.83/7.89 public static void main(String[] args) { 25.83/7.89 Random.args = args; 25.83/7.89 25.83/7.89 HashMap m = createMap(Random.random()); 25.83/7.89 int size = m.size(); 25.83/7.89 } 25.83/7.89 25.83/7.89 public static HashMap createMap(int n) { 25.83/7.89 HashMap m = new HashMap(); 25.83/7.89 while (n > 0) { 25.83/7.89 Content key = new Content(Random.random()); 25.83/7.89 Content val = new Content(Random.random()); 25.83/7.89 m.put(key, val); 25.83/7.89 n--; 25.83/7.89 } 25.83/7.89 return m; 25.83/7.89 } 25.83/7.89 } 25.83/7.89 25.83/7.89 final class Content { 25.83/7.89 int val; 25.83/7.89 25.83/7.89 public Content(int v) { 25.83/7.89 this.val = v; 25.83/7.89 } 25.83/7.89 25.83/7.89 public int hashCode() { 25.83/7.89 return val^31; 25.83/7.89 } 25.83/7.89 25.83/7.89 public boolean equals(Object o) { 25.83/7.89 if (o instanceof Content) { 25.83/7.89 return this.val == ((Content) o).val; 25.83/7.89 } 25.83/7.89 return false; 25.83/7.89 } 25.83/7.89 } 25.83/7.89 25.83/7.89 25.83/7.89 /* 25.83/7.89 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 25.83/7.89 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 25.83/7.89 * 25.83/7.89 * This code is free software; you can redistribute it and/or modify it 25.83/7.89 * under the terms of the GNU General Public License version 2 only, as 25.83/7.89 * published by the Free Software Foundation. Sun designates this 25.83/7.89 * particular file as subject to the "Classpath" exception as provided 25.83/7.89 * by Sun in the LICENSE file that accompanied this code. 25.83/7.89 * 25.83/7.89 * This code is distributed in the hope that it will be useful, but WITHOUT 25.83/7.89 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 25.83/7.89 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 25.83/7.89 * version 2 for more details (a copy is included in the LICENSE file that 25.83/7.89 * accompanied this code). 25.83/7.89 * 25.83/7.89 * You should have received a copy of the GNU General Public License version 25.83/7.89 * 2 along with this work; if not, write to the Free Software Foundation, 25.83/7.89 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 25.83/7.89 * 25.83/7.89 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 25.83/7.89 * CA 95054 USA or visit www.sun.com if you need additional information or 25.83/7.89 * have any questions. 25.83/7.89 */ 25.83/7.89 25.83/7.89 package javaUtilEx; 25.83/7.89 25.83/7.89 /** 25.83/7.89 * An object that maps keys to values. A map cannot contain duplicate keys; 25.83/7.89 * each key can map to at most one value. 25.83/7.89 * 25.83/7.89 *

This interface takes the place of the Dictionary class, which 25.83/7.89 * was a totally abstract class rather than an interface. 25.83/7.89 * 25.83/7.89 *

The Map interface provides three collection views, which 25.83/7.89 * allow a map's contents to be viewed as a set of keys, collection of values, 25.83/7.89 * or set of key-value mappings. The order of a map is defined as 25.83/7.89 * the order in which the iterators on the map's collection views return their 25.83/7.89 * elements. Some map implementations, like the TreeMap class, make 25.83/7.89 * specific guarantees as to their order; others, like the HashMap 25.83/7.89 * class, do not. 25.83/7.89 * 25.83/7.89 *

Note: great care must be exercised if mutable objects are used as map 25.83/7.89 * keys. The behavior of a map is not specified if the value of an object is 25.83/7.89 * changed in a manner that affects equals comparisons while the 25.83/7.89 * object is a key in the map. A special case of this prohibition is that it 25.83/7.89 * is not permissible for a map to contain itself as a key. While it is 25.83/7.89 * permissible for a map to contain itself as a value, extreme caution is 25.83/7.89 * advised: the equals and hashCode methods are no longer 25.83/7.89 * well defined on such a map. 25.83/7.89 * 25.83/7.89 *

All general-purpose map implementation classes should provide two 25.83/7.89 * "standard" constructors: a void (no arguments) constructor which creates an 25.83/7.89 * empty map, and a constructor with a single argument of type Map, 25.83/7.89 * which creates a new map with the same key-value mappings as its argument. 25.83/7.89 * In effect, the latter constructor allows the user to copy any map, 25.83/7.89 * producing an equivalent map of the desired class. There is no way to 25.83/7.89 * enforce this recommendation (as interfaces cannot contain constructors) but 25.83/7.89 * all of the general-purpose map implementations in the JDK comply. 25.83/7.89 * 25.83/7.89 *

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

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

This interface is a member of the 25.83/7.89 * 25.83/7.89 * Java Collections Framework. 25.83/7.89 * 25.83/7.89 *

Many methods in Collections Framework interfaces are defined 25.83/7.89 * in terms of the {@link Object#equals(Object) equals} method. For 25.83/7.89 * example, the specification for the {@link #containsKey(Object) 25.83/7.89 * containsKey(Object key)} method says: "returns true if and 25.83/7.89 * only if this map contains a mapping for a key k such that 25.83/7.89 * (key==null ? k==null : key.equals(k))." This specification should 25.83/7.89 * not be construed to imply that invoking Map.containsKey 25.83/7.89 * with a non-null argument key will cause key.equals(k) to 25.83/7.89 * be invoked for any key k. Implementations are free to 25.83/7.89 * implement optimizations whereby the equals invocation is avoided, 25.83/7.89 * for example, by first comparing the hash codes of the two keys. (The 25.83/7.89 * {@link Object#hashCode()} specification guarantees that two objects with 25.83/7.89 * unequal hash codes cannot be equal.) More generally, implementations of 25.83/7.89 * the various Collections Framework interfaces are free to take advantage of 25.83/7.89 * the specified behavior of underlying {@link Object} methods wherever the 25.83/7.89 * implementor deems it appropriate. 25.83/7.89 * 25.83/7.89 * @param the type of keys maintained by this map 25.83/7.89 * @param the type of mapped values 25.83/7.89 * 25.83/7.89 * @author Josh Bloch 25.83/7.89 * @see HashMap 25.83/7.89 * @see TreeMap 25.83/7.89 * @see Hashtable 25.83/7.89 * @see SortedMap 25.83/7.89 * @see Collection 25.83/7.89 * @see Set 25.83/7.89 * @since 1.2 25.83/7.89 */ 25.83/7.89 public interface Map { 25.83/7.89 // Query Operations 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns the number of key-value mappings in this map. If the 25.83/7.89 * map contains more than Integer.MAX_VALUE elements, returns 25.83/7.89 * Integer.MAX_VALUE. 25.83/7.89 * 25.83/7.89 * @return the number of key-value mappings in this map 25.83/7.89 */ 25.83/7.89 int size(); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns true if this map contains no key-value mappings. 25.83/7.89 * 25.83/7.89 * @return true if this map contains no key-value mappings 25.83/7.89 */ 25.83/7.89 boolean isEmpty(); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns true if this map contains a mapping for the specified 25.83/7.89 * key. More formally, returns true if and only if 25.83/7.89 * this map contains a mapping for a key k such that 25.83/7.89 * (key==null ? k==null : key.equals(k)). (There can be 25.83/7.89 * at most one such mapping.) 25.83/7.89 * 25.83/7.89 * @param key key whose presence in this map is to be tested 25.83/7.89 * @return true if this map contains a mapping for the specified 25.83/7.89 * key 25.83/7.89 * @throws ClassCastException if the key is of an inappropriate type for 25.83/7.89 * this map (optional) 25.83/7.89 * @throws NullPointerException if the specified key is null and this map 25.83/7.89 * does not permit null keys (optional) 25.83/7.89 */ 25.83/7.89 boolean containsKey(Object key); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns true if this map maps one or more keys to the 25.83/7.89 * specified value. More formally, returns true if and only if 25.83/7.89 * this map contains at least one mapping to a value v such that 25.83/7.89 * (value==null ? v==null : value.equals(v)). This operation 25.83/7.89 * will probably require time linear in the map size for most 25.83/7.89 * implementations of the Map interface. 25.83/7.89 * 25.83/7.89 * @param value value whose presence in this map is to be tested 25.83/7.89 * @return true if this map maps one or more keys to the 25.83/7.89 * specified value 25.83/7.89 * @throws ClassCastException if the value is of an inappropriate type for 25.83/7.89 * this map (optional) 25.83/7.89 * @throws NullPointerException if the specified value is null and this 25.83/7.89 * map does not permit null values (optional) 25.83/7.89 */ 25.83/7.89 boolean containsValue(Object value); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns the value to which the specified key is mapped, 25.83/7.89 * or {@code null} if this map contains no mapping for the key. 25.83/7.89 * 25.83/7.89 *

More formally, if this map contains a mapping from a key 25.83/7.89 * {@code k} to a value {@code v} such that {@code (key==null ? k==null : 25.83/7.89 * key.equals(k))}, then this method returns {@code v}; otherwise 25.83/7.89 * it returns {@code null}. (There can be at most one such mapping.) 25.83/7.89 * 25.83/7.89 *

If this map permits null values, then a return value of 25.83/7.89 * {@code null} does not necessarily indicate that the map 25.83/7.89 * contains no mapping for the key; it's also possible that the map 25.83/7.89 * explicitly maps the key to {@code null}. The {@link #containsKey 25.83/7.89 * containsKey} operation may be used to distinguish these two cases. 25.83/7.89 * 25.83/7.89 * @param key the key whose associated value is to be returned 25.83/7.89 * @return the value to which the specified key is mapped, or 25.83/7.89 * {@code null} if this map contains no mapping for the key 25.83/7.89 * @throws ClassCastException if the key is of an inappropriate type for 25.83/7.89 * this map (optional) 25.83/7.89 * @throws NullPointerException if the specified key is null and this map 25.83/7.89 * does not permit null keys (optional) 25.83/7.89 */ 25.83/7.89 V get(Object key); 25.83/7.89 25.83/7.89 // Modification Operations 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Associates the specified value with the specified key in this map 25.83/7.89 * (optional operation). If the map previously contained a mapping for 25.83/7.89 * the key, the old value is replaced by the specified value. (A map 25.83/7.89 * m is said to contain a mapping for a key k if and only 25.83/7.89 * if {@link #containsKey(Object) m.containsKey(k)} would return 25.83/7.89 * true.) 25.83/7.89 * 25.83/7.89 * @param key key with which the specified value is to be associated 25.83/7.89 * @param value value to be associated with the specified key 25.83/7.89 * @return the previous value associated with key, or 25.83/7.89 * null if there was no mapping for key. 25.83/7.89 * (A null return can also indicate that the map 25.83/7.89 * previously associated null with key, 25.83/7.89 * if the implementation supports null values.) 25.83/7.89 * @throws UnsupportedOperationException if the put operation 25.83/7.89 * is not supported by this map 25.83/7.89 * @throws ClassCastException if the class of the specified key or value 25.83/7.89 * prevents it from being stored in this map 25.83/7.89 * @throws NullPointerException if the specified key or value is null 25.83/7.89 * and this map does not permit null keys or values 25.83/7.89 * @throws IllegalArgumentException if some property of the specified key 25.83/7.89 * or value prevents it from being stored in this map 25.83/7.89 */ 25.83/7.89 V put(K key, V value); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Removes the mapping for a key from this map if it is present 25.83/7.89 * (optional operation). More formally, if this map contains a mapping 25.83/7.89 * from key k to value v such that 25.83/7.89 * (key==null ? k==null : key.equals(k)), that mapping 25.83/7.89 * is removed. (The map can contain at most one such mapping.) 25.83/7.89 * 25.83/7.89 *

Returns the value to which this map previously associated the key, 25.83/7.89 * or null if the map contained no mapping for the key. 25.83/7.89 * 25.83/7.89 *

If this map permits null values, then a return value of 25.83/7.89 * null does not necessarily indicate that the map 25.83/7.89 * contained no mapping for the key; it's also possible that the map 25.83/7.89 * explicitly mapped the key to null. 25.83/7.89 * 25.83/7.89 *

The map will not contain a mapping for the specified key once the 25.83/7.89 * call returns. 25.83/7.89 * 25.83/7.89 * @param key key whose mapping is to be removed from the map 25.83/7.89 * @return the previous value associated with key, or 25.83/7.89 * null if there was no mapping for key. 25.83/7.89 * @throws UnsupportedOperationException if the remove operation 25.83/7.89 * is not supported by this map 25.83/7.89 * @throws ClassCastException if the key is of an inappropriate type for 25.83/7.89 * this map (optional) 25.83/7.89 * @throws NullPointerException if the specified key is null and this 25.83/7.89 * map does not permit null keys (optional) 25.83/7.89 */ 25.83/7.89 V remove(Object key); 25.83/7.89 25.83/7.89 25.83/7.89 // Bulk Operations 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Copies all of the mappings from the specified map to this map 25.83/7.89 * (optional operation). The effect of this call is equivalent to that 25.83/7.89 * of calling {@link #put(Object,Object) put(k, v)} on this map once 25.83/7.89 * for each mapping from key k to value v in the 25.83/7.89 * specified map. The behavior of this operation is undefined if the 25.83/7.89 * specified map is modified while the operation is in progress. 25.83/7.89 * 25.83/7.89 * @param m mappings to be stored in this map 25.83/7.89 * @throws UnsupportedOperationException if the putAll operation 25.83/7.89 * is not supported by this map 25.83/7.89 * @throws ClassCastException if the class of a key or value in the 25.83/7.89 * specified map prevents it from being stored in this map 25.83/7.89 * @throws NullPointerException if the specified map is null, or if 25.83/7.89 * this map does not permit null keys or values, and the 25.83/7.89 * specified map contains null keys or values 25.83/7.89 * @throws IllegalArgumentException if some property of a key or value in 25.83/7.89 * the specified map prevents it from being stored in this map 25.83/7.89 */ 25.83/7.89 void putAll(Map m); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Removes all of the mappings from this map (optional operation). 25.83/7.89 * The map will be empty after this call returns. 25.83/7.89 * 25.83/7.89 * @throws UnsupportedOperationException if the clear operation 25.83/7.89 * is not supported by this map 25.83/7.89 */ 25.83/7.89 void clear(); 25.83/7.89 25.83/7.89 25.83/7.89 // Views 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns a {@link Set} view of the keys contained in this map. 25.83/7.89 * The set is backed by the map, so changes to the map are 25.83/7.89 * reflected in the set, and vice-versa. If the map is modified 25.83/7.89 * while an iteration over the set is in progress (except through 25.83/7.89 * the iterator's own remove operation), the results of 25.83/7.89 * the iteration are undefined. The set supports element removal, 25.83/7.89 * which removes the corresponding mapping from the map, via the 25.83/7.89 * Iterator.remove, Set.remove, 25.83/7.89 * removeAll, retainAll, and clear 25.83/7.89 * operations. It does not support the add or addAll 25.83/7.89 * operations. 25.83/7.89 * 25.83/7.89 * @return a set view of the keys contained in this map 25.83/7.89 */ 25.83/7.89 Set keySet(); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns a {@link Collection} view of the values contained in this map. 25.83/7.89 * The collection is backed by the map, so changes to the map are 25.83/7.89 * reflected in the collection, and vice-versa. If the map is 25.83/7.89 * modified while an iteration over the collection is in progress 25.83/7.89 * (except through the iterator's own remove operation), 25.83/7.89 * the results of the iteration are undefined. The collection 25.83/7.89 * supports element removal, which removes the corresponding 25.83/7.89 * mapping from the map, via the Iterator.remove, 25.83/7.89 * Collection.remove, removeAll, 25.83/7.89 * retainAll and clear operations. It does not 25.83/7.89 * support the add or addAll operations. 25.83/7.89 * 25.83/7.89 * @return a collection view of the values contained in this map 25.83/7.89 */ 25.83/7.89 Collection values(); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns a {@link Set} view of the mappings contained in this map. 25.83/7.89 * The set is backed by the map, so changes to the map are 25.83/7.89 * reflected in the set, and vice-versa. If the map is modified 25.83/7.89 * while an iteration over the set is in progress (except through 25.83/7.89 * the iterator's own remove operation, or through the 25.83/7.89 * setValue operation on a map entry returned by the 25.83/7.89 * iterator) the results of the iteration are undefined. The set 25.83/7.89 * supports element removal, which removes the corresponding 25.83/7.89 * mapping from the map, via the Iterator.remove, 25.83/7.89 * Set.remove, removeAll, retainAll and 25.83/7.89 * clear operations. It does not support the 25.83/7.89 * add or addAll operations. 25.83/7.89 * 25.83/7.89 * @return a set view of the mappings contained in this map 25.83/7.89 */ 25.83/7.89 Set> entrySet(); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * A map entry (key-value pair). The Map.entrySet method returns 25.83/7.89 * a collection-view of the map, whose elements are of this class. The 25.83/7.89 * only way to obtain a reference to a map entry is from the 25.83/7.89 * iterator of this collection-view. These Map.Entry objects are 25.83/7.89 * valid only for the duration of the iteration; more formally, 25.83/7.89 * the behavior of a map entry is undefined if the backing map has been 25.83/7.89 * modified after the entry was returned by the iterator, except through 25.83/7.89 * the setValue operation on the map entry. 25.83/7.89 * 25.83/7.89 * @see Map#entrySet() 25.83/7.89 * @since 1.2 25.83/7.89 */ 25.83/7.89 interface Entry { 25.83/7.89 /** 25.83/7.89 * Returns the key corresponding to this entry. 25.83/7.89 * 25.83/7.89 * @return the key corresponding to this entry 25.83/7.89 * @throws IllegalStateException implementations may, but are not 25.83/7.89 * required to, throw this exception if the entry has been 25.83/7.89 * removed from the backing map. 25.83/7.89 */ 25.83/7.89 K getKey(); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns the value corresponding to this entry. If the mapping 25.83/7.89 * has been removed from the backing map (by the iterator's 25.83/7.89 * remove operation), the results of this call are undefined. 25.83/7.89 * 25.83/7.89 * @return the value corresponding to this entry 25.83/7.89 * @throws IllegalStateException implementations may, but are not 25.83/7.89 * required to, throw this exception if the entry has been 25.83/7.89 * removed from the backing map. 25.83/7.89 */ 25.83/7.89 V getValue(); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Replaces the value corresponding to this entry with the specified 25.83/7.89 * value (optional operation). (Writes through to the map.) The 25.83/7.89 * behavior of this call is undefined if the mapping has already been 25.83/7.89 * removed from the map (by the iterator's remove operation). 25.83/7.89 * 25.83/7.89 * @param value new value to be stored in this entry 25.83/7.89 * @return old value corresponding to the entry 25.83/7.89 * @throws UnsupportedOperationException if the put operation 25.83/7.89 * is not supported by the backing map 25.83/7.89 * @throws ClassCastException if the class of the specified value 25.83/7.89 * prevents it from being stored in the backing map 25.83/7.89 * @throws NullPointerException if the backing map does not permit 25.83/7.89 * null values, and the specified value is null 25.83/7.89 * @throws IllegalArgumentException if some property of this value 25.83/7.89 * prevents it from being stored in the backing map 25.83/7.89 * @throws IllegalStateException implementations may, but are not 25.83/7.89 * required to, throw this exception if the entry has been 25.83/7.89 * removed from the backing map. 25.83/7.89 */ 25.83/7.89 V setValue(V value); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Compares the specified object with this entry for equality. 25.83/7.89 * Returns true if the given object is also a map entry and 25.83/7.89 * the two entries represent the same mapping. More formally, two 25.83/7.89 * entries e1 and e2 represent the same mapping 25.83/7.89 * if

25.83/7.89	         *     (e1.getKey()==null ?
25.83/7.89	         *      e2.getKey()==null : e1.getKey().equals(e2.getKey()))  &&
25.83/7.89	         *     (e1.getValue()==null ?
25.83/7.89	         *      e2.getValue()==null : e1.getValue().equals(e2.getValue()))
25.83/7.89	         * 
25.83/7.89 * This ensures that the equals method works properly across 25.83/7.89 * different implementations of the Map.Entry interface. 25.83/7.89 * 25.83/7.89 * @param o object to be compared for equality with this map entry 25.83/7.89 * @return true if the specified object is equal to this map 25.83/7.89 * entry 25.83/7.89 */ 25.83/7.89 boolean equals(Object o); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns the hash code value for this map entry. The hash code 25.83/7.89 * of a map entry e is defined to be:
25.83/7.89	         *     (e.getKey()==null   ? 0 : e.getKey().hashCode()) ^
25.83/7.89	         *     (e.getValue()==null ? 0 : e.getValue().hashCode())
25.83/7.89	         * 
25.83/7.89 * This ensures that e1.equals(e2) implies that 25.83/7.89 * e1.hashCode()==e2.hashCode() for any two Entries 25.83/7.89 * e1 and e2, as required by the general 25.83/7.89 * contract of Object.hashCode. 25.83/7.89 * 25.83/7.89 * @return the hash code value for this map entry 25.83/7.89 * @see Object#hashCode() 25.83/7.89 * @see Object#equals(Object) 25.83/7.89 * @see #equals(Object) 25.83/7.89 */ 25.83/7.89 int hashCode(); 25.83/7.89 } 25.83/7.89 25.83/7.89 // Comparison and hashing 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Compares the specified object with this map for equality. Returns 25.83/7.89 * true if the given object is also a map and the two maps 25.83/7.89 * represent the same mappings. More formally, two maps m1 and 25.83/7.89 * m2 represent the same mappings if 25.83/7.89 * m1.entrySet().equals(m2.entrySet()). This ensures that the 25.83/7.89 * equals method works properly across different implementations 25.83/7.89 * of the Map interface. 25.83/7.89 * 25.83/7.89 * @param o object to be compared for equality with this map 25.83/7.89 * @return true if the specified object is equal to this map 25.83/7.89 */ 25.83/7.89 boolean equals(Object o); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns the hash code value for this map. The hash code of a map is 25.83/7.89 * defined to be the sum of the hash codes of each entry in the map's 25.83/7.89 * entrySet() view. This ensures that m1.equals(m2) 25.83/7.89 * implies that m1.hashCode()==m2.hashCode() for any two maps 25.83/7.89 * m1 and m2, as required by the general contract of 25.83/7.89 * {@link Object#hashCode}. 25.83/7.89 * 25.83/7.89 * @return the hash code value for this map 25.83/7.89 * @see Map.Entry#hashCode() 25.83/7.89 * @see Object#equals(Object) 25.83/7.89 * @see #equals(Object) 25.83/7.89 */ 25.83/7.89 int hashCode(); 25.83/7.89 } 25.83/7.89 25.83/7.89 25.83/7.89 /* 25.83/7.89 * Copyright 1994-1998 Sun Microsystems, Inc. All Rights Reserved. 25.83/7.89 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 25.83/7.89 * 25.83/7.89 * This code is free software; you can redistribute it and/or modify it 25.83/7.89 * under the terms of the GNU General Public License version 2 only, as 25.83/7.89 * published by the Free Software Foundation. Sun designates this 25.83/7.89 * particular file as subject to the "Classpath" exception as provided 25.83/7.89 * by Sun in the LICENSE file that accompanied this code. 25.83/7.89 * 25.83/7.89 * This code is distributed in the hope that it will be useful, but WITHOUT 25.83/7.89 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 25.83/7.89 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 25.83/7.89 * version 2 for more details (a copy is included in the LICENSE file that 25.83/7.89 * accompanied this code). 25.83/7.89 * 25.83/7.89 * You should have received a copy of the GNU General Public License version 25.83/7.89 * 2 along with this work; if not, write to the Free Software Foundation, 25.83/7.89 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 25.83/7.89 * 25.83/7.89 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 25.83/7.89 * CA 95054 USA or visit www.sun.com if you need additional information or 25.83/7.89 * have any questions. 25.83/7.89 */ 25.83/7.89 25.83/7.89 package javaUtilEx; 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Thrown by the nextElement method of an 25.83/7.89 * Enumeration to indicate that there are no more 25.83/7.89 * elements in the enumeration. 25.83/7.89 * 25.83/7.89 * @author unascribed 25.83/7.89 * @see java.util.Enumeration 25.83/7.89 * @see java.util.Enumeration#nextElement() 25.83/7.89 * @since JDK1.0 25.83/7.89 */ 25.83/7.89 public 25.83/7.89 class NoSuchElementException extends RuntimeException { 25.83/7.89 /** 25.83/7.89 * Constructs a NoSuchElementException with null 25.83/7.89 * as its error message string. 25.83/7.89 */ 25.83/7.89 public NoSuchElementException() { 25.83/7.89 super(); 25.83/7.89 } 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Constructs a NoSuchElementException, saving a reference 25.83/7.89 * to the error message string s for later retrieval by the 25.83/7.89 * getMessage method. 25.83/7.89 * 25.83/7.89 * @param s the detail message. 25.83/7.89 */ 25.83/7.89 public NoSuchElementException(String s) { 25.83/7.89 super(s); 25.83/7.89 } 25.83/7.89 } 25.83/7.89 25.83/7.89 25.83/7.89 package javaUtilEx; 25.83/7.89 25.83/7.89 public class Random { 25.83/7.89 static String[] args; 25.83/7.89 static int index = 0; 25.83/7.89 25.83/7.89 public static int random() { 25.83/7.89 String string = args[index]; 25.83/7.89 index++; 25.83/7.89 return string.length(); 25.83/7.89 } 25.83/7.89 } 25.83/7.89 25.83/7.89 25.83/7.89 /* 25.83/7.89 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 25.83/7.89 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 25.83/7.89 * 25.83/7.89 * This code is free software; you can redistribute it and/or modify it 25.83/7.89 * under the terms of the GNU General Public License version 2 only, as 25.83/7.89 * published by the Free Software Foundation. Sun designates this 25.83/7.89 * particular file as subject to the "Classpath" exception as provided 25.83/7.89 * by Sun in the LICENSE file that accompanied this code. 25.83/7.89 * 25.83/7.89 * This code is distributed in the hope that it will be useful, but WITHOUT 25.83/7.89 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 25.83/7.89 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 25.83/7.89 * version 2 for more details (a copy is included in the LICENSE file that 25.83/7.89 * accompanied this code). 25.83/7.89 * 25.83/7.89 * You should have received a copy of the GNU General Public License version 25.83/7.89 * 2 along with this work; if not, write to the Free Software Foundation, 25.83/7.89 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 25.83/7.89 * 25.83/7.89 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 25.83/7.89 * CA 95054 USA or visit www.sun.com if you need additional information or 25.83/7.89 * have any questions. 25.83/7.89 */ 25.83/7.89 25.83/7.89 package javaUtilEx; 25.83/7.89 25.83/7.89 /** 25.83/7.89 * A collection that contains no duplicate elements. More formally, sets 25.83/7.89 * contain no pair of elements e1 and e2 such that 25.83/7.89 * e1.equals(e2), and at most one null element. As implied by 25.83/7.89 * its name, this interface models the mathematical set abstraction. 25.83/7.89 * 25.83/7.89 *

The Set interface places additional stipulations, beyond those 25.83/7.89 * inherited from the Collection interface, on the contracts of all 25.83/7.89 * constructors and on the contracts of the add, equals and 25.83/7.89 * hashCode methods. Declarations for other inherited methods are 25.83/7.89 * also included here for convenience. (The specifications accompanying these 25.83/7.89 * declarations have been tailored to the Set interface, but they do 25.83/7.89 * not contain any additional stipulations.) 25.83/7.89 * 25.83/7.89 *

The additional stipulation on constructors is, not surprisingly, 25.83/7.89 * that all constructors must create a set that contains no duplicate elements 25.83/7.89 * (as defined above). 25.83/7.89 * 25.83/7.89 *

Note: Great care must be exercised if mutable objects are used as set 25.83/7.89 * elements. The behavior of a set is not specified if the value of an object 25.83/7.89 * is changed in a manner that affects equals comparisons while the 25.83/7.89 * object is an element in the set. A special case of this prohibition is 25.83/7.89 * that it is not permissible for a set to contain itself as an element. 25.83/7.89 * 25.83/7.89 *

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

This interface is a member of the 25.83/7.89 * 25.83/7.89 * Java Collections Framework. 25.83/7.89 * 25.83/7.89 * @param the type of elements maintained by this set 25.83/7.89 * 25.83/7.89 * @author Josh Bloch 25.83/7.89 * @author Neal Gafter 25.83/7.89 * @see Collection 25.83/7.89 * @see List 25.83/7.89 * @see SortedSet 25.83/7.89 * @see HashSet 25.83/7.89 * @see TreeSet 25.83/7.89 * @see AbstractSet 25.83/7.89 * @see Collections#singleton(java.lang.Object) 25.83/7.89 * @see Collections#EMPTY_SET 25.83/7.89 * @since 1.2 25.83/7.89 */ 25.83/7.89 25.83/7.89 public interface Set extends Collection { 25.83/7.89 // Query Operations 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns the number of elements in this set (its cardinality). If this 25.83/7.89 * set contains more than Integer.MAX_VALUE elements, returns 25.83/7.89 * Integer.MAX_VALUE. 25.83/7.89 * 25.83/7.89 * @return the number of elements in this set (its cardinality) 25.83/7.89 */ 25.83/7.89 int size(); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns true if this set contains no elements. 25.83/7.89 * 25.83/7.89 * @return true if this set contains no elements 25.83/7.89 */ 25.83/7.89 boolean isEmpty(); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns true if this set contains the specified element. 25.83/7.89 * More formally, returns true if and only if this set 25.83/7.89 * contains an element e such that 25.83/7.89 * (o==null ? e==null : o.equals(e)). 25.83/7.89 * 25.83/7.89 * @param o element whose presence in this set is to be tested 25.83/7.89 * @return true if this set contains the specified element 25.83/7.89 * @throws ClassCastException if the type of the specified element 25.83/7.89 * is incompatible with this set (optional) 25.83/7.89 * @throws NullPointerException if the specified element is null and this 25.83/7.89 * set does not permit null elements (optional) 25.83/7.89 */ 25.83/7.89 boolean contains(Object o); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns an iterator over the elements in this set. The elements are 25.83/7.89 * returned in no particular order (unless this set is an instance of some 25.83/7.89 * class that provides a guarantee). 25.83/7.89 * 25.83/7.89 * @return an iterator over the elements in this set 25.83/7.89 */ 25.83/7.89 Iterator iterator(); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns an array containing all of the elements in this set. 25.83/7.89 * If this set makes any guarantees as to what order its elements 25.83/7.89 * are returned by its iterator, this method must return the 25.83/7.89 * elements in the same order. 25.83/7.89 * 25.83/7.89 *

The returned array will be "safe" in that no references to it 25.83/7.89 * are maintained by this set. (In other words, this method must 25.83/7.89 * allocate a new array even if this set is backed by an array). 25.83/7.89 * The caller is thus free to modify the returned array. 25.83/7.89 * 25.83/7.89 *

This method acts as bridge between array-based and collection-based 25.83/7.89 * APIs. 25.83/7.89 * 25.83/7.89 * @return an array containing all the elements in this set 25.83/7.89 */ 25.83/7.89 Object[] toArray(); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns an array containing all of the elements in this set; the 25.83/7.89 * runtime type of the returned array is that of the specified array. 25.83/7.89 * If the set fits in the specified array, it is returned therein. 25.83/7.89 * Otherwise, a new array is allocated with the runtime type of the 25.83/7.89 * specified array and the size of this set. 25.83/7.89 * 25.83/7.89 *

If this set fits in the specified array with room to spare 25.83/7.89 * (i.e., the array has more elements than this set), the element in 25.83/7.89 * the array immediately following the end of the set is set to 25.83/7.89 * null. (This is useful in determining the length of this 25.83/7.89 * set only if the caller knows that this set does not contain 25.83/7.89 * any null elements.) 25.83/7.89 * 25.83/7.89 *

If this set makes any guarantees as to what order its elements 25.83/7.89 * are returned by its iterator, this method must return the elements 25.83/7.89 * in the same order. 25.83/7.89 * 25.83/7.89 *

Like the {@link #toArray()} method, this method acts as bridge between 25.83/7.89 * array-based and collection-based APIs. Further, this method allows 25.83/7.89 * precise control over the runtime type of the output array, and may, 25.83/7.89 * under certain circumstances, be used to save allocation costs. 25.83/7.89 * 25.83/7.89 *

Suppose x is a set known to contain only strings. 25.83/7.89 * The following code can be used to dump the set into a newly allocated 25.83/7.89 * array of String: 25.83/7.89 * 25.83/7.89 *

25.83/7.89	     *     String[] y = x.toArray(new String[0]);
25.83/7.89 * 25.83/7.89 * Note that toArray(new Object[0]) is identical in function to 25.83/7.89 * toArray(). 25.83/7.89 * 25.83/7.89 * @param a the array into which the elements of this set are to be 25.83/7.89 * stored, if it is big enough; otherwise, a new array of the same 25.83/7.89 * runtime type is allocated for this purpose. 25.83/7.89 * @return an array containing all the elements in this set 25.83/7.89 * @throws ArrayStoreException if the runtime type of the specified array 25.83/7.89 * is not a supertype of the runtime type of every element in this 25.83/7.89 * set 25.83/7.89 * @throws NullPointerException if the specified array is null 25.83/7.89 */ 25.83/7.89 T[] toArray(T[] a); 25.83/7.89 25.83/7.89 25.83/7.89 // Modification Operations 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Adds the specified element to this set if it is not already present 25.83/7.89 * (optional operation). More formally, adds the specified element 25.83/7.89 * e to this set if the set contains no element e2 25.83/7.89 * such that 25.83/7.89 * (e==null ? e2==null : e.equals(e2)). 25.83/7.89 * If this set already contains the element, the call leaves the set 25.83/7.89 * unchanged and returns false. In combination with the 25.83/7.89 * restriction on constructors, this ensures that sets never contain 25.83/7.89 * duplicate elements. 25.83/7.89 * 25.83/7.89 *

The stipulation above does not imply that sets must accept all 25.83/7.89 * elements; sets may refuse to add any particular element, including 25.83/7.89 * null, and throw an exception, as described in the 25.83/7.89 * specification for {@link Collection#add Collection.add}. 25.83/7.89 * Individual set implementations should clearly document any 25.83/7.89 * restrictions on the elements that they may contain. 25.83/7.89 * 25.83/7.89 * @param e element to be added to this set 25.83/7.89 * @return true if this set did not already contain the specified 25.83/7.89 * element 25.83/7.89 * @throws UnsupportedOperationException if the add operation 25.83/7.89 * is not supported by this set 25.83/7.89 * @throws ClassCastException if the class of the specified element 25.83/7.89 * prevents it from being added to this set 25.83/7.89 * @throws NullPointerException if the specified element is null and this 25.83/7.89 * set does not permit null elements 25.83/7.89 * @throws IllegalArgumentException if some property of the specified element 25.83/7.89 * prevents it from being added to this set 25.83/7.89 */ 25.83/7.89 boolean add(E e); 25.83/7.89 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Removes the specified element from this set if it is present 25.83/7.89 * (optional operation). More formally, removes an element e 25.83/7.89 * such that 25.83/7.89 * (o==null ? e==null : o.equals(e)), if 25.83/7.89 * this set contains such an element. Returns true if this set 25.83/7.89 * contained the element (or equivalently, if this set changed as a 25.83/7.89 * result of the call). (This set will not contain the element once the 25.83/7.89 * call returns.) 25.83/7.89 * 25.83/7.89 * @param o object to be removed from this set, if present 25.83/7.89 * @return true if this set contained the specified element 25.83/7.89 * @throws ClassCastException if the type of the specified element 25.83/7.89 * is incompatible with this set (optional) 25.83/7.89 * @throws NullPointerException if the specified element is null and this 25.83/7.89 * set does not permit null elements (optional) 25.83/7.89 * @throws UnsupportedOperationException if the remove operation 25.83/7.89 * is not supported by this set 25.83/7.89 */ 25.83/7.89 boolean remove(Object o); 25.83/7.89 25.83/7.89 25.83/7.89 // Bulk Operations 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns true if this set contains all of the elements of the 25.83/7.89 * specified collection. If the specified collection is also a set, this 25.83/7.89 * method returns true if it is a subset of this set. 25.83/7.89 * 25.83/7.89 * @param c collection to be checked for containment in this set 25.83/7.89 * @return true if this set contains all of the elements of the 25.83/7.89 * specified collection 25.83/7.89 * @throws ClassCastException if the types of one or more elements 25.83/7.89 * in the specified collection are incompatible with this 25.83/7.89 * set (optional) 25.83/7.89 * @throws NullPointerException if the specified collection contains one 25.83/7.89 * or more null elements and this set does not permit null 25.83/7.89 * elements (optional), or if the specified collection is null 25.83/7.89 * @see #contains(Object) 25.83/7.89 */ 25.83/7.89 boolean containsAll(Collection c); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Adds all of the elements in the specified collection to this set if 25.83/7.89 * they're not already present (optional operation). If the specified 25.83/7.89 * collection is also a set, the addAll operation effectively 25.83/7.89 * modifies this set so that its value is the union of the two 25.83/7.89 * sets. The behavior of this operation is undefined if the specified 25.83/7.89 * collection is modified while the operation is in progress. 25.83/7.89 * 25.83/7.89 * @param c collection containing elements to be added to this set 25.83/7.89 * @return true if this set changed as a result of the call 25.83/7.89 * 25.83/7.89 * @throws UnsupportedOperationException if the addAll operation 25.83/7.89 * is not supported by this set 25.83/7.89 * @throws ClassCastException if the class of an element of the 25.83/7.89 * specified collection prevents it from being added to this set 25.83/7.89 * @throws NullPointerException if the specified collection contains one 25.83/7.89 * or more null elements and this set does not permit null 25.83/7.89 * elements, or if the specified collection is null 25.83/7.89 * @throws IllegalArgumentException if some property of an element of the 25.83/7.89 * specified collection prevents it from being added to this set 25.83/7.89 * @see #add(Object) 25.83/7.89 */ 25.83/7.89 boolean addAll(Collection c); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Retains only the elements in this set that are contained in the 25.83/7.89 * specified collection (optional operation). In other words, removes 25.83/7.89 * from this set all of its elements that are not contained in the 25.83/7.89 * specified collection. If the specified collection is also a set, this 25.83/7.89 * operation effectively modifies this set so that its value is the 25.83/7.89 * intersection of the two sets. 25.83/7.89 * 25.83/7.89 * @param c collection containing elements to be retained in this set 25.83/7.89 * @return true if this set changed as a result of the call 25.83/7.89 * @throws UnsupportedOperationException if the retainAll operation 25.83/7.89 * is not supported by this set 25.83/7.89 * @throws ClassCastException if the class of an element of this set 25.83/7.89 * is incompatible with the specified collection (optional) 25.83/7.89 * @throws NullPointerException if this set contains a null element and the 25.83/7.89 * specified collection does not permit null elements (optional), 25.83/7.89 * or if the specified collection is null 25.83/7.89 * @see #remove(Object) 25.83/7.89 */ 25.83/7.89 boolean retainAll(Collection c); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Removes from this set all of its elements that are contained in the 25.83/7.89 * specified collection (optional operation). If the specified 25.83/7.89 * collection is also a set, this operation effectively modifies this 25.83/7.89 * set so that its value is the asymmetric set difference of 25.83/7.89 * the two sets. 25.83/7.89 * 25.83/7.89 * @param c collection containing elements to be removed from this set 25.83/7.89 * @return true if this set changed as a result of the call 25.83/7.89 * @throws UnsupportedOperationException if the removeAll operation 25.83/7.89 * is not supported by this set 25.83/7.89 * @throws ClassCastException if the class of an element of this set 25.83/7.89 * is incompatible with the specified collection (optional) 25.83/7.89 * @throws NullPointerException if this set contains a null element and the 25.83/7.89 * specified collection does not permit null elements (optional), 25.83/7.89 * or if the specified collection is null 25.83/7.89 * @see #remove(Object) 25.83/7.89 * @see #contains(Object) 25.83/7.89 */ 25.83/7.89 boolean removeAll(Collection c); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Removes all of the elements from this set (optional operation). 25.83/7.89 * The set will be empty after this call returns. 25.83/7.89 * 25.83/7.89 * @throws UnsupportedOperationException if the clear method 25.83/7.89 * is not supported by this set 25.83/7.89 */ 25.83/7.89 void clear(); 25.83/7.89 25.83/7.89 25.83/7.89 // Comparison and hashing 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Compares the specified object with this set for equality. Returns 25.83/7.89 * true if the specified object is also a set, the two sets 25.83/7.89 * have the same size, and every member of the specified set is 25.83/7.89 * contained in this set (or equivalently, every member of this set is 25.83/7.89 * contained in the specified set). This definition ensures that the 25.83/7.89 * equals method works properly across different implementations of the 25.83/7.89 * set interface. 25.83/7.89 * 25.83/7.89 * @param o object to be compared for equality with this set 25.83/7.89 * @return true if the specified object is equal to this set 25.83/7.89 */ 25.83/7.89 boolean equals(Object o); 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Returns the hash code value for this set. The hash code of a set is 25.83/7.89 * defined to be the sum of the hash codes of the elements in the set, 25.83/7.89 * where the hash code of a null element is defined to be zero. 25.83/7.89 * This ensures that s1.equals(s2) implies that 25.83/7.89 * s1.hashCode()==s2.hashCode() for any two sets s1 25.83/7.89 * and s2, as required by the general contract of 25.83/7.89 * {@link Object#hashCode}. 25.83/7.89 * 25.83/7.89 * @return the hash code value for this set 25.83/7.89 * @see Object#equals(Object) 25.83/7.89 * @see Set#equals(Object) 25.83/7.89 */ 25.83/7.89 int hashCode(); 25.83/7.89 } 25.83/7.89 25.83/7.89 25.83/7.89 /* 25.83/7.89 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 25.83/7.89 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 25.83/7.89 * 25.83/7.89 * This code is free software; you can redistribute it and/or modify it 25.83/7.89 * under the terms of the GNU General Public License version 2 only, as 25.83/7.89 * published by the Free Software Foundation. Sun designates this 25.83/7.89 * particular file as subject to the "Classpath" exception as provided 25.83/7.89 * by Sun in the LICENSE file that accompanied this code. 25.83/7.89 * 25.83/7.89 * This code is distributed in the hope that it will be useful, but WITHOUT 25.83/7.89 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 25.83/7.89 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 25.83/7.89 * version 2 for more details (a copy is included in the LICENSE file that 25.83/7.89 * accompanied this code). 25.83/7.89 * 25.83/7.89 * You should have received a copy of the GNU General Public License version 25.83/7.89 * 2 along with this work; if not, write to the Free Software Foundation, 25.83/7.89 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 25.83/7.89 * 25.83/7.89 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 25.83/7.89 * CA 95054 USA or visit www.sun.com if you need additional information or 25.83/7.89 * have any questions. 25.83/7.89 */ 25.83/7.89 25.83/7.89 package javaUtilEx; 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Thrown to indicate that the requested operation is not supported.

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

Note that the detail message associated with cause is 25.83/7.89 * not automatically incorporated in this exception's detail 25.83/7.89 * message. 25.83/7.89 * 25.83/7.89 * @param message the detail message (which is saved for later retrieval 25.83/7.89 * by the {@link Throwable#getMessage()} method). 25.83/7.89 * @param cause the cause (which is saved for later retrieval by the 25.83/7.89 * {@link Throwable#getCause()} method). (A null value 25.83/7.89 * is permitted, and indicates that the cause is nonexistent or 25.83/7.89 * unknown.) 25.83/7.89 * @since 1.5 25.83/7.89 */ 25.83/7.89 public UnsupportedOperationException(String message, Throwable cause) { 25.83/7.89 super(message, cause); 25.83/7.89 } 25.83/7.89 25.83/7.89 /** 25.83/7.89 * Constructs a new exception with the specified cause and a detail 25.83/7.89 * message of (cause==null ? null : cause.toString()) (which 25.83/7.89 * typically contains the class and detail message of cause). 25.83/7.89 * This constructor is useful for exceptions that are little more than 25.83/7.89 * wrappers for other throwables (for example, {@link 25.83/7.89 * java.security.PrivilegedActionException}). 25.83/7.89 * 25.83/7.89 * @param cause the cause (which is saved for later retrieval by the 25.83/7.89 * {@link Throwable#getCause()} method). (A null value is 25.83/7.89 * permitted, and indicates that the cause is nonexistent or 25.83/7.89 * unknown.) 25.83/7.89 * @since 1.5 25.83/7.89 */ 25.83/7.89 public UnsupportedOperationException(Throwable cause) { 25.83/7.89 super(cause); 25.83/7.89 } 25.83/7.89 25.83/7.89 static final long serialVersionUID = -1242599979055084673L; 25.83/7.89 } 25.83/7.89 25.83/7.89 25.83/7.89 25.83/7.89 ---------------------------------------- 25.83/7.89 25.83/7.89 (3) JBCToGraph (EQUIVALENT) 25.83/7.89 Constructed TerminationGraph. 25.83/7.89 ---------------------------------------- 25.83/7.89 25.83/7.89 (4) 25.83/7.89 Obligation: 25.83/7.89 Termination Graph based on JBC Program: 25.83/7.89 javaUtilEx.juHashMapCreateSize.main([Ljava/lang/String;)V: Graph of 129 nodes with 0 SCCs. 25.83/7.89 25.83/7.89 25.83/7.89 25.83/7.89 javaUtilEx.juHashMapCreateSize.createMap(I)LjavaUtilEx/HashMap;: Graph of 248 nodes with 1 SCC. 25.83/7.89 25.83/7.89 25.83/7.89 25.83/7.89 javaUtilEx.HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;: Graph of 493 nodes with 2 SCCs. 25.83/7.89 25.83/7.89 25.83/7.89 25.83/7.89 javaUtilEx.Content.hashCode()I: Graph of 6 nodes with 0 SCCs. 25.83/7.89 25.83/7.89 25.83/7.89 25.83/7.89 javaUtilEx.Content.equals(Ljava/lang/Object;)Z: Graph of 31 nodes with 0 SCCs. 25.83/7.89 25.83/7.89 25.83/7.89 25.83/7.89 25.83/7.89 25.83/7.89 ---------------------------------------- 25.83/7.89 25.83/7.89 (5) TerminationGraphToSCCProof (SOUND) 25.83/7.89 Splitted TerminationGraph to 3 SCCss. 25.83/7.89 ---------------------------------------- 25.83/7.89 25.83/7.89 (6) 25.83/7.89 Complex Obligation (AND) 25.83/7.89 25.83/7.89 ---------------------------------------- 25.83/7.89 25.83/7.89 (7) 25.83/7.89 Obligation: 25.83/7.89 SCC of termination graph based on JBC Program. 25.83/7.89 SCC contains nodes from the following methods: javaUtilEx.HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 25.83/7.89 SCC calls the following helper methods: 25.83/7.89 Performed SCC analyses: 25.83/7.89 *Used field analysis yielded the following read fields: 25.83/7.89 *javaUtilEx.HashMap$Entry: [next, hash] 25.83/7.89 *Marker field analysis yielded the following relations that could be markers: 25.83/7.89 25.83/7.89 ---------------------------------------- 25.83/7.89 25.83/7.89 (8) SCCToIRSProof (SOUND) 25.83/7.89 Transformed FIGraph SCCs to intTRSs. Log: 25.83/7.89 Generated rules. Obtained 58 IRulesP rules: 25.83/7.89 f9277_0_transfer_Load(EOS(STATIC_9277), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, i3909) -> f9278_0_transfer_ArrayLength(EOS(STATIC_9278), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, i3909, java.lang.Object(ARRAY(i3908))) :|: TRUE 25.83/7.89 f9278_0_transfer_ArrayLength(EOS(STATIC_9278), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, i3909, java.lang.Object(ARRAY(i3908))) -> f9279_0_transfer_GE(EOS(STATIC_9279), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, i3909, i3908) :|: i3908 >= 0 25.83/7.89 f9279_0_transfer_GE(EOS(STATIC_9279), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, i3909, i3908) -> f9281_0_transfer_GE(EOS(STATIC_9281), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, i3909, i3908) :|: i3909 < i3908 25.83/7.89 f9281_0_transfer_GE(EOS(STATIC_9281), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, i3909, i3908) -> f9283_0_transfer_Load(EOS(STATIC_9283), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909) :|: i3909 < i3908 25.83/7.89 f9283_0_transfer_Load(EOS(STATIC_9283), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909) -> f9285_0_transfer_Load(EOS(STATIC_9285), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(ARRAY(i3908))) :|: TRUE 25.83/7.89 f9285_0_transfer_Load(EOS(STATIC_9285), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(ARRAY(i3908))) -> f9287_0_transfer_ArrayAccess(EOS(STATIC_9287), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(ARRAY(i3908)), i3909) :|: TRUE 25.83/7.89 f9287_0_transfer_ArrayAccess(EOS(STATIC_9287), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(ARRAY(i3908)), i3909) -> f9289_0_transfer_ArrayAccess(EOS(STATIC_9289), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(ARRAY(i3908)), i3909) :|: TRUE 25.83/7.89 f9289_0_transfer_ArrayAccess(EOS(STATIC_9289), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(ARRAY(i3908)), i3909) -> f9292_0_transfer_Store(EOS(STATIC_9292), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, o4238) :|: i3909 < i3908 25.83/7.89 f9292_0_transfer_Store(EOS(STATIC_9292), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, o4238) -> f9295_0_transfer_Load(EOS(STATIC_9295), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, o4238) :|: TRUE 25.83/7.89 f9295_0_transfer_Load(EOS(STATIC_9295), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, o4238) -> f9297_0_transfer_NULL(EOS(STATIC_9297), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, o4238, o4238) :|: TRUE 25.83/7.89 f9297_0_transfer_NULL(EOS(STATIC_9297), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4240sub), java.lang.Object(o4240sub)) -> f9300_0_transfer_NULL(EOS(STATIC_9300), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4240sub), java.lang.Object(o4240sub)) :|: TRUE 25.83/7.89 f9297_0_transfer_NULL(EOS(STATIC_9297), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, NULL, NULL) -> f9301_0_transfer_NULL(EOS(STATIC_9301), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, NULL, NULL) :|: TRUE 25.83/7.89 f9300_0_transfer_NULL(EOS(STATIC_9300), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4240sub), java.lang.Object(o4240sub)) -> f9304_0_transfer_Load(EOS(STATIC_9304), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4240sub)) :|: TRUE 25.83/7.89 f9304_0_transfer_Load(EOS(STATIC_9304), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4240sub)) -> f9307_0_transfer_Load(EOS(STATIC_9307), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4240sub), java.lang.Object(ARRAY(i3908))) :|: TRUE 25.83/7.89 f9307_0_transfer_Load(EOS(STATIC_9307), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4240sub), java.lang.Object(ARRAY(i3908))) -> f9311_0_transfer_ConstantStackPush(EOS(STATIC_9311), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4240sub), java.lang.Object(ARRAY(i3908)), i3909) :|: TRUE 25.83/7.89 f9311_0_transfer_ConstantStackPush(EOS(STATIC_9311), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4240sub), java.lang.Object(ARRAY(i3908)), i3909) -> f9315_0_transfer_ArrayAccess(EOS(STATIC_9315), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4240sub), java.lang.Object(ARRAY(i3908)), i3909, NULL) :|: TRUE 25.83/7.89 f9315_0_transfer_ArrayAccess(EOS(STATIC_9315), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4240sub), java.lang.Object(ARRAY(i3908)), i3909, NULL) -> f9317_0_transfer_ArrayAccess(EOS(STATIC_9317), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4240sub), java.lang.Object(ARRAY(i3908)), i3909, NULL) :|: TRUE 25.83/7.89 f9317_0_transfer_ArrayAccess(EOS(STATIC_9317), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4240sub), java.lang.Object(ARRAY(i3908)), i3909, NULL) -> f9321_0_transfer_Load(EOS(STATIC_9321), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4240put)) :|: i3909 < i3908 25.83/7.89 f9321_0_transfer_Load(EOS(STATIC_9321), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4240sub)) -> f9325_0_transfer_FieldAccess(EOS(STATIC_9325), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4240sub), java.lang.Object(o4240sub)) :|: TRUE 25.83/7.89 f9325_0_transfer_FieldAccess(EOS(STATIC_9325), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920))) -> f9327_0_transfer_FieldAccess(EOS(STATIC_9327), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920))) :|: TRUE 25.83/7.89 f9327_0_transfer_FieldAccess(EOS(STATIC_9327), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920))) -> f9331_0_transfer_Store(EOS(STATIC_9331), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252) :|: TRUE 25.83/7.89 f9331_0_transfer_Store(EOS(STATIC_9331), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252) -> f9334_0_transfer_Load(EOS(STATIC_9334), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252) :|: TRUE 25.83/7.89 f9334_0_transfer_Load(EOS(STATIC_9334), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252) -> f9336_0_transfer_FieldAccess(EOS(STATIC_9336), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920))) :|: TRUE 25.83/7.89 f9336_0_transfer_FieldAccess(EOS(STATIC_9336), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920))) -> f9339_0_transfer_Load(EOS(STATIC_9339), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3920) :|: TRUE 25.83/7.89 f9339_0_transfer_Load(EOS(STATIC_9339), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3920) -> f9342_0_transfer_InvokeMethod(EOS(STATIC_9342), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3920, i3750) :|: TRUE 25.83/7.89 f9342_0_transfer_InvokeMethod(EOS(STATIC_9342), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3920, i3750) -> f9344_0_indexFor_Load(EOS(STATIC_9344), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3920, i3750) :|: TRUE 25.83/7.89 f9344_0_indexFor_Load(EOS(STATIC_9344), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3920, i3750) -> f9349_0_indexFor_Load(EOS(STATIC_9349), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3750, i3920) :|: TRUE 25.83/7.89 f9349_0_indexFor_Load(EOS(STATIC_9349), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3750, i3920) -> f9351_0_indexFor_ConstantStackPush(EOS(STATIC_9351), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3920, i3750) :|: TRUE 25.83/7.89 f9351_0_indexFor_ConstantStackPush(EOS(STATIC_9351), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3920, i3750) -> f9354_0_indexFor_IntArithmetic(EOS(STATIC_9354), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3920, i3750, 1) :|: TRUE 25.83/7.89 f9354_0_indexFor_IntArithmetic(EOS(STATIC_9354), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3920, i3750, matching1) -> f9357_0_indexFor_IntArithmetic(EOS(STATIC_9357), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3920, i3750 - 1) :|: i3750 >= 0 && matching1 = 1 25.83/7.89 f9357_0_indexFor_IntArithmetic(EOS(STATIC_9357), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3920, i3937) -> f9359_0_indexFor_Return(EOS(STATIC_9359), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3938) :|: TRUE 25.83/7.89 f9359_0_indexFor_Return(EOS(STATIC_9359), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3938) -> f9362_0_transfer_Store(EOS(STATIC_9362), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3938) :|: TRUE 25.83/7.89 f9362_0_transfer_Store(EOS(STATIC_9362), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3938) -> f9365_0_transfer_Load(EOS(STATIC_9365), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3938) :|: TRUE 25.83/7.89 f9365_0_transfer_Load(EOS(STATIC_9365), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3938) -> f9368_0_transfer_Load(EOS(STATIC_9368), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3938, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920))) :|: TRUE 25.83/7.89 f9368_0_transfer_Load(EOS(STATIC_9368), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3938, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920))) -> f9371_0_transfer_Load(EOS(STATIC_9371), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3938, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), java.lang.Object(ARRAY(i3750))) :|: TRUE 25.83/7.89 f9371_0_transfer_Load(EOS(STATIC_9371), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3938, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), java.lang.Object(ARRAY(i3750))) -> f9374_0_transfer_ArrayAccess(EOS(STATIC_9374), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3938, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), java.lang.Object(ARRAY(i3750)), i3938) :|: TRUE 25.83/7.89 f9374_0_transfer_ArrayAccess(EOS(STATIC_9374), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3938, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), java.lang.Object(ARRAY(i3750)), i3938) -> f9377_0_transfer_ArrayAccess(EOS(STATIC_9377), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3938, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), java.lang.Object(ARRAY(i3750)), i3938) :|: TRUE 25.83/7.89 f9377_0_transfer_ArrayAccess(EOS(STATIC_9377), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3938, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), java.lang.Object(ARRAY(i3750)), i3938) -> f9381_0_transfer_FieldAccess(EOS(STATIC_9381), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3938, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4272) :|: i3938 < i3750 25.83/7.89 f9381_0_transfer_FieldAccess(EOS(STATIC_9381), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4252, i3938, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252, i3920)), o4272) -> f9385_0_transfer_Load(EOS(STATIC_9385), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4272, i3920)), o4252, i3938) :|: TRUE 25.83/7.89 f9385_0_transfer_Load(EOS(STATIC_9385), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4272, i3920)), o4252, i3938) -> f9387_0_transfer_Load(EOS(STATIC_9387), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4272, i3920)), o4252, i3938, java.lang.Object(ARRAY(i3750))) :|: TRUE 25.83/7.89 f9387_0_transfer_Load(EOS(STATIC_9387), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4272, i3920)), o4252, i3938, java.lang.Object(ARRAY(i3750))) -> f9391_0_transfer_Load(EOS(STATIC_9391), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4272, i3920)), o4252, java.lang.Object(ARRAY(i3750)), i3938) :|: TRUE 25.83/7.89 f9391_0_transfer_Load(EOS(STATIC_9391), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4272, i3920)), o4252, java.lang.Object(ARRAY(i3750)), i3938) -> f9394_0_transfer_ArrayAccess(EOS(STATIC_9394), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, o4252, java.lang.Object(ARRAY(i3750)), i3938, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4272, i3920))) :|: TRUE 25.83/7.89 f9394_0_transfer_ArrayAccess(EOS(STATIC_9394), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, o4252, java.lang.Object(ARRAY(i3750)), i3938, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4272, i3920))) -> f9396_0_transfer_ArrayAccess(EOS(STATIC_9396), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, o4252, java.lang.Object(ARRAY(i3750)), i3938, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4272, i3920))) :|: TRUE 25.83/7.89 f9396_0_transfer_ArrayAccess(EOS(STATIC_9396), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, o4252, java.lang.Object(ARRAY(i3750)), i3938, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4272, i3920))) -> f9400_0_transfer_Load(EOS(STATIC_9400), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, o4252) :|: i3938 < i3750 25.83/7.89 f9400_0_transfer_Load(EOS(STATIC_9400), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, o4252) -> f9404_0_transfer_Store(EOS(STATIC_9404), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, o4252) :|: TRUE 25.83/7.89 f9404_0_transfer_Store(EOS(STATIC_9404), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, o4252) -> f9405_0_transfer_Load(EOS(STATIC_9405), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, o4252) :|: TRUE 25.83/7.89 f9405_0_transfer_Load(EOS(STATIC_9405), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, o4252) -> f9408_0_transfer_NONNULL(EOS(STATIC_9408), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, o4252, o4252) :|: TRUE 25.83/7.89 f9408_0_transfer_NONNULL(EOS(STATIC_9408), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4295sub), java.lang.Object(o4295sub)) -> f9411_0_transfer_NONNULL(EOS(STATIC_9411), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4295sub), java.lang.Object(o4295sub)) :|: TRUE 25.83/7.89 f9408_0_transfer_NONNULL(EOS(STATIC_9408), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, NULL, NULL) -> f9412_0_transfer_NONNULL(EOS(STATIC_9412), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, NULL, NULL) :|: TRUE 25.83/7.89 f9411_0_transfer_NONNULL(EOS(STATIC_9411), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4295sub), java.lang.Object(o4295sub)) -> f9413_0_transfer_Load(EOS(STATIC_9413), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4295sub)) :|: TRUE 25.83/7.89 f9413_0_transfer_Load(EOS(STATIC_9413), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4295sub)) -> f9321_0_transfer_Load(EOS(STATIC_9321), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, java.lang.Object(o4295sub)) :|: TRUE 25.83/7.89 f9412_0_transfer_NONNULL(EOS(STATIC_9412), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, NULL, NULL) -> f9414_0_transfer_Inc(EOS(STATIC_9414), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909) :|: TRUE 25.83/7.89 f9414_0_transfer_Inc(EOS(STATIC_9414), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909) -> f9417_0_transfer_JMP(EOS(STATIC_9417), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909 + 1) :|: TRUE 25.83/7.89 f9417_0_transfer_JMP(EOS(STATIC_9417), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3956) -> f9420_0_transfer_Load(EOS(STATIC_9420), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3956) :|: TRUE 25.83/7.89 f9420_0_transfer_Load(EOS(STATIC_9420), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3956) -> f9276_0_transfer_Load(EOS(STATIC_9276), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3956) :|: TRUE 25.83/7.89 f9276_0_transfer_Load(EOS(STATIC_9276), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909) -> f9277_0_transfer_Load(EOS(STATIC_9277), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, i3909) :|: TRUE 25.83/7.89 f9301_0_transfer_NULL(EOS(STATIC_9301), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909, NULL, NULL) -> f9305_0_transfer_Inc(EOS(STATIC_9305), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909) :|: TRUE 25.83/7.89 f9305_0_transfer_Inc(EOS(STATIC_9305), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909) -> f9414_0_transfer_Inc(EOS(STATIC_9414), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750, java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3750)), java.lang.Object(ARRAY(i3908)), i3750, i3909) :|: TRUE 25.83/7.89 Combined rules. Obtained 4 IRulesP rules: 25.83/7.89 f9277_0_transfer_Load(EOS(STATIC_9277), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750:0, java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3750:0, i3909:0, i3909:0) -> f9408_0_transfer_NONNULL(EOS(STATIC_9408), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750:0, java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3750:0, i3909:0, o4252:0, o4252:0) :|: i3908:0 > -1 && i3909:0 < i3908:0 && i3750:0 > -1 && i3938:0 < i3750:0 25.83/7.89 f9408_0_transfer_NONNULL(EOS(STATIC_9408), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750:0, java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3750:0, i3909:0, NULL, NULL) -> f9277_0_transfer_Load(EOS(STATIC_9277), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750:0, java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3750:0, i3909:0 + 1, i3909:0 + 1) :|: TRUE 25.83/7.89 f9408_0_transfer_NONNULL(EOS(STATIC_9408), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750:0, java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3750:0, i3909:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252:0, i3920:0)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4252:0, i3920:0))) -> f9408_0_transfer_NONNULL(EOS(STATIC_9408), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750:0, java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3750:0, i3909:0, o4252:0, o4252:0) :|: i3750:0 > -1 && i3938:0 < i3750:0 25.83/7.89 f9277_0_transfer_Load(EOS(STATIC_9277), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750:0, java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3750:0, i3909:0, i3909:0) -> f9277_0_transfer_Load(EOS(STATIC_9277), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3750:0, java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3750:0, i3909:0 + 1, i3909:0 + 1) :|: i3908:0 > -1 && i3909:0 < i3908:0 25.83/7.89 Filtered constant ground arguments: 25.83/7.89 f9277_0_transfer_Load(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10) -> f9277_0_transfer_Load(x4, x5, x6, x7, x8, x9, x10) 25.83/7.89 f9408_0_transfer_NONNULL(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) -> f9408_0_transfer_NONNULL(x4, x5, x6, x7, x8, x9, x10, x11) 25.83/7.89 javaUtilEx.AbstractMap(x1) -> javaUtilEx.AbstractMap 25.83/7.89 javaUtilEx.HashMap$Entry(x1, x2, x3) -> javaUtilEx.HashMap$Entry(x2, x3) 25.83/7.89 javaUtilEx.HashMap(x1) -> javaUtilEx.HashMap 25.83/7.89 Filtered duplicate arguments: 25.83/7.89 f9277_0_transfer_Load(x1, x2, x3, x4, x5, x6, x7) -> f9277_0_transfer_Load(x3, x4, x7) 25.83/7.89 f9408_0_transfer_NONNULL(x1, x2, x3, x4, x5, x6, x7, x8) -> f9408_0_transfer_NONNULL(x3, x4, x6, x8) 25.83/7.89 Filtered unneeded arguments: 25.83/7.89 javaUtilEx.HashMap$Entry(x1, x2) -> javaUtilEx.HashMap$Entry(x1) 25.83/7.89 Finished conversion. Obtained 4 rules.P rules: 25.83/7.89 f9277_0_transfer_Load(java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3909:0, i3750:0, i3908:0) -> f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3909:0, o4252:0, i3750:0, i3908:0) :|: i3909:0 < i3908:0 && i3908:0 > -1 && i3938:0 < i3750:0 && i3750:0 > -1 25.83/7.89 f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3909:0, NULL, i3750:0, i3908:0) -> f9277_0_transfer_Load(java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3909:0 + 1, i3750:0, i3908:0) :|: TRUE 25.83/7.89 f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3909:0, java.lang.Object(javaUtilEx.HashMap$Entry(o4252:0)), i3750:0, i3908:0) -> f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3909:0, o4252:0, i3750:0, i3908:0) :|: i3750:0 > -1 && i3938:0 < i3750:0 25.83/7.89 f9277_0_transfer_Load(java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3909:0, i3750:0, i3908:0) -> f9277_0_transfer_Load(java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3909:0 + 1, i3750:0, i3908:0) :|: i3908:0 > -1 && i3909:0 < i3908:0 25.83/7.89 25.83/7.89 ---------------------------------------- 25.83/7.89 25.83/7.89 (9) 25.83/7.89 Obligation: 25.83/7.89 Rules: 25.83/7.89 f9277_0_transfer_Load(java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3909:0, i3750:0, i3908:0) -> f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3909:0, o4252:0, i3750:0, i3908:0) :|: i3909:0 < i3908:0 && i3908:0 > -1 && i3938:0 < i3750:0 && i3750:0 > -1 25.83/7.89 f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2, NULL, x, x1) -> f9277_0_transfer_Load(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2 + 1, x, x1) :|: TRUE 25.83/7.89 f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3)), java.lang.Object(ARRAY(x4)), x5, java.lang.Object(javaUtilEx.HashMap$Entry(x6)), x3, x4) -> f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3)), java.lang.Object(ARRAY(x4)), x5, x6, x3, x4) :|: x3 > -1 && x7 < x3 25.83/7.89 f9277_0_transfer_Load(java.lang.Object(ARRAY(x8)), java.lang.Object(ARRAY(x9)), x10, x8, x9) -> f9277_0_transfer_Load(java.lang.Object(ARRAY(x8)), java.lang.Object(ARRAY(x9)), x10 + 1, x8, x9) :|: x9 > -1 && x10 < x9 25.83/7.89 25.83/7.89 ---------------------------------------- 25.83/7.89 25.83/7.89 (10) IRSFormatTransformerProof (EQUIVALENT) 25.83/7.89 Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). 25.83/7.89 ---------------------------------------- 25.83/7.89 25.83/7.89 (11) 25.83/7.89 Obligation: 25.83/7.89 Rules: 25.83/7.89 f9277_0_transfer_Load(java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3909:0, i3750:0, i3908:0) -> f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3909:0, o4252:0, i3750:0, i3908:0) :|: i3909:0 < i3908:0 && i3908:0 > -1 && i3938:0 < i3750:0 && i3750:0 > -1 25.83/7.89 f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2, NULL, x, x1) -> f9277_0_transfer_Load(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), arith, x, x1) :|: TRUE && arith = x2 + 1 25.83/7.89 f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3)), java.lang.Object(ARRAY(x4)), x5, java.lang.Object(javaUtilEx.HashMap$Entry(x6)), x3, x4) -> f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3)), java.lang.Object(ARRAY(x4)), x5, x6, x3, x4) :|: x3 > -1 && x7 < x3 25.83/7.89 f9277_0_transfer_Load(java.lang.Object(ARRAY(x11)), java.lang.Object(ARRAY(x12)), x13, x11, x12) -> f9277_0_transfer_Load(java.lang.Object(ARRAY(x11)), java.lang.Object(ARRAY(x12)), x14, x11, x12) :|: x12 > -1 && x13 < x12 && x14 = x13 + 1 25.83/7.89 25.83/7.89 ---------------------------------------- 25.83/7.89 25.83/7.89 (12) IRSwTTerminationDigraphProof (EQUIVALENT) 25.83/7.89 Constructed termination digraph! 25.83/7.89 Nodes: 25.83/7.89 (1) f9277_0_transfer_Load(java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3909:0, i3750:0, i3908:0) -> f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3909:0, o4252:0, i3750:0, i3908:0) :|: i3909:0 < i3908:0 && i3908:0 > -1 && i3938:0 < i3750:0 && i3750:0 > -1 25.83/7.89 (2) f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2, NULL, x, x1) -> f9277_0_transfer_Load(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), arith, x, x1) :|: TRUE && arith = x2 + 1 25.83/7.89 (3) f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3)), java.lang.Object(ARRAY(x4)), x5, java.lang.Object(javaUtilEx.HashMap$Entry(x6)), x3, x4) -> f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3)), java.lang.Object(ARRAY(x4)), x5, x6, x3, x4) :|: x3 > -1 && x7 < x3 25.83/7.89 (4) f9277_0_transfer_Load(java.lang.Object(ARRAY(x11)), java.lang.Object(ARRAY(x12)), x13, x11, x12) -> f9277_0_transfer_Load(java.lang.Object(ARRAY(x11)), java.lang.Object(ARRAY(x12)), x14, x11, x12) :|: x12 > -1 && x13 < x12 && x14 = x13 + 1 25.83/7.89 25.83/7.89 Arcs: 25.83/7.89 (1) -> (2), (3) 25.83/7.89 (2) -> (1), (4) 25.83/7.89 (3) -> (2), (3) 25.83/7.89 (4) -> (1), (4) 25.83/7.89 25.83/7.89 This digraph is fully evaluated! 25.83/7.89 ---------------------------------------- 25.83/7.89 25.83/7.89 (13) 25.83/7.89 Obligation: 25.83/7.89 25.83/7.89 Termination digraph: 25.83/7.89 Nodes: 25.83/7.89 (1) f9277_0_transfer_Load(java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3909:0, i3750:0, i3908:0) -> f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(i3750:0)), java.lang.Object(ARRAY(i3908:0)), i3909:0, o4252:0, i3750:0, i3908:0) :|: i3909:0 < i3908:0 && i3908:0 > -1 && i3938:0 < i3750:0 && i3750:0 > -1 25.83/7.89 (2) f9277_0_transfer_Load(java.lang.Object(ARRAY(x11)), java.lang.Object(ARRAY(x12)), x13, x11, x12) -> f9277_0_transfer_Load(java.lang.Object(ARRAY(x11)), java.lang.Object(ARRAY(x12)), x14, x11, x12) :|: x12 > -1 && x13 < x12 && x14 = x13 + 1 25.83/7.89 (3) f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2, NULL, x, x1) -> f9277_0_transfer_Load(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), arith, x, x1) :|: TRUE && arith = x2 + 1 25.83/7.89 (4) f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3)), java.lang.Object(ARRAY(x4)), x5, java.lang.Object(javaUtilEx.HashMap$Entry(x6)), x3, x4) -> f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3)), java.lang.Object(ARRAY(x4)), x5, x6, x3, x4) :|: x3 > -1 && x7 < x3 25.83/7.89 25.83/7.89 Arcs: 25.83/7.89 (1) -> (3), (4) 25.83/7.89 (2) -> (1), (2) 25.83/7.89 (3) -> (1), (2) 25.83/7.89 (4) -> (3), (4) 25.83/7.89 25.83/7.89 This digraph is fully evaluated! 25.83/7.89 25.83/7.89 ---------------------------------------- 25.83/7.89 25.83/7.89 (14) IntTRSCompressionProof (EQUIVALENT) 25.83/7.89 Compressed rules. 25.83/7.89 ---------------------------------------- 25.83/7.89 25.83/7.89 (15) 25.83/7.89 Obligation: 25.83/7.89 Rules: 25.83/7.89 f9277_0_transfer_Load(java.lang.Object(ARRAY(x11:0)), java.lang.Object(ARRAY(x12:0)), x13:0, x11:0, x12:0) -> f9277_0_transfer_Load(java.lang.Object(ARRAY(x11:0)), java.lang.Object(ARRAY(x12:0)), x13:0 + 1, x11:0, x12:0) :|: x12:0 > -1 && x13:0 < x12:0 25.83/7.89 f9277_0_transfer_Load(java.lang.Object(ARRAY(i3750:0:0)), java.lang.Object(ARRAY(i3908:0:0)), i3909:0:0, i3750:0:0, i3908:0:0) -> f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(i3750:0:0)), java.lang.Object(ARRAY(i3908:0:0)), i3909:0:0, o4252:0:0, i3750:0:0, i3908:0:0) :|: i3938:0:0 < i3750:0:0 && i3750:0:0 > -1 && i3908:0:0 > -1 && i3909:0:0 < i3908:0:0 25.83/7.89 f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3:0)), java.lang.Object(ARRAY(x4:0)), x5:0, java.lang.Object(javaUtilEx.HashMap$Entry(x6:0)), x3:0, x4:0) -> f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3:0)), java.lang.Object(ARRAY(x4:0)), x5:0, x6:0, x3:0, x4:0) :|: x3:0 > -1 && x7:0 < x3:0 25.83/7.89 f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x:0)), java.lang.Object(ARRAY(x1:0)), x2:0, NULL, x:0, x1:0) -> f9277_0_transfer_Load(java.lang.Object(ARRAY(x:0)), java.lang.Object(ARRAY(x1:0)), x2:0 + 1, x:0, x1:0) :|: TRUE 25.83/7.89 25.83/7.89 ---------------------------------------- 25.83/7.89 25.83/7.89 (16) TempFilterProof (SOUND) 25.83/7.89 Used the following sort dictionary for filtering: 25.83/7.89 f9277_0_transfer_Load(VARIABLE, VARIABLE, INTEGER, VARIABLE, VARIABLE) 25.83/7.89 java.lang.Object(VARIABLE) 25.83/7.89 ARRAY(VARIABLE) 25.83/7.89 f9408_0_transfer_NONNULL(VARIABLE, VARIABLE, VARIABLE, VARIABLE, VARIABLE, VARIABLE) 25.83/7.89 javaUtilEx.HashMap$Entry(VARIABLE) 25.83/7.89 NULL() 25.83/7.89 Replaced non-predefined constructor symbols by 0.The following proof was generated: 25.83/7.89 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 25.83/7.89 25.83/7.89 25.83/7.89 Termination of the given IntTRS could not be shown: 25.83/7.89 25.83/7.89 25.83/7.89 25.83/7.89 - IntTRS 25.83/7.89 - PolynomialOrderProcessor 25.83/7.89 25.83/7.89 Rules: 25.83/7.89 f9277_0_transfer_Load(c, c1, x13:0, x11:0, x12:0) -> f9277_0_transfer_Load(c2, c3, c4, x11:0, x12:0) :|: c4 = x13:0 + 1 && (c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0))) && (x12:0 > -1 && x13:0 < x12:0) 25.83/7.89 f9277_0_transfer_Load(c5, c6, i3909:0:0, i3750:0:0, i3908:0:0) -> f9408_0_transfer_NONNULL(c7, c8, i3909:0:0, o4252:0:0, i3750:0:0, i3908:0:0) :|: c8 = 0 && (c7 = 0 && (c6 = 0 && c5 = 0)) && (i3938:0:0 < i3750:0:0 && i3750:0:0 > -1 && i3908:0:0 > -1 && i3909:0:0 < i3908:0:0) 25.83/7.89 f9408_0_transfer_NONNULL(c9, c10, x5:0, c11, x3:0, x4:0) -> f9408_0_transfer_NONNULL(c12, c13, x5:0, x6:0, x3:0, x4:0) :|: c13 = 0 && (c12 = 0 && (c11 = 0 && (c10 = 0 && c9 = 0))) && (x3:0 > -1 && x7:0 < x3:0) 25.83/7.89 f9408_0_transfer_NONNULL(c14, c15, x2:0, c16, x:0, x1:0) -> f9277_0_transfer_Load(c17, c18, c19, x:0, x1:0) :|: c19 = x2:0 + 1 && (c18 = 0 && (c17 = 0 && (c16 = 0 && (c15 = 0 && c14 = 0)))) && TRUE 25.83/7.89 25.83/7.89 Found the following polynomial interpretation: 25.83/7.89 [f9277_0_transfer_Load(x, x1, x2, x3, x4)] = -1 + c*x + c1*x1 - x2 + 2*x3 + x4 25.83/7.89 [f9408_0_transfer_NONNULL(x5, x6, x7, x8, x9, x10)] = -1 + x10 + c5*x5 + c6*x6 - x7 + 2*x9 25.83/7.89 25.83/7.89 The following rules are decreasing: 25.83/7.89 f9277_0_transfer_Load(c, c1, x13:0, x11:0, x12:0) -> f9277_0_transfer_Load(c2, c3, c4, x11:0, x12:0) :|: c4 = x13:0 + 1 && (c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0))) && (x12:0 > -1 && x13:0 < x12:0) 25.83/7.89 f9408_0_transfer_NONNULL(c14, c15, x2:0, c16, x:0, x1:0) -> f9277_0_transfer_Load(c17, c18, c19, x:0, x1:0) :|: c19 = x2:0 + 1 && (c18 = 0 && (c17 = 0 && (c16 = 0 && (c15 = 0 && c14 = 0)))) && TRUE 25.83/7.89 The following rules are bounded: 25.83/7.89 f9277_0_transfer_Load(c5, c6, i3909:0:0, i3750:0:0, i3908:0:0) -> f9408_0_transfer_NONNULL(c7, c8, i3909:0:0, o4252:0:0, i3750:0:0, i3908:0:0) :|: c8 = 0 && (c7 = 0 && (c6 = 0 && c5 = 0)) && (i3938:0:0 < i3750:0:0 && i3750:0:0 > -1 && i3908:0:0 > -1 && i3909:0:0 < i3908:0:0) 25.83/7.89 25.83/7.89 25.83/7.89 25.83/7.89 - IntTRS 25.83/7.89 - PolynomialOrderProcessor 25.83/7.89 - AND 25.83/7.89 - IntTRS 25.83/7.89 - IntTRS 25.83/7.89 - RankingReductionPairProof 25.83/7.89 - IntTRS 25.83/7.89 25.83/7.89 Rules: 25.83/7.89 f9277_0_transfer_Load(c5, c6, i3909:0:0, i3750:0:0, i3908:0:0) -> f9408_0_transfer_NONNULL(c7, c8, i3909:0:0, o4252:0:0, i3750:0:0, i3908:0:0) :|: c8 = 0 && (c7 = 0 && (c6 = 0 && c5 = 0)) && (i3938:0:0 < i3750:0:0 && i3750:0:0 > -1 && i3908:0:0 > -1 && i3909:0:0 < i3908:0:0) 25.83/7.89 f9408_0_transfer_NONNULL(c9, c10, x5:0, c11, x3:0, x4:0) -> f9408_0_transfer_NONNULL(c12, c13, x5:0, x6:0, x3:0, x4:0) :|: c13 = 0 && (c12 = 0 && (c11 = 0 && (c10 = 0 && c9 = 0))) && (x3:0 > -1 && x7:0 < x3:0) 25.83/7.90 25.83/7.90 Interpretation: 25.83/7.90 [ f9277_0_transfer_Load ] = 1 25.83/7.90 [ f9408_0_transfer_NONNULL ] = 0 25.83/7.90 25.83/7.90 The following rules are decreasing: 25.83/7.90 f9277_0_transfer_Load(c5, c6, i3909:0:0, i3750:0:0, i3908:0:0) -> f9408_0_transfer_NONNULL(c7, c8, i3909:0:0, o4252:0:0, i3750:0:0, i3908:0:0) :|: c8 = 0 && (c7 = 0 && (c6 = 0 && c5 = 0)) && (i3938:0:0 < i3750:0:0 && i3750:0:0 > -1 && i3908:0:0 > -1 && i3909:0:0 < i3908:0:0) 25.83/7.90 25.83/7.90 The following rules are bounded: 25.83/7.90 f9277_0_transfer_Load(c5, c6, i3909:0:0, i3750:0:0, i3908:0:0) -> f9408_0_transfer_NONNULL(c7, c8, i3909:0:0, o4252:0:0, i3750:0:0, i3908:0:0) :|: c8 = 0 && (c7 = 0 && (c6 = 0 && c5 = 0)) && (i3938:0:0 < i3750:0:0 && i3750:0:0 > -1 && i3908:0:0 > -1 && i3909:0:0 < i3908:0:0) 25.83/7.90 f9408_0_transfer_NONNULL(c9, c10, x5:0, c11, x3:0, x4:0) -> f9408_0_transfer_NONNULL(c12, c13, x5:0, x6:0, x3:0, x4:0) :|: c13 = 0 && (c12 = 0 && (c11 = 0 && (c10 = 0 && c9 = 0))) && (x3:0 > -1 && x7:0 < x3:0) 25.83/7.90 25.83/7.90 25.83/7.90 25.83/7.90 - IntTRS 25.83/7.90 - PolynomialOrderProcessor 25.83/7.90 - AND 25.83/7.90 - IntTRS 25.83/7.90 - IntTRS 25.83/7.90 - RankingReductionPairProof 25.83/7.90 - IntTRS 25.83/7.90 - IntTRS 25.83/7.90 25.83/7.90 Rules: 25.83/7.90 f9408_0_transfer_NONNULL(c9, c10, x5:0, c11, x3:0, x4:0) -> f9408_0_transfer_NONNULL(c12, c13, x5:0, x6:0, x3:0, x4:0) :|: c13 = 0 && (c12 = 0 && (c11 = 0 && (c10 = 0 && c9 = 0))) && (x3:0 > -1 && x7:0 < x3:0) 25.83/7.90 25.83/7.90 25.83/7.90 25.83/7.90 - IntTRS 25.83/7.90 - PolynomialOrderProcessor 25.83/7.90 - AND 25.83/7.90 - IntTRS 25.83/7.90 - IntTRS 25.83/7.90 - IntTRS 25.83/7.90 - RankingReductionPairProof 25.83/7.90 25.83/7.90 Rules: 25.83/7.90 f9277_0_transfer_Load(c, c1, x13:0, x11:0, x12:0) -> f9277_0_transfer_Load(c2, c3, c4, x11:0, x12:0) :|: c4 = x13:0 + 1 && (c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0))) && (x12:0 > -1 && x13:0 < x12:0) 25.83/7.90 f9408_0_transfer_NONNULL(c9, c10, x5:0, c11, x3:0, x4:0) -> f9408_0_transfer_NONNULL(c12, c13, x5:0, x6:0, x3:0, x4:0) :|: c13 = 0 && (c12 = 0 && (c11 = 0 && (c10 = 0 && c9 = 0))) && (x3:0 > -1 && x7:0 < x3:0) 25.83/7.90 f9408_0_transfer_NONNULL(c14, c15, x2:0, c16, x:0, x1:0) -> f9277_0_transfer_Load(c17, c18, c19, x:0, x1:0) :|: c19 = x2:0 + 1 && (c18 = 0 && (c17 = 0 && (c16 = 0 && (c15 = 0 && c14 = 0)))) && TRUE 25.83/7.90 25.83/7.90 Interpretation: 25.83/7.90 [ f9277_0_transfer_Load ] = 0 25.83/7.90 [ f9408_0_transfer_NONNULL ] = 1 25.83/7.90 25.83/7.90 The following rules are decreasing: 25.83/7.90 f9408_0_transfer_NONNULL(c14, c15, x2:0, c16, x:0, x1:0) -> f9277_0_transfer_Load(c17, c18, c19, x:0, x1:0) :|: c19 = x2:0 + 1 && (c18 = 0 && (c17 = 0 && (c16 = 0 && (c15 = 0 && c14 = 0)))) && TRUE 25.83/7.90 25.83/7.90 The following rules are bounded: 25.83/7.90 f9277_0_transfer_Load(c, c1, x13:0, x11:0, x12:0) -> f9277_0_transfer_Load(c2, c3, c4, x11:0, x12:0) :|: c4 = x13:0 + 1 && (c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0))) && (x12:0 > -1 && x13:0 < x12:0) 25.83/7.90 f9408_0_transfer_NONNULL(c9, c10, x5:0, c11, x3:0, x4:0) -> f9408_0_transfer_NONNULL(c12, c13, x5:0, x6:0, x3:0, x4:0) :|: c13 = 0 && (c12 = 0 && (c11 = 0 && (c10 = 0 && c9 = 0))) && (x3:0 > -1 && x7:0 < x3:0) 25.83/7.90 f9408_0_transfer_NONNULL(c14, c15, x2:0, c16, x:0, x1:0) -> f9277_0_transfer_Load(c17, c18, c19, x:0, x1:0) :|: c19 = x2:0 + 1 && (c18 = 0 && (c17 = 0 && (c16 = 0 && (c15 = 0 && c14 = 0)))) && TRUE 25.83/7.90 25.83/7.90 25.83/7.90 25.83/7.90 - IntTRS 25.83/7.90 - PolynomialOrderProcessor 25.83/7.90 - AND 25.83/7.90 - IntTRS 25.83/7.90 - IntTRS 25.83/7.90 - IntTRS 25.83/7.90 - RankingReductionPairProof 25.83/7.90 - IntTRS 25.83/7.90 - PolynomialOrderProcessor 25.83/7.90 25.83/7.90 Rules: 25.83/7.90 f9277_0_transfer_Load(c, c1, x13:0, x11:0, x12:0) -> f9277_0_transfer_Load(c2, c3, c4, x11:0, x12:0) :|: c4 = x13:0 + 1 && (c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0))) && (x12:0 > -1 && x13:0 < x12:0) 25.83/7.90 f9408_0_transfer_NONNULL(c9, c10, x5:0, c11, x3:0, x4:0) -> f9408_0_transfer_NONNULL(c12, c13, x5:0, x6:0, x3:0, x4:0) :|: c13 = 0 && (c12 = 0 && (c11 = 0 && (c10 = 0 && c9 = 0))) && (x3:0 > -1 && x7:0 < x3:0) 25.83/7.90 25.83/7.90 Found the following polynomial interpretation: 25.83/7.90 [f9277_0_transfer_Load(x, x1, x2, x3, x4)] = c*x + c1*x1 - x2 + x4 25.83/7.90 [f9408_0_transfer_NONNULL(x5, x6, x7, x8, x9, x10)] = c5*x5 + c6*x6 25.83/7.90 25.83/7.90 The following rules are decreasing: 25.83/7.90 f9277_0_transfer_Load(c, c1, x13:0, x11:0, x12:0) -> f9277_0_transfer_Load(c2, c3, c4, x11:0, x12:0) :|: c4 = x13:0 + 1 && (c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0))) && (x12:0 > -1 && x13:0 < x12:0) 25.83/7.90 The following rules are bounded: 25.83/7.90 f9277_0_transfer_Load(c, c1, x13:0, x11:0, x12:0) -> f9277_0_transfer_Load(c2, c3, c4, x11:0, x12:0) :|: c4 = x13:0 + 1 && (c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0))) && (x12:0 > -1 && x13:0 < x12:0) 25.83/7.90 f9408_0_transfer_NONNULL(c9, c10, x5:0, c11, x3:0, x4:0) -> f9408_0_transfer_NONNULL(c12, c13, x5:0, x6:0, x3:0, x4:0) :|: c13 = 0 && (c12 = 0 && (c11 = 0 && (c10 = 0 && c9 = 0))) && (x3:0 > -1 && x7:0 < x3:0) 25.83/7.90 25.83/7.90 25.83/7.90 - IntTRS 25.83/7.90 - PolynomialOrderProcessor 25.83/7.90 - AND 25.83/7.90 - IntTRS 25.83/7.90 - IntTRS 25.83/7.90 - IntTRS 25.83/7.90 - RankingReductionPairProof 25.83/7.90 - IntTRS 25.83/7.90 - PolynomialOrderProcessor 25.83/7.90 - IntTRS 25.83/7.90 25.83/7.90 Rules: 25.83/7.90 f9408_0_transfer_NONNULL(c9, c10, x5:0, c11, x3:0, x4:0) -> f9408_0_transfer_NONNULL(c12, c13, x5:0, x6:0, x3:0, x4:0) :|: c13 = 0 && (c12 = 0 && (c11 = 0 && (c10 = 0 && c9 = 0))) && (x3:0 > -1 && x7:0 < x3:0) 25.83/7.90 25.83/7.90 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (17) 25.83/7.90 Obligation: 25.83/7.90 Rules: 25.83/7.90 f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3:0)), java.lang.Object(ARRAY(x4:0)), x5:0, java.lang.Object(javaUtilEx.HashMap$Entry(x6:0)), x3:0, x4:0) -> f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3:0)), java.lang.Object(ARRAY(x4:0)), x5:0, x6:0, x3:0, x4:0) :|: x3:0 > -1 && x7:0 < x3:0 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (18) IRSwTTerminationDigraphProof (EQUIVALENT) 25.83/7.90 Constructed termination digraph! 25.83/7.90 Nodes: 25.83/7.90 (1) f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3:0)), java.lang.Object(ARRAY(x4:0)), x5:0, java.lang.Object(javaUtilEx.HashMap$Entry(x6:0)), x3:0, x4:0) -> f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3:0)), java.lang.Object(ARRAY(x4:0)), x5:0, x6:0, x3:0, x4:0) :|: x3:0 > -1 && x7:0 < x3:0 25.83/7.90 25.83/7.90 Arcs: 25.83/7.90 (1) -> (1) 25.83/7.90 25.83/7.90 This digraph is fully evaluated! 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (19) 25.83/7.90 Obligation: 25.83/7.90 25.83/7.90 Termination digraph: 25.83/7.90 Nodes: 25.83/7.90 (1) f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3:0)), java.lang.Object(ARRAY(x4:0)), x5:0, java.lang.Object(javaUtilEx.HashMap$Entry(x6:0)), x3:0, x4:0) -> f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3:0)), java.lang.Object(ARRAY(x4:0)), x5:0, x6:0, x3:0, x4:0) :|: x3:0 > -1 && x7:0 < x3:0 25.83/7.90 25.83/7.90 Arcs: 25.83/7.90 (1) -> (1) 25.83/7.90 25.83/7.90 This digraph is fully evaluated! 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (20) IntTRSUnneededArgumentFilterProof (EQUIVALENT) 25.83/7.90 Some arguments are removed because they cannot influence termination. We removed arguments according to the following replacements: 25.83/7.90 25.83/7.90 f9408_0_transfer_NONNULL(x1, x2, x3, x4, x5, x6) -> f9408_0_transfer_NONNULL(x1, x2, x4, x5, x6) 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (21) 25.83/7.90 Obligation: 25.83/7.90 Rules: 25.83/7.90 f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3:0)), java.lang.Object(ARRAY(x4:0)), java.lang.Object(javaUtilEx.HashMap$Entry(x6:0)), x3:0, x4:0) -> f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3:0)), java.lang.Object(ARRAY(x4:0)), x6:0, x3:0, x4:0) :|: x3:0 > -1 && x7:0 < x3:0 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (22) TempFilterProof (SOUND) 25.83/7.90 Used the following sort dictionary for filtering: 25.83/7.90 f9408_0_transfer_NONNULL(VARIABLE, VARIABLE, VARIABLE, INTEGER, VARIABLE) 25.83/7.90 java.lang.Object(VARIABLE) 25.83/7.90 ARRAY(VARIABLE) 25.83/7.90 javaUtilEx.HashMap$Entry(VARIABLE) 25.83/7.90 Removed predefined arithmetic. 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (23) 25.83/7.90 Obligation: 25.83/7.90 Rules: 25.83/7.90 f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3:0)), java.lang.Object(ARRAY(x4:0)), java.lang.Object(javaUtilEx.HashMap$Entry(x6:0)), x4:0) -> f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3:0)), java.lang.Object(ARRAY(x4:0)), x6:0, x4:0) 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (24) IRSwTToQDPProof (SOUND) 25.83/7.90 Removed the integers and created a QDP-Problem. 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (25) 25.83/7.90 Obligation: 25.83/7.90 Q DP problem: 25.83/7.90 The TRS P consists of the following rules: 25.83/7.90 25.83/7.90 f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3:0)), java.lang.Object(ARRAY(x4:0)), java.lang.Object(javaUtilEx.HashMap$Entry(x6:0)), x4:0) -> f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3:0)), java.lang.Object(ARRAY(x4:0)), x6:0, x4:0) 25.83/7.90 25.83/7.90 R is empty. 25.83/7.90 Q is empty. 25.83/7.90 We have to consider all (P,Q,R)-chains. 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (26) QDPSizeChangeProof (EQUIVALENT) 25.83/7.90 By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem. 25.83/7.90 25.83/7.90 From the DPs we obtained the following set of size-change graphs: 25.83/7.90 *f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3:0)), java.lang.Object(ARRAY(x4:0)), java.lang.Object(javaUtilEx.HashMap$Entry(x6:0)), x4:0) -> f9408_0_transfer_NONNULL(java.lang.Object(ARRAY(x3:0)), java.lang.Object(ARRAY(x4:0)), x6:0, x4:0) 25.83/7.90 The graph contains the following edges 1 >= 1, 2 >= 2, 3 > 3, 2 > 4, 4 >= 4 25.83/7.90 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (27) 25.83/7.90 YES 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (28) 25.83/7.90 Obligation: 25.83/7.90 SCC of termination graph based on JBC Program. 25.83/7.90 SCC contains nodes from the following methods: javaUtilEx.HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 25.83/7.90 SCC calls the following helper methods: javaUtilEx.Content.equals(Ljava/lang/Object;)Z 25.83/7.90 Performed SCC analyses: 25.83/7.90 *Used field analysis yielded the following read fields: 25.83/7.90 *javaUtilEx.HashMap$Entry: [hash, next, key] 25.83/7.90 *Marker field analysis yielded the following relations that could be markers: 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (29) SCCToIRSProof (SOUND) 25.83/7.90 Transformed FIGraph SCCs to intTRSs. Log: 25.83/7.90 Generated rules. Obtained 57 IRulesP rules: 25.83/7.90 f8693_0_put_NULL(EOS(STATIC_8693), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(o3769sub), java.lang.Object(o3769sub)) -> f8695_0_put_NULL(EOS(STATIC_8695), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(o3769sub), java.lang.Object(o3769sub)) :|: TRUE 25.83/7.90 f8695_0_put_NULL(EOS(STATIC_8695), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(o3769sub), java.lang.Object(o3769sub)) -> f8698_0_put_Load(EOS(STATIC_8698), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(o3769sub)) :|: TRUE 25.83/7.90 f8698_0_put_Load(EOS(STATIC_8698), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(o3769sub)) -> f8701_0_put_FieldAccess(EOS(STATIC_8701), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(o3769sub), java.lang.Object(o3769sub)) :|: TRUE 25.83/7.90 f8701_0_put_FieldAccess(EOS(STATIC_8701), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3469, o3773, o3771)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3469, o3773, o3771))) -> f8704_0_put_FieldAccess(EOS(STATIC_8704), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3469, o3773, o3771)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3469, o3773, o3771))) :|: TRUE 25.83/7.90 f8704_0_put_FieldAccess(EOS(STATIC_8704), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3469, o3773, o3771)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3469, o3773, o3771))) -> f8707_0_put_Load(EOS(STATIC_8707), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3469, o3773, o3771)), i3469) :|: TRUE 25.83/7.90 f8707_0_put_Load(EOS(STATIC_8707), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3469, o3773, o3771)), i3469) -> f8710_0_put_NE(EOS(STATIC_8710), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3469, o3773, o3771)), i3469, i3464) :|: TRUE 25.83/7.90 f8710_0_put_NE(EOS(STATIC_8710), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3469, o3773, o3771)), i3469, i3464) -> f8713_0_put_NE(EOS(STATIC_8713), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3469, o3773, o3771)), i3469, i3464) :|: !(i3469 = i3464) 25.83/7.90 f8710_0_put_NE(EOS(STATIC_8710), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, o3771)), i3464, i3464) -> f8714_0_put_NE(EOS(STATIC_8714), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, o3771)), i3464, i3464) :|: i3469 = i3464 25.83/7.90 f8713_0_put_NE(EOS(STATIC_8713), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3469, o3773, o3771)), i3469, i3464) -> f8717_0_put_Load(EOS(STATIC_8717), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3469, o3773, o3771))) :|: !(i3469 = i3464) 25.83/7.90 f8717_0_put_Load(EOS(STATIC_8717), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3469, o3773, o3771))) -> f8721_0_put_FieldAccess(EOS(STATIC_8721), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3469, o3773, o3771))) :|: TRUE 25.83/7.90 f8721_0_put_FieldAccess(EOS(STATIC_8721), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3469, o3773, o3771))) -> f8725_0_put_Store(EOS(STATIC_8725), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, o3773) :|: TRUE 25.83/7.90 f8725_0_put_Store(EOS(STATIC_8725), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, o3773) -> f8729_0_put_JMP(EOS(STATIC_8729), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, o3773) :|: TRUE 25.83/7.90 f8729_0_put_JMP(EOS(STATIC_8729), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, o3773) -> f8733_0_put_Load(EOS(STATIC_8733), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, o3773) :|: TRUE 25.83/7.90 f8733_0_put_Load(EOS(STATIC_8733), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, o3773) -> f8691_0_put_Load(EOS(STATIC_8691), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, o3773) :|: TRUE 25.83/7.90 f8691_0_put_Load(EOS(STATIC_8691), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, o3758) -> f8693_0_put_NULL(EOS(STATIC_8693), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, o3758, o3758) :|: TRUE 25.83/7.90 f8714_0_put_NE(EOS(STATIC_8714), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, o3771)), i3464, i3464) -> f8718_0_put_Load(EOS(STATIC_8718), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, o3771))) :|: TRUE 25.83/7.90 f8718_0_put_Load(EOS(STATIC_8718), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, o3771))) -> f8722_0_put_FieldAccess(EOS(STATIC_8722), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, o3771)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, o3771))) :|: TRUE 25.83/7.90 f8722_0_put_FieldAccess(EOS(STATIC_8722), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, o3771)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, o3771))) -> f8726_0_put_Duplicate(EOS(STATIC_8726), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, o3771)), o3771) :|: TRUE 25.83/7.90 f8726_0_put_Duplicate(EOS(STATIC_8726), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, o3771)), o3771) -> f8730_0_put_Store(EOS(STATIC_8730), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, o3771)), o3771, o3771) :|: TRUE 25.83/7.90 f8730_0_put_Store(EOS(STATIC_8730), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, o3771)), o3771, o3771) -> f8734_0_put_Load(EOS(STATIC_8734), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, o3771)), o3771, o3771) :|: TRUE 25.83/7.90 f8734_0_put_Load(EOS(STATIC_8734), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, o3771)), o3771, o3771) -> f8737_0_put_EQ(EOS(STATIC_8737), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, o3771)), o3771, o3771, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8737_0_put_EQ(EOS(STATIC_8737), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3788sub))), java.lang.Object(o3788sub), java.lang.Object(o3788sub), java.lang.Object(javaUtilEx.Content(EOC))) -> f8739_0_put_EQ(EOS(STATIC_8739), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3788sub))), java.lang.Object(o3788sub), java.lang.Object(o3788sub), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8737_0_put_EQ(EOS(STATIC_8737), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, NULL)), NULL, NULL, java.lang.Object(javaUtilEx.Content(EOC))) -> f8740_0_put_EQ(EOS(STATIC_8740), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, NULL)), NULL, NULL, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8739_0_put_EQ(EOS(STATIC_8739), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3788sub))), java.lang.Object(o3788sub), java.lang.Object(o3788sub), java.lang.Object(javaUtilEx.Content(EOC))) -> f8743_0_put_Load(EOS(STATIC_8743), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3788sub))), java.lang.Object(o3788sub)) :|: TRUE 25.83/7.90 f8743_0_put_Load(EOS(STATIC_8743), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3788sub))), java.lang.Object(o3788sub)) -> f8746_0_put_Load(EOS(STATIC_8746), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3788sub))), java.lang.Object(o3788sub), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8746_0_put_Load(EOS(STATIC_8746), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3788sub))), java.lang.Object(o3788sub), java.lang.Object(javaUtilEx.Content(EOC))) -> f8750_0_put_InvokeMethod(EOS(STATIC_8750), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3788sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3788sub)) :|: TRUE 25.83/7.90 f8750_0_put_InvokeMethod(EOS(STATIC_8750), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3788sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3788sub)) -> f8753_0_equals_Load(EOS(STATIC_8753), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3788sub), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3788sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3788sub)) :|: TRUE 25.83/7.90 f8750_0_put_InvokeMethod(EOS(STATIC_8750), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3788sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3788sub)) -> f8753_1_equals_Load(EOS(STATIC_8753), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3788sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3788sub)) :|: TRUE 25.83/7.90 f8753_0_equals_Load(EOS(STATIC_8753), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3788sub), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3788sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3788sub)) -> f9624_0_equals_Load(EOS(STATIC_9624), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3788sub), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3788sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3788sub)) :|: TRUE 25.83/7.90 f8772_0_equals_Return(EOS(STATIC_8772), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3852sub))), matching1) -> f8783_0_put_EQ(EOS(STATIC_8783), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3852sub))), 0) :|: TRUE && matching1 = 0 25.83/7.90 f8783_0_put_EQ(EOS(STATIC_8783), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3852sub))), matching1) -> f8787_0_put_Load(EOS(STATIC_8787), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3852sub)))) :|: TRUE && matching1 = 0 25.83/7.90 f8787_0_put_Load(EOS(STATIC_8787), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3852sub)))) -> f8793_0_put_FieldAccess(EOS(STATIC_8793), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3852sub)))) :|: TRUE 25.83/7.90 f8793_0_put_FieldAccess(EOS(STATIC_8793), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3852sub)))) -> f8799_0_put_Store(EOS(STATIC_8799), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, o3773) :|: TRUE 25.83/7.90 f8799_0_put_Store(EOS(STATIC_8799), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, o3773) -> f8725_0_put_Store(EOS(STATIC_8725), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, o3773) :|: TRUE 25.83/7.90 f8773_0_equals_Return(EOS(STATIC_8773), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(javaUtilEx.Content(EOC)))), matching1) -> f8775_0_equals_Return(EOS(STATIC_8775), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(javaUtilEx.Content(EOC)))), 0) :|: TRUE && matching1 = 0 25.83/7.90 f8775_0_equals_Return(EOS(STATIC_8775), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3917, java.lang.Object(javaUtilEx.Content(EOC)))), i3620) -> f8784_0_put_EQ(EOS(STATIC_8784), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3917, java.lang.Object(javaUtilEx.Content(EOC)))), i3620) :|: TRUE 25.83/7.90 f8784_0_put_EQ(EOS(STATIC_8784), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3917, java.lang.Object(javaUtilEx.Content(EOC)))), matching1) -> f8789_0_put_EQ(EOS(STATIC_8789), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3917, java.lang.Object(javaUtilEx.Content(EOC)))), 0) :|: TRUE && matching1 = 0 25.83/7.90 f8789_0_put_EQ(EOS(STATIC_8789), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3917, java.lang.Object(javaUtilEx.Content(EOC)))), matching1) -> f8795_0_put_Load(EOS(STATIC_8795), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3917, java.lang.Object(javaUtilEx.Content(EOC))))) :|: TRUE && matching1 = 0 25.83/7.90 f8795_0_put_Load(EOS(STATIC_8795), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3917, java.lang.Object(javaUtilEx.Content(EOC))))) -> f8801_0_put_FieldAccess(EOS(STATIC_8801), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3917, java.lang.Object(javaUtilEx.Content(EOC))))) :|: TRUE 25.83/7.90 f8801_0_put_FieldAccess(EOS(STATIC_8801), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3917, java.lang.Object(javaUtilEx.Content(EOC))))) -> f8805_0_put_Store(EOS(STATIC_8805), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, o3917) :|: TRUE 25.83/7.90 f8805_0_put_Store(EOS(STATIC_8805), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, o3917) -> f8725_0_put_Store(EOS(STATIC_8725), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, o3917) :|: TRUE 25.83/7.90 f8774_0_equals_Return(EOS(STATIC_8774), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(javaUtilEx.Content(EOC)))), matching1) -> f8775_0_equals_Return(EOS(STATIC_8775), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(javaUtilEx.Content(EOC)))), 1) :|: TRUE && matching1 = 1 25.83/7.90 f8740_0_put_EQ(EOS(STATIC_8740), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, NULL)), NULL, NULL, java.lang.Object(javaUtilEx.Content(EOC))) -> f8744_0_put_Load(EOS(STATIC_8744), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, NULL)), NULL) :|: TRUE 25.83/7.90 f8744_0_put_Load(EOS(STATIC_8744), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, NULL)), NULL) -> f8747_0_put_Load(EOS(STATIC_8747), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, NULL)), NULL, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8747_0_put_Load(EOS(STATIC_8747), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, NULL)), NULL, java.lang.Object(javaUtilEx.Content(EOC))) -> f8751_0_put_InvokeMethod(EOS(STATIC_8751), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, NULL)), java.lang.Object(javaUtilEx.Content(EOC)), NULL) :|: TRUE 25.83/7.90 f8751_0_put_InvokeMethod(EOS(STATIC_8751), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, NULL)), java.lang.Object(javaUtilEx.Content(EOC)), NULL) -> f8754_0_equals_Load(EOS(STATIC_8754), java.lang.Object(javaUtilEx.Content(EOC)), NULL, java.lang.Object(javaUtilEx.Content(EOC)), NULL) :|: TRUE 25.83/7.90 f8751_0_put_InvokeMethod(EOS(STATIC_8751), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, NULL)), java.lang.Object(javaUtilEx.Content(EOC)), NULL) -> f8754_1_equals_Load(EOS(STATIC_8754), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, NULL)), java.lang.Object(javaUtilEx.Content(EOC)), NULL) :|: TRUE 25.83/7.90 f8754_0_equals_Load(EOS(STATIC_8754), java.lang.Object(javaUtilEx.Content(EOC)), NULL, java.lang.Object(javaUtilEx.Content(EOC)), NULL) -> f9680_0_equals_Load(EOS(STATIC_9680), java.lang.Object(javaUtilEx.Content(EOC)), NULL, java.lang.Object(javaUtilEx.Content(EOC)), NULL) :|: TRUE 25.83/7.90 f8777_0_equals_Return(EOS(STATIC_8777), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, NULL)), matching1) -> f8785_0_put_EQ(EOS(STATIC_8785), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, NULL)), 0) :|: TRUE && matching1 = 0 25.83/7.90 f8785_0_put_EQ(EOS(STATIC_8785), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, NULL)), matching1) -> f8790_0_put_Load(EOS(STATIC_8790), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, NULL))) :|: TRUE && matching1 = 0 25.83/7.90 f8790_0_put_Load(EOS(STATIC_8790), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, NULL))) -> f8796_0_put_FieldAccess(EOS(STATIC_8796), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, NULL))) :|: TRUE 25.83/7.90 f8796_0_put_FieldAccess(EOS(STATIC_8796), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, NULL))) -> f8802_0_put_Store(EOS(STATIC_8802), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, o3773) :|: TRUE 25.83/7.90 f8802_0_put_Store(EOS(STATIC_8802), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, o3773) -> f8725_0_put_Store(EOS(STATIC_8725), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, o3773) :|: TRUE 25.83/7.90 f8753_1_equals_Load(EOS(STATIC_8753), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3852sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3852sub)) -> f8772_0_equals_Return(EOS(STATIC_8772), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(o3852sub))), 0) :|: TRUE 25.83/7.90 f8753_1_equals_Load(EOS(STATIC_8753), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(javaUtilEx.Content(EOC)))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8773_0_equals_Return(EOS(STATIC_8773), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(javaUtilEx.Content(EOC)))), 0) :|: TRUE 25.83/7.90 f8753_1_equals_Load(EOS(STATIC_8753), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(javaUtilEx.Content(EOC)))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8774_0_equals_Return(EOS(STATIC_8774), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, java.lang.Object(javaUtilEx.Content(EOC)))), 1) :|: TRUE 25.83/7.90 f8754_1_equals_Load(EOS(STATIC_8754), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, NULL)), java.lang.Object(javaUtilEx.Content(EOC)), NULL) -> f8777_0_equals_Return(EOS(STATIC_8777), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464, o3773, NULL)), 0) :|: TRUE 25.83/7.90 Combined rules. Obtained 7 IRulesP rules: 25.83/7.90 f8693_0_put_NULL(EOS(STATIC_8693), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464:0, o3773:0, NULL)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464:0, o3773:0, NULL))) -> f8693_0_put_NULL(EOS(STATIC_8693), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464:0, o3773:0, o3773:0) :|: TRUE 25.83/7.90 f8693_0_put_NULL(EOS(STATIC_8693), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3469:0, o3773:0, o3771:0)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3469:0, o3773:0, o3771:0))) -> f8693_0_put_NULL(EOS(STATIC_8693), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464:0, o3773:0, o3773:0) :|: i3469:0 < i3464:0 25.83/7.90 f8693_0_put_NULL(EOS(STATIC_8693), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3469:0, o3773:0, o3771:0)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3469:0, o3773:0, o3771:0))) -> f8693_0_put_NULL(EOS(STATIC_8693), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464:0, o3773:0, o3773:0) :|: i3469:0 > i3464:0 25.83/7.90 f8693_0_put_NULL(EOS(STATIC_8693), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464:0, o3773:0, java.lang.Object(o3788sub:0))), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464:0, o3773:0, java.lang.Object(o3788sub:0)))) -> f8693_0_put_NULL(EOS(STATIC_8693), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464:0, o3773:0, o3773:0) :|: TRUE 25.83/7.90 f8693_0_put_NULL(EOS(STATIC_8693), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464:0, o3773:0, java.lang.Object(javaUtilEx.Content(EOC)))), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464:0, o3773:0, java.lang.Object(javaUtilEx.Content(EOC))))) -> f8693_0_put_NULL(EOS(STATIC_8693), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464:0, o3773:0, o3773:0) :|: TRUE 25.83/7.90 Removed following non-SCC rules: 25.83/7.90 f8693_0_put_NULL(EOS(STATIC_8693), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464:0, o3773:0, java.lang.Object(o3788sub:0))), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464:0, o3773:0, java.lang.Object(o3788sub:0)))) -> f9624_0_equals_Load(EOS(STATIC_9624), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3788sub:0), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464:0, o3773:0, java.lang.Object(o3788sub:0))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3788sub:0)) :|: TRUE 25.83/7.90 f8693_0_put_NULL(EOS(STATIC_8693), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3464:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464:0, o3773:0, NULL)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3464:0, o3773:0, NULL))) -> f9680_0_equals_Load(EOS(STATIC_9680), java.lang.Object(javaUtilEx.Content(EOC)), NULL, java.lang.Object(javaUtilEx.Content(EOC)), NULL) :|: TRUE 25.83/7.90 Filtered constant ground arguments: 25.83/7.90 f8693_0_put_NULL(x1, x2, x3, x4, x5, x6, x7) -> f8693_0_put_NULL(x5, x6, x7) 25.83/7.90 EOS(x1) -> EOS 25.83/7.90 javaUtilEx.AbstractMap(x1) -> javaUtilEx.AbstractMap 25.83/7.90 javaUtilEx.Content(x1) -> javaUtilEx.Content 25.83/7.90 javaUtilEx.HashMap$Entry(x1, x2, x3, x4) -> javaUtilEx.HashMap$Entry(x2, x3, x4) 25.83/7.90 javaUtilEx.HashMap(x1) -> javaUtilEx.HashMap 25.83/7.90 Filtered duplicate arguments: 25.83/7.90 f8693_0_put_NULL(x1, x2, x3) -> f8693_0_put_NULL(x1, x3) 25.83/7.90 Finished conversion. Obtained 5 rules.P rules: 25.83/7.90 f8693_0_put_NULL(i3464:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3464:0, o3773:0, NULL))) -> f8693_0_put_NULL(i3464:0, o3773:0) :|: TRUE 25.83/7.90 f8693_0_put_NULL(i3464:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3469:0, o3773:0, o3771:0))) -> f8693_0_put_NULL(i3464:0, o3773:0) :|: i3469:0 < i3464:0 25.83/7.90 f8693_0_put_NULL(i3464:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3469:0, o3773:0, o3771:0))) -> f8693_0_put_NULL(i3464:0, o3773:0) :|: i3469:0 > i3464:0 25.83/7.90 f8693_0_put_NULL(i3464:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3464:0, o3773:0, java.lang.Object(o3788sub:0)))) -> f8693_0_put_NULL(i3464:0, o3773:0) :|: TRUE 25.83/7.90 f8693_0_put_NULL(i3464:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3464:0, o3773:0, java.lang.Object(javaUtilEx.Content)))) -> f8693_0_put_NULL(i3464:0, o3773:0) :|: TRUE 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (30) 25.83/7.90 Obligation: 25.83/7.90 Rules: 25.83/7.90 f8693_0_put_NULL(i3464:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3464:0, o3773:0, NULL))) -> f8693_0_put_NULL(i3464:0, o3773:0) :|: TRUE 25.83/7.90 f8693_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x1, x2, x3))) -> f8693_0_put_NULL(x, x2) :|: x1 < x 25.83/7.90 f8693_0_put_NULL(x4, java.lang.Object(javaUtilEx.HashMap$Entry(x5, x6, x7))) -> f8693_0_put_NULL(x4, x6) :|: x5 > x4 25.83/7.90 f8693_0_put_NULL(x8, java.lang.Object(javaUtilEx.HashMap$Entry(x8, x9, java.lang.Object(x10)))) -> f8693_0_put_NULL(x8, x9) :|: TRUE 25.83/7.90 f8693_0_put_NULL(x11, java.lang.Object(javaUtilEx.HashMap$Entry(x11, x12, java.lang.Object(javaUtilEx.Content)))) -> f8693_0_put_NULL(x11, x12) :|: TRUE 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (31) IRSFormatTransformerProof (EQUIVALENT) 25.83/7.90 Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (32) 25.83/7.90 Obligation: 25.83/7.90 Rules: 25.83/7.90 f8693_0_put_NULL(i3464:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3464:0, o3773:0, NULL))) -> f8693_0_put_NULL(i3464:0, o3773:0) :|: TRUE 25.83/7.90 f8693_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x1, x2, x3))) -> f8693_0_put_NULL(x, x2) :|: x1 < x 25.83/7.90 f8693_0_put_NULL(x4, java.lang.Object(javaUtilEx.HashMap$Entry(x5, x6, x7))) -> f8693_0_put_NULL(x4, x6) :|: x5 > x4 25.83/7.90 f8693_0_put_NULL(x8, java.lang.Object(javaUtilEx.HashMap$Entry(x8, x9, java.lang.Object(x10)))) -> f8693_0_put_NULL(x8, x9) :|: TRUE 25.83/7.90 f8693_0_put_NULL(x11, java.lang.Object(javaUtilEx.HashMap$Entry(x11, x12, java.lang.Object(javaUtilEx.Content)))) -> f8693_0_put_NULL(x11, x12) :|: TRUE 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (33) IRSwTTerminationDigraphProof (EQUIVALENT) 25.83/7.90 Constructed termination digraph! 25.83/7.90 Nodes: 25.83/7.90 (1) f8693_0_put_NULL(i3464:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3464:0, o3773:0, NULL))) -> f8693_0_put_NULL(i3464:0, o3773:0) :|: TRUE 25.83/7.90 (2) f8693_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x1, x2, x3))) -> f8693_0_put_NULL(x, x2) :|: x1 < x 25.83/7.90 (3) f8693_0_put_NULL(x4, java.lang.Object(javaUtilEx.HashMap$Entry(x5, x6, x7))) -> f8693_0_put_NULL(x4, x6) :|: x5 > x4 25.83/7.90 (4) f8693_0_put_NULL(x8, java.lang.Object(javaUtilEx.HashMap$Entry(x8, x9, java.lang.Object(x10)))) -> f8693_0_put_NULL(x8, x9) :|: TRUE 25.83/7.90 (5) f8693_0_put_NULL(x11, java.lang.Object(javaUtilEx.HashMap$Entry(x11, x12, java.lang.Object(javaUtilEx.Content)))) -> f8693_0_put_NULL(x11, x12) :|: TRUE 25.83/7.90 25.83/7.90 Arcs: 25.83/7.90 (1) -> (1), (2), (3), (4), (5) 25.83/7.90 (2) -> (1), (2), (3), (4), (5) 25.83/7.90 (3) -> (1), (2), (3), (4), (5) 25.83/7.90 (4) -> (1), (2), (3), (4), (5) 25.83/7.90 (5) -> (1), (2), (3), (4), (5) 25.83/7.90 25.83/7.90 This digraph is fully evaluated! 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (34) 25.83/7.90 Obligation: 25.83/7.90 25.83/7.90 Termination digraph: 25.83/7.90 Nodes: 25.83/7.90 (1) f8693_0_put_NULL(i3464:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3464:0, o3773:0, NULL))) -> f8693_0_put_NULL(i3464:0, o3773:0) :|: TRUE 25.83/7.90 (2) f8693_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x1, x2, x3))) -> f8693_0_put_NULL(x, x2) :|: x1 < x 25.83/7.90 (3) f8693_0_put_NULL(x4, java.lang.Object(javaUtilEx.HashMap$Entry(x5, x6, x7))) -> f8693_0_put_NULL(x4, x6) :|: x5 > x4 25.83/7.90 (4) f8693_0_put_NULL(x8, java.lang.Object(javaUtilEx.HashMap$Entry(x8, x9, java.lang.Object(x10)))) -> f8693_0_put_NULL(x8, x9) :|: TRUE 25.83/7.90 (5) f8693_0_put_NULL(x11, java.lang.Object(javaUtilEx.HashMap$Entry(x11, x12, java.lang.Object(javaUtilEx.Content)))) -> f8693_0_put_NULL(x11, x12) :|: TRUE 25.83/7.90 25.83/7.90 Arcs: 25.83/7.90 (1) -> (1), (2), (3), (4), (5) 25.83/7.90 (2) -> (1), (2), (3), (4), (5) 25.83/7.90 (3) -> (1), (2), (3), (4), (5) 25.83/7.90 (4) -> (1), (2), (3), (4), (5) 25.83/7.90 (5) -> (1), (2), (3), (4), (5) 25.83/7.90 25.83/7.90 This digraph is fully evaluated! 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (35) IntTRSCompressionProof (EQUIVALENT) 25.83/7.90 Compressed rules. 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (36) 25.83/7.90 Obligation: 25.83/7.90 Rules: 25.83/7.90 f8693_0_put_NULL(x11:0, java.lang.Object(javaUtilEx.HashMap$Entry(x11:0, x12:0, java.lang.Object(javaUtilEx.Content)))) -> f8693_0_put_NULL(x11:0, x12:0) :|: TRUE 25.83/7.90 f8693_0_put_NULL(x:0, java.lang.Object(javaUtilEx.HashMap$Entry(x1:0, x2:0, x3:0))) -> f8693_0_put_NULL(x:0, x2:0) :|: x:0 > x1:0 25.83/7.90 f8693_0_put_NULL(x8:0, java.lang.Object(javaUtilEx.HashMap$Entry(x8:0, x9:0, java.lang.Object(x10:0)))) -> f8693_0_put_NULL(x8:0, x9:0) :|: TRUE 25.83/7.90 f8693_0_put_NULL(i3464:0:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3464:0:0, o3773:0:0, NULL))) -> f8693_0_put_NULL(i3464:0:0, o3773:0:0) :|: TRUE 25.83/7.90 f8693_0_put_NULL(x4:0, java.lang.Object(javaUtilEx.HashMap$Entry(x5:0, x6:0, x7:0))) -> f8693_0_put_NULL(x4:0, x6:0) :|: x5:0 > x4:0 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (37) TempFilterProof (SOUND) 25.83/7.90 Used the following sort dictionary for filtering: 25.83/7.90 f8693_0_put_NULL(VARIABLE, VARIABLE) 25.83/7.90 java.lang.Object(VARIABLE) 25.83/7.90 javaUtilEx.HashMap$Entry(VARIABLE, VARIABLE, VARIABLE) 25.83/7.90 javaUtilEx.Content() 25.83/7.90 NULL() 25.83/7.90 Removed predefined arithmetic. 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (38) 25.83/7.90 Obligation: 25.83/7.90 Rules: 25.83/7.90 f8693_0_put_NULL(x11:0, java.lang.Object(javaUtilEx.HashMap$Entry(x11:0, x12:0, java.lang.Object(javaUtilEx.Content)))) -> f8693_0_put_NULL(x11:0, x12:0) 25.83/7.90 f8693_0_put_NULL(x:0, java.lang.Object(javaUtilEx.HashMap$Entry(x1:0, x2:0, x3:0))) -> f8693_0_put_NULL(x:0, x2:0) 25.83/7.90 f8693_0_put_NULL(x8:0, java.lang.Object(javaUtilEx.HashMap$Entry(x8:0, x9:0, java.lang.Object(x10:0)))) -> f8693_0_put_NULL(x8:0, x9:0) 25.83/7.90 f8693_0_put_NULL(i3464:0:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3464:0:0, o3773:0:0, NULL))) -> f8693_0_put_NULL(i3464:0:0, o3773:0:0) 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (39) IRSwTToQDPProof (SOUND) 25.83/7.90 Removed the integers and created a QDP-Problem. 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (40) 25.83/7.90 Obligation: 25.83/7.90 Q DP problem: 25.83/7.90 The TRS P consists of the following rules: 25.83/7.90 25.83/7.90 f8693_0_put_NULL(x11:0, java.lang.Object(javaUtilEx.HashMap$Entry(x11:0, x12:0, java.lang.Object(javaUtilEx.Content)))) -> f8693_0_put_NULL(x11:0, x12:0) 25.83/7.90 f8693_0_put_NULL(x:0, java.lang.Object(javaUtilEx.HashMap$Entry(x1:0, x2:0, x3:0))) -> f8693_0_put_NULL(x:0, x2:0) 25.83/7.90 f8693_0_put_NULL(x8:0, java.lang.Object(javaUtilEx.HashMap$Entry(x8:0, x9:0, java.lang.Object(x10:0)))) -> f8693_0_put_NULL(x8:0, x9:0) 25.83/7.90 f8693_0_put_NULL(i3464:0:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3464:0:0, o3773:0:0, NULL))) -> f8693_0_put_NULL(i3464:0:0, o3773:0:0) 25.83/7.90 25.83/7.90 R is empty. 25.83/7.90 Q is empty. 25.83/7.90 We have to consider all (P,Q,R)-chains. 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (41) QDPSizeChangeProof (EQUIVALENT) 25.83/7.90 By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem. 25.83/7.90 25.83/7.90 From the DPs we obtained the following set of size-change graphs: 25.83/7.90 *f8693_0_put_NULL(x11:0, java.lang.Object(javaUtilEx.HashMap$Entry(x11:0, x12:0, java.lang.Object(javaUtilEx.Content)))) -> f8693_0_put_NULL(x11:0, x12:0) 25.83/7.90 The graph contains the following edges 1 >= 1, 2 > 1, 2 > 2 25.83/7.90 25.83/7.90 25.83/7.90 *f8693_0_put_NULL(x:0, java.lang.Object(javaUtilEx.HashMap$Entry(x1:0, x2:0, x3:0))) -> f8693_0_put_NULL(x:0, x2:0) 25.83/7.90 The graph contains the following edges 1 >= 1, 2 > 2 25.83/7.90 25.83/7.90 25.83/7.90 *f8693_0_put_NULL(x8:0, java.lang.Object(javaUtilEx.HashMap$Entry(x8:0, x9:0, java.lang.Object(x10:0)))) -> f8693_0_put_NULL(x8:0, x9:0) 25.83/7.90 The graph contains the following edges 1 >= 1, 2 > 1, 2 > 2 25.83/7.90 25.83/7.90 25.83/7.90 *f8693_0_put_NULL(i3464:0:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3464:0:0, o3773:0:0, NULL))) -> f8693_0_put_NULL(i3464:0:0, o3773:0:0) 25.83/7.90 The graph contains the following edges 1 >= 1, 2 > 1, 2 > 2 25.83/7.90 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (42) 25.83/7.90 YES 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (43) 25.83/7.90 Obligation: 25.83/7.90 SCC of termination graph based on JBC Program. 25.83/7.90 SCC contains nodes from the following methods: javaUtilEx.juHashMapCreateSize.createMap(I)LjavaUtilEx/HashMap; 25.83/7.90 SCC calls the following helper methods: javaUtilEx.HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;, javaUtilEx.Content.hashCode()I, javaUtilEx.Content.equals(Ljava/lang/Object;)Z 25.83/7.90 Performed SCC analyses: 25.83/7.90 *Used field analysis yielded the following read fields: 25.83/7.90 *java.lang.String: [count] 25.83/7.90 *Marker field analysis yielded the following relations that could be markers: 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (44) SCCToIRSProof (SOUND) 25.83/7.90 Transformed FIGraph SCCs to intTRSs. Log: 25.83/7.90 Generated rules. Obtained 81 IRulesP rules: 25.83/7.90 f8291_0_createMap_LE(EOS(STATIC_8291(java.lang.Object(o3555sub), i3208)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3227) -> f8295_0_createMap_LE(EOS(STATIC_8295(java.lang.Object(o3555sub), i3208)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3227) :|: TRUE 25.83/7.90 f8295_0_createMap_LE(EOS(STATIC_8295(java.lang.Object(o3555sub), i3208)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3227) -> f8300_0_createMap_New(EOS(STATIC_8300(java.lang.Object(o3555sub), i3208)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: i3227 > 0 25.83/7.90 f8300_0_createMap_New(EOS(STATIC_8300(java.lang.Object(o3555sub), i3208)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f8305_0_createMap_Duplicate(EOS(STATIC_8305(java.lang.Object(o3555sub), i3208)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8305_0_createMap_Duplicate(EOS(STATIC_8305(java.lang.Object(o3555sub), i3208)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) -> f8309_0_createMap_InvokeMethod(EOS(STATIC_8309(java.lang.Object(o3555sub), i3208)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8309_0_createMap_InvokeMethod(EOS(STATIC_8309(java.lang.Object(o3555sub), i3208)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8313_0_random_FieldAccess(EOS(STATIC_8313(java.lang.Object(o3555sub), i3208)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8313_0_random_FieldAccess(EOS(STATIC_8313(java.lang.Object(o3555sub), i3208)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8323_0_random_FieldAccess(EOS(STATIC_8323(java.lang.Object(o3555sub), i3208)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3555sub)) :|: TRUE 25.83/7.90 f8323_0_random_FieldAccess(EOS(STATIC_8323(java.lang.Object(o3555sub), i3208)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3555sub)) -> f8328_0_random_ArrayAccess(EOS(STATIC_8328(java.lang.Object(o3555sub), i3208)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3555sub), i3208) :|: TRUE 25.83/7.90 f8328_0_random_ArrayAccess(EOS(STATIC_8328(java.lang.Object(ARRAY(i3255)), i3208)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3255)), i3208) -> f8333_0_random_ArrayAccess(EOS(STATIC_8333(java.lang.Object(ARRAY(i3255)), i3208)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3255)), i3208) :|: i3255 >= 0 25.83/7.90 f8333_0_random_ArrayAccess(EOS(STATIC_8333(java.lang.Object(ARRAY(i3255)), i3257)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3255)), i3257) -> f8339_0_random_ArrayAccess(EOS(STATIC_8339(java.lang.Object(ARRAY(i3255)), i3257)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3255)), i3257) :|: TRUE 25.83/7.90 f8339_0_random_ArrayAccess(EOS(STATIC_8339(java.lang.Object(ARRAY(i3255)), i3257)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3255)), i3257) -> f8345_0_random_ArrayAccess(EOS(STATIC_8345(java.lang.Object(ARRAY(i3255)), i3257)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3255)), i3257) :|: TRUE 25.83/7.90 f8345_0_random_ArrayAccess(EOS(STATIC_8345(java.lang.Object(ARRAY(i3255)), i3257)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3255)), i3257) -> f8351_0_random_Store(EOS(STATIC_8351(java.lang.Object(ARRAY(i3255)), i3257)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3586) :|: i3257 < i3255 25.83/7.90 f8351_0_random_Store(EOS(STATIC_8351(java.lang.Object(ARRAY(i3255)), i3257)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3586) -> f8357_0_random_FieldAccess(EOS(STATIC_8357(java.lang.Object(ARRAY(i3255)), i3257)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3586) :|: TRUE 25.83/7.90 f8357_0_random_FieldAccess(EOS(STATIC_8357(java.lang.Object(ARRAY(i3255)), i3257)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3586) -> f8363_0_random_ConstantStackPush(EOS(STATIC_8363(java.lang.Object(ARRAY(i3255)), i3257)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3586, i3257) :|: TRUE 25.83/7.90 f8363_0_random_ConstantStackPush(EOS(STATIC_8363(java.lang.Object(ARRAY(i3255)), i3257)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3586, i3257) -> f8369_0_random_IntArithmetic(EOS(STATIC_8369(java.lang.Object(ARRAY(i3255)), i3257)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3586, i3257, 1) :|: TRUE 25.83/7.90 f8369_0_random_IntArithmetic(EOS(STATIC_8369(java.lang.Object(ARRAY(i3255)), i3257)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3586, i3257, matching1) -> f8375_0_random_FieldAccess(EOS(STATIC_8375(java.lang.Object(ARRAY(i3255)), i3257)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3586, i3257 + 1) :|: i3257 >= 0 && matching1 = 1 25.83/7.90 f8375_0_random_FieldAccess(EOS(STATIC_8375(java.lang.Object(ARRAY(i3255)), i3257)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3586, i3260) -> f8381_0_random_Load(EOS(STATIC_8381(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3586) :|: TRUE 25.83/7.90 f8381_0_random_Load(EOS(STATIC_8381(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3586) -> f8387_0_random_InvokeMethod(EOS(STATIC_8387(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3586) :|: TRUE 25.83/7.90 f8387_0_random_InvokeMethod(EOS(STATIC_8387(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3596sub)) -> f8391_0_random_InvokeMethod(EOS(STATIC_8391(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3596sub)) :|: TRUE 25.83/7.90 f8391_0_random_InvokeMethod(EOS(STATIC_8391(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3602sub)) -> f8397_0_random_InvokeMethod(EOS(STATIC_8397(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3602sub)) :|: TRUE 25.83/7.90 f8397_0_random_InvokeMethod(EOS(STATIC_8397(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3602sub)) -> f8403_0_length_Load(EOS(STATIC_8403(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3602sub)) :|: TRUE 25.83/7.90 f8403_0_length_Load(EOS(STATIC_8403(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3602sub)) -> f8414_0_length_FieldAccess(EOS(STATIC_8414(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3602sub)) :|: TRUE 25.83/7.90 f8414_0_length_FieldAccess(EOS(STATIC_8414(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(java.lang.String(EOC, i3265))) -> f8420_0_length_FieldAccess(EOS(STATIC_8420(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(java.lang.String(EOC, i3265))) :|: i3265 >= 0 25.83/7.90 f8420_0_length_FieldAccess(EOS(STATIC_8420(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(java.lang.String(EOC, i3265))) -> f8424_0_length_Return(EOS(STATIC_8424(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3265) :|: TRUE 25.83/7.90 f8424_0_length_Return(EOS(STATIC_8424(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3265) -> f8429_0_random_Return(EOS(STATIC_8429(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3265) :|: TRUE 25.83/7.90 f8429_0_random_Return(EOS(STATIC_8429(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3265) -> f8435_0_createMap_InvokeMethod(EOS(STATIC_8435(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3265) :|: TRUE 25.83/7.90 f8435_0_createMap_InvokeMethod(EOS(STATIC_8435(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3265) -> f8439_0__init__Load(EOS(STATIC_8439(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3265) :|: TRUE 25.83/7.90 f8439_0__init__Load(EOS(STATIC_8439(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3265) -> f8450_0__init__InvokeMethod(EOS(STATIC_8450(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3265, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8450_0__init__InvokeMethod(EOS(STATIC_8450(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3265, java.lang.Object(javaUtilEx.Content(EOC))) -> f8454_0__init__Load(EOS(STATIC_8454(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3265) :|: TRUE 25.83/7.90 f8454_0__init__Load(EOS(STATIC_8454(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3265) -> f8460_0__init__Load(EOS(STATIC_8460(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3265, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8460_0__init__Load(EOS(STATIC_8460(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3265, java.lang.Object(javaUtilEx.Content(EOC))) -> f8466_0__init__FieldAccess(EOS(STATIC_8466(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3265) :|: TRUE 25.83/7.90 f8466_0__init__FieldAccess(EOS(STATIC_8466(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3265) -> f8472_0__init__Return(EOS(STATIC_8472(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8472_0__init__Return(EOS(STATIC_8472(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) -> f8478_0_createMap_Store(EOS(STATIC_8478(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8478_0_createMap_Store(EOS(STATIC_8478(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) -> f8484_0_createMap_New(EOS(STATIC_8484(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8484_0_createMap_New(EOS(STATIC_8484(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) -> f8490_0_createMap_Duplicate(EOS(STATIC_8490(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8490_0_createMap_Duplicate(EOS(STATIC_8490(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8496_0_createMap_InvokeMethod(EOS(STATIC_8496(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8496_0_createMap_InvokeMethod(EOS(STATIC_8496(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8502_0_random_FieldAccess(EOS(STATIC_8502(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8502_0_random_FieldAccess(EOS(STATIC_8502(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8511_0_random_FieldAccess(EOS(STATIC_8511(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3255))) :|: TRUE 25.83/7.90 f8511_0_random_FieldAccess(EOS(STATIC_8511(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3255))) -> f8515_0_random_ArrayAccess(EOS(STATIC_8515(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3255)), i3260) :|: TRUE 25.83/7.90 f8515_0_random_ArrayAccess(EOS(STATIC_8515(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3255)), i3260) -> f8519_0_random_ArrayAccess(EOS(STATIC_8519(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3255)), i3260) :|: TRUE 25.83/7.90 f8519_0_random_ArrayAccess(EOS(STATIC_8519(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3255)), i3260) -> f8523_0_random_Store(EOS(STATIC_8523(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3683) :|: i3260 < i3255 25.83/7.90 f8523_0_random_Store(EOS(STATIC_8523(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3683) -> f8527_0_random_FieldAccess(EOS(STATIC_8527(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3683) :|: TRUE 25.83/7.90 f8527_0_random_FieldAccess(EOS(STATIC_8527(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3683) -> f8528_0_random_ConstantStackPush(EOS(STATIC_8528(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3683, i3260) :|: TRUE 25.83/7.90 f8528_0_random_ConstantStackPush(EOS(STATIC_8528(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3683, i3260) -> f8531_0_random_IntArithmetic(EOS(STATIC_8531(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3683, i3260, 1) :|: TRUE 25.83/7.90 f8531_0_random_IntArithmetic(EOS(STATIC_8531(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3683, i3260, matching1) -> f8533_0_random_FieldAccess(EOS(STATIC_8533(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3683, i3260 + 1) :|: i3260 > 0 && matching1 = 1 25.83/7.90 f8533_0_random_FieldAccess(EOS(STATIC_8533(java.lang.Object(ARRAY(i3255)), i3260)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3683, i3348) -> f8534_0_random_Load(EOS(STATIC_8534(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3683) :|: TRUE 25.83/7.90 f8534_0_random_Load(EOS(STATIC_8534(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3683) -> f8536_0_random_InvokeMethod(EOS(STATIC_8536(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3683) :|: TRUE 25.83/7.90 f8536_0_random_InvokeMethod(EOS(STATIC_8536(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3696sub)) -> f8538_0_random_InvokeMethod(EOS(STATIC_8538(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3696sub)) :|: TRUE 25.83/7.90 f8538_0_random_InvokeMethod(EOS(STATIC_8538(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3697sub)) -> f8540_0_random_InvokeMethod(EOS(STATIC_8540(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3697sub)) :|: TRUE 25.83/7.90 f8540_0_random_InvokeMethod(EOS(STATIC_8540(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3697sub)) -> f8543_0_length_Load(EOS(STATIC_8543(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3697sub)) :|: TRUE 25.83/7.90 f8543_0_length_Load(EOS(STATIC_8543(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3697sub)) -> f8546_0_length_FieldAccess(EOS(STATIC_8546(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3697sub)) :|: TRUE 25.83/7.90 f8546_0_length_FieldAccess(EOS(STATIC_8546(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(java.lang.String(EOC, i3361))) -> f8549_0_length_FieldAccess(EOS(STATIC_8549(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(java.lang.String(EOC, i3361))) :|: i3361 >= 0 25.83/7.90 f8549_0_length_FieldAccess(EOS(STATIC_8549(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(java.lang.String(EOC, i3361))) -> f8551_0_length_Return(EOS(STATIC_8551(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3361) :|: TRUE 25.83/7.90 f8551_0_length_Return(EOS(STATIC_8551(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3361) -> f8553_0_random_Return(EOS(STATIC_8553(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3361) :|: TRUE 25.83/7.90 f8553_0_random_Return(EOS(STATIC_8553(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3361) -> f8556_0_createMap_InvokeMethod(EOS(STATIC_8556(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3361) :|: TRUE 25.83/7.90 f8556_0_createMap_InvokeMethod(EOS(STATIC_8556(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3361) -> f8558_0__init__Load(EOS(STATIC_8558(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3361) :|: TRUE 25.83/7.90 f8558_0__init__Load(EOS(STATIC_8558(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3361) -> f8563_0__init__InvokeMethod(EOS(STATIC_8563(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3361, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8563_0__init__InvokeMethod(EOS(STATIC_8563(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3361, java.lang.Object(javaUtilEx.Content(EOC))) -> f8565_0__init__Load(EOS(STATIC_8565(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3361) :|: TRUE 25.83/7.90 f8565_0__init__Load(EOS(STATIC_8565(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3361) -> f8568_0__init__Load(EOS(STATIC_8568(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3361, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8568_0__init__Load(EOS(STATIC_8568(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3361, java.lang.Object(javaUtilEx.Content(EOC))) -> f8571_0__init__FieldAccess(EOS(STATIC_8571(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3361) :|: TRUE 25.83/7.90 f8571_0__init__FieldAccess(EOS(STATIC_8571(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3361) -> f8574_0__init__Return(EOS(STATIC_8574(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8574_0__init__Return(EOS(STATIC_8574(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8577_0_createMap_Store(EOS(STATIC_8577(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8577_0_createMap_Store(EOS(STATIC_8577(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8580_0_createMap_Load(EOS(STATIC_8580(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8580_0_createMap_Load(EOS(STATIC_8580(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8583_0_createMap_Load(EOS(STATIC_8583(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 25.83/7.90 f8583_0_createMap_Load(EOS(STATIC_8583(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f8586_0_createMap_Load(EOS(STATIC_8586(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8586_0_createMap_Load(EOS(STATIC_8586(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) -> f8589_0_createMap_InvokeMethod(EOS(STATIC_8589(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8589_0_createMap_InvokeMethod(EOS(STATIC_8589(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8592_0_put_Load(EOS(STATIC_8592(java.lang.Object(ARRAY(i3255)), i3348)), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: i3228 >= 1 && i3227 >= 1 && i3348 > 1 && i3228 >= i3227 25.83/7.90 f8589_0_createMap_InvokeMethod(EOS(STATIC_8589(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8592_1_put_Load(EOS(STATIC_8592(java.lang.Object(ARRAY(i3255)), i3348)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: i3228 >= 1 && i3227 >= 1 && i3348 > 1 && i3228 >= i3227 25.83/7.90 f8592_0_put_Load(EOS(STATIC_8592(java.lang.Object(ARRAY(i3255)), i3348)), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f9894_0_put_Load(EOS(STATIC_9894(java.lang.Object(ARRAY(i3255)), i3348)), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.83/7.90 f8839_0_put_Return(EOS(STATIC_8839(java.lang.Object(ARRAY(i3692)), i3694)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f8842_0_createMap_StackPop(EOS(STATIC_8842(java.lang.Object(ARRAY(i3692)), i3694)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 25.83/7.90 f8842_0_createMap_StackPop(EOS(STATIC_8842(java.lang.Object(ARRAY(i3692)), i3694)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f8845_0_createMap_Inc(EOS(STATIC_8845(java.lang.Object(ARRAY(i3692)), i3694)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 25.83/7.90 f8845_0_createMap_Inc(EOS(STATIC_8845(java.lang.Object(ARRAY(i3692)), i3694)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f8848_0_createMap_JMP(EOS(STATIC_8848(java.lang.Object(ARRAY(i3692)), i3694)), i3227 + -1, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 25.83/7.90 f8848_0_createMap_JMP(EOS(STATIC_8848(java.lang.Object(ARRAY(i3692)), i3694)), i3695, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f8851_0_createMap_Load(EOS(STATIC_8851(java.lang.Object(ARRAY(i3692)), i3694)), i3695, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 25.83/7.90 f8851_0_createMap_Load(EOS(STATIC_8851(java.lang.Object(ARRAY(i3692)), i3694)), i3695, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f8288_0_createMap_Load(EOS(STATIC_8288(java.lang.Object(ARRAY(i3692)), i3694)), i3695, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 25.83/7.90 f8288_0_createMap_Load(EOS(STATIC_8288(java.lang.Object(o3555sub), i3208)), i3210, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f8291_0_createMap_LE(EOS(STATIC_8291(java.lang.Object(o3555sub), i3208)), i3210, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3210) :|: TRUE 25.83/7.90 f8895_0_put_Return(EOS(STATIC_8895(java.lang.Object(ARRAY(i3727)), i3729)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) -> f8898_0_createMap_StackPop(EOS(STATIC_8898(java.lang.Object(ARRAY(i3727)), i3729)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) :|: TRUE 25.83/7.90 f8898_0_createMap_StackPop(EOS(STATIC_8898(java.lang.Object(ARRAY(i3727)), i3729)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) -> f8901_0_createMap_Inc(EOS(STATIC_8901(java.lang.Object(ARRAY(i3727)), i3729)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 25.83/7.90 f8901_0_createMap_Inc(EOS(STATIC_8901(java.lang.Object(ARRAY(i3727)), i3729)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f8845_0_createMap_Inc(EOS(STATIC_8845(java.lang.Object(ARRAY(i3727)), i3729)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 25.83/7.90 f9335_0_put_Return(EOS(STATIC_9335(java.lang.Object(ARRAY(i3928)), i3930)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) -> f8895_0_put_Return(EOS(STATIC_8895(java.lang.Object(ARRAY(i3928)), i3930)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) :|: TRUE 25.83/7.90 f8592_1_put_Load(EOS(STATIC_8592(java.lang.Object(ARRAY(i3692)), i3694)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8839_0_put_Return(EOS(STATIC_8839(java.lang.Object(ARRAY(i3692)), i3694)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 25.83/7.90 f8592_1_put_Load(EOS(STATIC_8592(java.lang.Object(ARRAY(i3727)), i3729)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8895_0_put_Return(EOS(STATIC_8895(java.lang.Object(ARRAY(i3727)), i3729)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) :|: TRUE 25.83/7.90 f8592_1_put_Load(EOS(STATIC_8592(java.lang.Object(ARRAY(i3928)), i3930)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f9335_0_put_Return(EOS(STATIC_9335(java.lang.Object(ARRAY(i3928)), i3930)), i3227, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) :|: TRUE 25.83/7.90 Combined rules. Obtained 2 IRulesP rules: 25.83/7.90 f8291_0_createMap_LE(EOS(STATIC_8291(java.lang.Object(ARRAY(i3255:0)), i3208:0)), i3227:0, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3227:0) -> f8291_0_createMap_LE(EOS(STATIC_8291(java.lang.Object(ARRAY(i3255:0)), i3208:0 + 2)), i3227:0 - 1, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3227:0 - 1) :|: i3255:0 > i3208:0 + 1 && i3227:0 > 0 && i3255:0 > -1 && i3208:0 > -1 && i3265:0 > -1 && i3361:0 > -1 && i3228:0 > 0 && i3228:0 >= i3227:0 25.83/7.90 Removed following non-SCC rules: 25.83/7.90 f8291_0_createMap_LE(EOS(STATIC_8291(java.lang.Object(ARRAY(i3255:0)), i3208:0)), i3227:0, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3227:0) -> f9894_0_put_Load(EOS(STATIC_9894(java.lang.Object(ARRAY(i3255:0)), i3208:0 + 2)), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: i3255:0 > i3208:0 + 1 && i3227:0 > 0 && i3255:0 > -1 && i3208:0 > -1 && i3265:0 > -1 && i3361:0 > -1 && i3228:0 > 0 && i3228:0 >= i3227:0 25.83/7.90 Filtered constant ground arguments: 25.83/7.90 f8291_0_createMap_LE(x1, x2, x3, x4) -> f8291_0_createMap_LE(x1, x2, x4) 25.83/7.90 javaUtilEx.AbstractMap(x1) -> javaUtilEx.AbstractMap 25.83/7.90 javaUtilEx.HashMap(x1) -> javaUtilEx.HashMap 25.83/7.90 Filtered duplicate arguments: 25.83/7.90 f8291_0_createMap_LE(x1, x2, x3) -> f8291_0_createMap_LE(x1, x3) 25.83/7.90 Finished conversion. Obtained 1 rules.P rules: 25.83/7.90 f8291_0_createMap_LE(i3227:0, i3255:0, i3208:0) -> f8291_0_createMap_LE(i3227:0 - 1, i3255:0, i3208:0 + 2) :|: i3227:0 > 0 && i3255:0 > i3208:0 + 1 && i3255:0 > -1 && i3208:0 > -1 && i3265:0 > -1 && i3361:0 > -1 && i3228:0 >= i3227:0 && i3228:0 > 0 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (45) 25.83/7.90 Obligation: 25.83/7.90 Rules: 25.83/7.90 f8291_0_createMap_LE(i3227:0, i3255:0, i3208:0) -> f8291_0_createMap_LE(i3227:0 - 1, i3255:0, i3208:0 + 2) :|: i3227:0 > 0 && i3255:0 > i3208:0 + 1 && i3255:0 > -1 && i3208:0 > -1 && i3265:0 > -1 && i3361:0 > -1 && i3228:0 >= i3227:0 && i3228:0 > 0 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (46) IRSFormatTransformerProof (EQUIVALENT) 25.83/7.90 Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (47) 25.83/7.90 Obligation: 25.83/7.90 Rules: 25.83/7.90 f8291_0_createMap_LE(i3227:0, i3255:0, i3208:0) -> f8291_0_createMap_LE(arith, i3255:0, arith1) :|: i3227:0 > 0 && i3255:0 > i3208:0 + 1 && i3255:0 > -1 && i3208:0 > -1 && i3265:0 > -1 && i3361:0 > -1 && i3228:0 >= i3227:0 && i3228:0 > 0 && arith = i3227:0 - 1 && arith1 = i3208:0 + 2 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (48) IRSwTTerminationDigraphProof (EQUIVALENT) 25.83/7.90 Constructed termination digraph! 25.83/7.90 Nodes: 25.83/7.90 (1) f8291_0_createMap_LE(i3227:0, i3255:0, i3208:0) -> f8291_0_createMap_LE(arith, i3255:0, arith1) :|: i3227:0 > 0 && i3255:0 > i3208:0 + 1 && i3255:0 > -1 && i3208:0 > -1 && i3265:0 > -1 && i3361:0 > -1 && i3228:0 >= i3227:0 && i3228:0 > 0 && arith = i3227:0 - 1 && arith1 = i3208:0 + 2 25.83/7.90 25.83/7.90 Arcs: 25.83/7.90 (1) -> (1) 25.83/7.90 25.83/7.90 This digraph is fully evaluated! 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (49) 25.83/7.90 Obligation: 25.83/7.90 25.83/7.90 Termination digraph: 25.83/7.90 Nodes: 25.83/7.90 (1) f8291_0_createMap_LE(i3227:0, i3255:0, i3208:0) -> f8291_0_createMap_LE(arith, i3255:0, arith1) :|: i3227:0 > 0 && i3255:0 > i3208:0 + 1 && i3255:0 > -1 && i3208:0 > -1 && i3265:0 > -1 && i3361:0 > -1 && i3228:0 >= i3227:0 && i3228:0 > 0 && arith = i3227:0 - 1 && arith1 = i3208:0 + 2 25.83/7.90 25.83/7.90 Arcs: 25.83/7.90 (1) -> (1) 25.83/7.90 25.83/7.90 This digraph is fully evaluated! 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (50) IntTRSCompressionProof (EQUIVALENT) 25.83/7.90 Compressed rules. 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (51) 25.83/7.90 Obligation: 25.83/7.90 Rules: 25.83/7.90 f8291_0_createMap_LE(i3227:0:0, i3255:0:0, i3208:0:0) -> f8291_0_createMap_LE(i3227:0:0 - 1, i3255:0:0, i3208:0:0 + 2) :|: i3228:0:0 >= i3227:0:0 && i3228:0:0 > 0 && i3361:0:0 > -1 && i3265:0:0 > -1 && i3208:0:0 > -1 && i3255:0:0 > -1 && i3255:0:0 > i3208:0:0 + 1 && i3227:0:0 > 0 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (52) TempFilterProof (SOUND) 25.83/7.90 Used the following sort dictionary for filtering: 25.83/7.90 f8291_0_createMap_LE(INTEGER, INTEGER, INTEGER) 25.83/7.90 Replaced non-predefined constructor symbols by 0. 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (53) 25.83/7.90 Obligation: 25.83/7.90 Rules: 25.83/7.90 f8291_0_createMap_LE(i3227:0:0, i3255:0:0, i3208:0:0) -> f8291_0_createMap_LE(c, i3255:0:0, c1) :|: c1 = i3208:0:0 + 2 && c = i3227:0:0 - 1 && (i3228:0:0 >= i3227:0:0 && i3228:0:0 > 0 && i3361:0:0 > -1 && i3265:0:0 > -1 && i3208:0:0 > -1 && i3255:0:0 > -1 && i3255:0:0 > i3208:0:0 + 1 && i3227:0:0 > 0) 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (54) PolynomialOrderProcessor (EQUIVALENT) 25.83/7.90 Found the following polynomial interpretation: 25.83/7.90 [f8291_0_createMap_LE(x, x1, x2)] = x 25.83/7.90 25.83/7.90 The following rules are decreasing: 25.83/7.90 f8291_0_createMap_LE(i3227:0:0, i3255:0:0, i3208:0:0) -> f8291_0_createMap_LE(c, i3255:0:0, c1) :|: c1 = i3208:0:0 + 2 && c = i3227:0:0 - 1 && (i3228:0:0 >= i3227:0:0 && i3228:0:0 > 0 && i3361:0:0 > -1 && i3265:0:0 > -1 && i3208:0:0 > -1 && i3255:0:0 > -1 && i3255:0:0 > i3208:0:0 + 1 && i3227:0:0 > 0) 25.83/7.90 The following rules are bounded: 25.83/7.90 f8291_0_createMap_LE(i3227:0:0, i3255:0:0, i3208:0:0) -> f8291_0_createMap_LE(c, i3255:0:0, c1) :|: c1 = i3208:0:0 + 2 && c = i3227:0:0 - 1 && (i3228:0:0 >= i3227:0:0 && i3228:0:0 > 0 && i3361:0:0 > -1 && i3265:0:0 > -1 && i3208:0:0 > -1 && i3255:0:0 > -1 && i3255:0:0 > i3208:0:0 + 1 && i3227:0:0 > 0) 25.83/7.90 25.83/7.90 ---------------------------------------- 25.83/7.90 25.83/7.90 (55) 25.83/7.90 YES 25.83/7.93 EOF