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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

This implementation calls entrySet().clear(). 24.17/7.59 * 24.17/7.59 *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

24.17/7.60	 *   Map m = Collections.synchronizedMap(new HashMap(...));
24.17/7.60 * 24.17/7.60 *

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

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

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

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

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

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

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

24.28/7.60 * 24.28/7.60 *

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

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

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

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

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

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

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

This interface is a member of the 24.28/7.60 * 24.28/7.60 * Java Collections Framework. 24.28/7.60 * 24.28/7.60 *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

This implementation calls entrySet().clear(). 24.28/7.61 * 24.28/7.61 *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

24.28/7.62	 *   Map m = Collections.synchronizedMap(new HashMap(...));
24.28/7.62 * 24.28/7.62 *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

This interface is a member of the 24.28/7.62 * 24.28/7.62 * Java Collections Framework. 24.28/7.62 * 24.28/7.62 *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Note that the detail message associated with cause is 24.28/7.63 * not automatically incorporated in this exception's detail 24.28/7.63 * message. 24.28/7.63 * 24.28/7.63 * @param message the detail message (which is saved for later retrieval 24.28/7.63 * by the {@link Throwable#getMessage()} method). 24.28/7.63 * @param cause the cause (which is saved for later retrieval by the 24.28/7.63 * {@link Throwable#getCause()} method). (A null value 24.28/7.63 * is permitted, and indicates that the cause is nonexistent or 24.28/7.63 * unknown.) 24.28/7.63 * @since 1.5 24.28/7.63 */ 24.28/7.63 public UnsupportedOperationException(String message, Throwable cause) { 24.28/7.63 super(message, cause); 24.28/7.63 } 24.28/7.63 24.28/7.63 /** 24.28/7.63 * Constructs a new exception with the specified cause and a detail 24.28/7.63 * message of (cause==null ? null : cause.toString()) (which 24.28/7.63 * typically contains the class and detail message of cause). 24.28/7.63 * This constructor is useful for exceptions that are little more than 24.28/7.63 * wrappers for other throwables (for example, {@link 24.28/7.63 * java.security.PrivilegedActionException}). 24.28/7.63 * 24.28/7.63 * @param cause the cause (which is saved for later retrieval by the 24.28/7.63 * {@link Throwable#getCause()} method). (A null value is 24.28/7.63 * permitted, and indicates that the cause is nonexistent or 24.28/7.63 * unknown.) 24.28/7.63 * @since 1.5 24.28/7.63 */ 24.28/7.63 public UnsupportedOperationException(Throwable cause) { 24.28/7.63 super(cause); 24.28/7.63 } 24.28/7.63 24.28/7.63 static final long serialVersionUID = -1242599979055084673L; 24.28/7.63 } 24.28/7.63 24.28/7.63 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (3) JBCToGraph (EQUIVALENT) 24.28/7.63 Constructed TerminationGraph. 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (4) 24.28/7.63 Obligation: 24.28/7.63 Termination Graph based on JBC Program: 24.28/7.63 javaUtilEx.juHashMapCreateClear.main([Ljava/lang/String;)V: Graph of 182 nodes with 1 SCC. 24.28/7.63 24.28/7.63 24.28/7.63 24.28/7.63 javaUtilEx.juHashMapCreateClear.createMap(I)LjavaUtilEx/HashMap;: Graph of 248 nodes with 1 SCC. 24.28/7.63 24.28/7.63 24.28/7.63 24.28/7.63 javaUtilEx.HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;: Graph of 493 nodes with 2 SCCs. 24.28/7.63 24.28/7.63 24.28/7.63 24.28/7.63 javaUtilEx.Content.hashCode()I: Graph of 6 nodes with 0 SCCs. 24.28/7.63 24.28/7.63 24.28/7.63 24.28/7.63 javaUtilEx.Content.equals(Ljava/lang/Object;)Z: Graph of 31 nodes with 0 SCCs. 24.28/7.63 24.28/7.63 24.28/7.63 24.28/7.63 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (5) TerminationGraphToSCCProof (SOUND) 24.28/7.63 Splitted TerminationGraph to 4 SCCss. 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (6) 24.28/7.63 Complex Obligation (AND) 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (7) 24.28/7.63 Obligation: 24.28/7.63 SCC of termination graph based on JBC Program. 24.28/7.63 SCC contains nodes from the following methods: javaUtilEx.HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 24.28/7.63 SCC calls the following helper methods: 24.28/7.63 Performed SCC analyses: 24.28/7.63 *Used field analysis yielded the following read fields: 24.28/7.63 *javaUtilEx.HashMap$Entry: [next, hash] 24.28/7.63 *Marker field analysis yielded the following relations that could be markers: 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (8) SCCToIRSProof (SOUND) 24.28/7.63 Transformed FIGraph SCCs to intTRSs. Log: 24.28/7.63 Generated rules. Obtained 58 IRulesP rules: 24.28/7.63 f9580_0_transfer_Load(EOS(STATIC_9580), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, i4135) -> f9581_0_transfer_ArrayLength(EOS(STATIC_9581), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, i4135, java.lang.Object(ARRAY(i4134))) :|: TRUE 24.28/7.63 f9581_0_transfer_ArrayLength(EOS(STATIC_9581), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, i4135, java.lang.Object(ARRAY(i4134))) -> f9582_0_transfer_GE(EOS(STATIC_9582), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, i4135, i4134) :|: i4134 >= 0 24.28/7.63 f9582_0_transfer_GE(EOS(STATIC_9582), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, i4135, i4134) -> f9584_0_transfer_GE(EOS(STATIC_9584), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, i4135, i4134) :|: i4135 < i4134 24.28/7.63 f9584_0_transfer_GE(EOS(STATIC_9584), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, i4135, i4134) -> f9586_0_transfer_Load(EOS(STATIC_9586), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135) :|: i4135 < i4134 24.28/7.63 f9586_0_transfer_Load(EOS(STATIC_9586), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135) -> f9588_0_transfer_Load(EOS(STATIC_9588), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(ARRAY(i4134))) :|: TRUE 24.28/7.63 f9588_0_transfer_Load(EOS(STATIC_9588), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(ARRAY(i4134))) -> f9590_0_transfer_ArrayAccess(EOS(STATIC_9590), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(ARRAY(i4134)), i4135) :|: TRUE 24.28/7.63 f9590_0_transfer_ArrayAccess(EOS(STATIC_9590), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(ARRAY(i4134)), i4135) -> f9592_0_transfer_ArrayAccess(EOS(STATIC_9592), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(ARRAY(i4134)), i4135) :|: TRUE 24.28/7.63 f9592_0_transfer_ArrayAccess(EOS(STATIC_9592), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(ARRAY(i4134)), i4135) -> f9595_0_transfer_Store(EOS(STATIC_9595), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, o4329) :|: i4135 < i4134 24.28/7.63 f9595_0_transfer_Store(EOS(STATIC_9595), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, o4329) -> f9598_0_transfer_Load(EOS(STATIC_9598), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, o4329) :|: TRUE 24.28/7.63 f9598_0_transfer_Load(EOS(STATIC_9598), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, o4329) -> f9600_0_transfer_NULL(EOS(STATIC_9600), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, o4329, o4329) :|: TRUE 24.28/7.63 f9600_0_transfer_NULL(EOS(STATIC_9600), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4331sub), java.lang.Object(o4331sub)) -> f9603_0_transfer_NULL(EOS(STATIC_9603), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4331sub), java.lang.Object(o4331sub)) :|: TRUE 24.28/7.63 f9600_0_transfer_NULL(EOS(STATIC_9600), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, NULL, NULL) -> f9604_0_transfer_NULL(EOS(STATIC_9604), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, NULL, NULL) :|: TRUE 24.28/7.63 f9603_0_transfer_NULL(EOS(STATIC_9603), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4331sub), java.lang.Object(o4331sub)) -> f9607_0_transfer_Load(EOS(STATIC_9607), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4331sub)) :|: TRUE 24.28/7.63 f9607_0_transfer_Load(EOS(STATIC_9607), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4331sub)) -> f9610_0_transfer_Load(EOS(STATIC_9610), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4331sub), java.lang.Object(ARRAY(i4134))) :|: TRUE 24.28/7.63 f9610_0_transfer_Load(EOS(STATIC_9610), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4331sub), java.lang.Object(ARRAY(i4134))) -> f9614_0_transfer_ConstantStackPush(EOS(STATIC_9614), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4331sub), java.lang.Object(ARRAY(i4134)), i4135) :|: TRUE 24.28/7.63 f9614_0_transfer_ConstantStackPush(EOS(STATIC_9614), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4331sub), java.lang.Object(ARRAY(i4134)), i4135) -> f9618_0_transfer_ArrayAccess(EOS(STATIC_9618), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4331sub), java.lang.Object(ARRAY(i4134)), i4135, NULL) :|: TRUE 24.28/7.63 f9618_0_transfer_ArrayAccess(EOS(STATIC_9618), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4331sub), java.lang.Object(ARRAY(i4134)), i4135, NULL) -> f9620_0_transfer_ArrayAccess(EOS(STATIC_9620), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4331sub), java.lang.Object(ARRAY(i4134)), i4135, NULL) :|: TRUE 24.28/7.63 f9620_0_transfer_ArrayAccess(EOS(STATIC_9620), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4331sub), java.lang.Object(ARRAY(i4134)), i4135, NULL) -> f9624_0_transfer_Load(EOS(STATIC_9624), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4331put)) :|: i4135 < i4134 24.28/7.63 f9624_0_transfer_Load(EOS(STATIC_9624), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4331sub)) -> f9628_0_transfer_FieldAccess(EOS(STATIC_9628), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4331sub), java.lang.Object(o4331sub)) :|: TRUE 24.28/7.63 f9628_0_transfer_FieldAccess(EOS(STATIC_9628), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146))) -> f9630_0_transfer_FieldAccess(EOS(STATIC_9630), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146))) :|: TRUE 24.28/7.63 f9630_0_transfer_FieldAccess(EOS(STATIC_9630), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146))) -> f9634_0_transfer_Store(EOS(STATIC_9634), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343) :|: TRUE 24.28/7.63 f9634_0_transfer_Store(EOS(STATIC_9634), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343) -> f9637_0_transfer_Load(EOS(STATIC_9637), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343) :|: TRUE 24.28/7.63 f9637_0_transfer_Load(EOS(STATIC_9637), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343) -> f9639_0_transfer_FieldAccess(EOS(STATIC_9639), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146))) :|: TRUE 24.28/7.63 f9639_0_transfer_FieldAccess(EOS(STATIC_9639), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146))) -> f9642_0_transfer_Load(EOS(STATIC_9642), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4146) :|: TRUE 24.28/7.63 f9642_0_transfer_Load(EOS(STATIC_9642), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4146) -> f9645_0_transfer_InvokeMethod(EOS(STATIC_9645), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4146, i3976) :|: TRUE 24.28/7.63 f9645_0_transfer_InvokeMethod(EOS(STATIC_9645), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4146, i3976) -> f9647_0_indexFor_Load(EOS(STATIC_9647), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4146, i3976) :|: TRUE 24.28/7.63 f9647_0_indexFor_Load(EOS(STATIC_9647), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4146, i3976) -> f9652_0_indexFor_Load(EOS(STATIC_9652), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i3976, i4146) :|: TRUE 24.28/7.63 f9652_0_indexFor_Load(EOS(STATIC_9652), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i3976, i4146) -> f9654_0_indexFor_ConstantStackPush(EOS(STATIC_9654), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4146, i3976) :|: TRUE 24.28/7.63 f9654_0_indexFor_ConstantStackPush(EOS(STATIC_9654), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4146, i3976) -> f9657_0_indexFor_IntArithmetic(EOS(STATIC_9657), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4146, i3976, 1) :|: TRUE 24.28/7.63 f9657_0_indexFor_IntArithmetic(EOS(STATIC_9657), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4146, i3976, matching1) -> f9660_0_indexFor_IntArithmetic(EOS(STATIC_9660), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4146, i3976 - 1) :|: i3976 >= 0 && matching1 = 1 24.28/7.63 f9660_0_indexFor_IntArithmetic(EOS(STATIC_9660), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4146, i4163) -> f9662_0_indexFor_Return(EOS(STATIC_9662), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4164) :|: TRUE 24.28/7.63 f9662_0_indexFor_Return(EOS(STATIC_9662), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4164) -> f9665_0_transfer_Store(EOS(STATIC_9665), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4164) :|: TRUE 24.28/7.63 f9665_0_transfer_Store(EOS(STATIC_9665), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4164) -> f9668_0_transfer_Load(EOS(STATIC_9668), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4164) :|: TRUE 24.28/7.63 f9668_0_transfer_Load(EOS(STATIC_9668), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4164) -> f9671_0_transfer_Load(EOS(STATIC_9671), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4164, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146))) :|: TRUE 24.28/7.63 f9671_0_transfer_Load(EOS(STATIC_9671), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4164, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146))) -> f9674_0_transfer_Load(EOS(STATIC_9674), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4164, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), java.lang.Object(ARRAY(i3976))) :|: TRUE 24.28/7.63 f9674_0_transfer_Load(EOS(STATIC_9674), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4164, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), java.lang.Object(ARRAY(i3976))) -> f9677_0_transfer_ArrayAccess(EOS(STATIC_9677), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4164, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), java.lang.Object(ARRAY(i3976)), i4164) :|: TRUE 24.28/7.63 f9677_0_transfer_ArrayAccess(EOS(STATIC_9677), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4164, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), java.lang.Object(ARRAY(i3976)), i4164) -> f9680_0_transfer_ArrayAccess(EOS(STATIC_9680), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4164, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), java.lang.Object(ARRAY(i3976)), i4164) :|: TRUE 24.28/7.63 f9680_0_transfer_ArrayAccess(EOS(STATIC_9680), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4164, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), java.lang.Object(ARRAY(i3976)), i4164) -> f9684_0_transfer_FieldAccess(EOS(STATIC_9684), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4164, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4363) :|: i4164 < i3976 24.28/7.63 f9684_0_transfer_FieldAccess(EOS(STATIC_9684), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4343, i4164, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343, i4146)), o4363) -> f9688_0_transfer_Load(EOS(STATIC_9688), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4363, i4146)), o4343, i4164) :|: TRUE 24.28/7.63 f9688_0_transfer_Load(EOS(STATIC_9688), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4363, i4146)), o4343, i4164) -> f9690_0_transfer_Load(EOS(STATIC_9690), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4363, i4146)), o4343, i4164, java.lang.Object(ARRAY(i3976))) :|: TRUE 24.28/7.63 f9690_0_transfer_Load(EOS(STATIC_9690), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4363, i4146)), o4343, i4164, java.lang.Object(ARRAY(i3976))) -> f9694_0_transfer_Load(EOS(STATIC_9694), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4363, i4146)), o4343, java.lang.Object(ARRAY(i3976)), i4164) :|: TRUE 24.28/7.63 f9694_0_transfer_Load(EOS(STATIC_9694), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4363, i4146)), o4343, java.lang.Object(ARRAY(i3976)), i4164) -> f9697_0_transfer_ArrayAccess(EOS(STATIC_9697), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, o4343, java.lang.Object(ARRAY(i3976)), i4164, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4363, i4146))) :|: TRUE 24.28/7.63 f9697_0_transfer_ArrayAccess(EOS(STATIC_9697), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, o4343, java.lang.Object(ARRAY(i3976)), i4164, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4363, i4146))) -> f9699_0_transfer_ArrayAccess(EOS(STATIC_9699), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, o4343, java.lang.Object(ARRAY(i3976)), i4164, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4363, i4146))) :|: TRUE 24.28/7.63 f9699_0_transfer_ArrayAccess(EOS(STATIC_9699), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, o4343, java.lang.Object(ARRAY(i3976)), i4164, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4363, i4146))) -> f9703_0_transfer_Load(EOS(STATIC_9703), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, o4343) :|: i4164 < i3976 24.28/7.63 f9703_0_transfer_Load(EOS(STATIC_9703), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, o4343) -> f9707_0_transfer_Store(EOS(STATIC_9707), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, o4343) :|: TRUE 24.28/7.63 f9707_0_transfer_Store(EOS(STATIC_9707), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, o4343) -> f9708_0_transfer_Load(EOS(STATIC_9708), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, o4343) :|: TRUE 24.28/7.63 f9708_0_transfer_Load(EOS(STATIC_9708), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, o4343) -> f9711_0_transfer_NONNULL(EOS(STATIC_9711), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, o4343, o4343) :|: TRUE 24.28/7.63 f9711_0_transfer_NONNULL(EOS(STATIC_9711), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4386sub), java.lang.Object(o4386sub)) -> f9714_0_transfer_NONNULL(EOS(STATIC_9714), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4386sub), java.lang.Object(o4386sub)) :|: TRUE 24.28/7.63 f9711_0_transfer_NONNULL(EOS(STATIC_9711), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, NULL, NULL) -> f9715_0_transfer_NONNULL(EOS(STATIC_9715), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, NULL, NULL) :|: TRUE 24.28/7.63 f9714_0_transfer_NONNULL(EOS(STATIC_9714), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4386sub), java.lang.Object(o4386sub)) -> f9716_0_transfer_Load(EOS(STATIC_9716), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4386sub)) :|: TRUE 24.28/7.63 f9716_0_transfer_Load(EOS(STATIC_9716), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4386sub)) -> f9624_0_transfer_Load(EOS(STATIC_9624), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, java.lang.Object(o4386sub)) :|: TRUE 24.28/7.63 f9715_0_transfer_NONNULL(EOS(STATIC_9715), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, NULL, NULL) -> f9717_0_transfer_Inc(EOS(STATIC_9717), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135) :|: TRUE 24.28/7.63 f9717_0_transfer_Inc(EOS(STATIC_9717), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135) -> f9720_0_transfer_JMP(EOS(STATIC_9720), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135 + 1) :|: TRUE 24.28/7.63 f9720_0_transfer_JMP(EOS(STATIC_9720), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4182) -> f9723_0_transfer_Load(EOS(STATIC_9723), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4182) :|: TRUE 24.28/7.63 f9723_0_transfer_Load(EOS(STATIC_9723), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4182) -> f9579_0_transfer_Load(EOS(STATIC_9579), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4182) :|: TRUE 24.28/7.63 f9579_0_transfer_Load(EOS(STATIC_9579), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135) -> f9580_0_transfer_Load(EOS(STATIC_9580), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, i4135) :|: TRUE 24.28/7.63 f9604_0_transfer_NULL(EOS(STATIC_9604), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135, NULL, NULL) -> f9608_0_transfer_Inc(EOS(STATIC_9608), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135) :|: TRUE 24.28/7.63 f9608_0_transfer_Inc(EOS(STATIC_9608), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135) -> f9717_0_transfer_Inc(EOS(STATIC_9717), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976, java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i3976)), java.lang.Object(ARRAY(i4134)), i3976, i4135) :|: TRUE 24.28/7.63 Combined rules. Obtained 4 IRulesP rules: 24.28/7.63 f9580_0_transfer_Load(EOS(STATIC_9580), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976:0, java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i3976:0, i4135:0, i4135:0) -> f9711_0_transfer_NONNULL(EOS(STATIC_9711), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976:0, java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i3976:0, i4135:0, o4343:0, o4343:0) :|: i4134:0 > -1 && i4135:0 < i4134:0 && i3976:0 > -1 && i4164:0 < i3976:0 24.28/7.63 f9580_0_transfer_Load(EOS(STATIC_9580), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976:0, java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i3976:0, i4135:0, i4135:0) -> f9580_0_transfer_Load(EOS(STATIC_9580), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976:0, java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i3976:0, i4135:0 + 1, i4135:0 + 1) :|: i4134:0 > -1 && i4135:0 < i4134:0 24.28/7.63 f9711_0_transfer_NONNULL(EOS(STATIC_9711), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976:0, java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i3976:0, i4135:0, NULL, NULL) -> f9580_0_transfer_Load(EOS(STATIC_9580), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976:0, java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i3976:0, i4135:0 + 1, i4135:0 + 1) :|: TRUE 24.28/7.63 f9711_0_transfer_NONNULL(EOS(STATIC_9711), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976:0, java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i3976:0, i4135:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343:0, i4146:0)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4343:0, i4146:0))) -> f9711_0_transfer_NONNULL(EOS(STATIC_9711), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3976:0, java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i3976:0, i4135:0, o4343:0, o4343:0) :|: i3976:0 > -1 && i4164:0 < i3976:0 24.28/7.63 Filtered constant ground arguments: 24.28/7.63 f9580_0_transfer_Load(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10) -> f9580_0_transfer_Load(x4, x5, x6, x7, x8, x9, x10) 24.28/7.63 f9711_0_transfer_NONNULL(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) -> f9711_0_transfer_NONNULL(x4, x5, x6, x7, x8, x9, x10, x11) 24.28/7.63 javaUtilEx.AbstractMap(x1) -> javaUtilEx.AbstractMap 24.28/7.63 javaUtilEx.HashMap$Entry(x1, x2, x3) -> javaUtilEx.HashMap$Entry(x2, x3) 24.28/7.63 javaUtilEx.HashMap(x1) -> javaUtilEx.HashMap 24.28/7.63 Filtered duplicate arguments: 24.28/7.63 f9580_0_transfer_Load(x1, x2, x3, x4, x5, x6, x7) -> f9580_0_transfer_Load(x3, x4, x7) 24.28/7.63 f9711_0_transfer_NONNULL(x1, x2, x3, x4, x5, x6, x7, x8) -> f9711_0_transfer_NONNULL(x3, x4, x6, x8) 24.28/7.63 Filtered unneeded arguments: 24.28/7.63 javaUtilEx.HashMap$Entry(x1, x2) -> javaUtilEx.HashMap$Entry(x1) 24.28/7.63 Finished conversion. Obtained 4 rules.P rules: 24.28/7.63 f9580_0_transfer_Load(java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i4135:0, i3976:0, i4134:0) -> f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i4135:0, o4343:0, i3976:0, i4134:0) :|: i4135:0 < i4134:0 && i4134:0 > -1 && i4164:0 < i3976:0 && i3976:0 > -1 24.28/7.63 f9580_0_transfer_Load(java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i4135:0, i3976:0, i4134:0) -> f9580_0_transfer_Load(java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i4135:0 + 1, i3976:0, i4134:0) :|: i4134:0 > -1 && i4135:0 < i4134:0 24.28/7.63 f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i4135:0, NULL, i3976:0, i4134:0) -> f9580_0_transfer_Load(java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i4135:0 + 1, i3976:0, i4134:0) :|: TRUE 24.28/7.63 f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i4135:0, java.lang.Object(javaUtilEx.HashMap$Entry(o4343:0)), i3976:0, i4134:0) -> f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i4135:0, o4343:0, i3976:0, i4134:0) :|: i3976:0 > -1 && i4164:0 < i3976:0 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (9) 24.28/7.63 Obligation: 24.28/7.63 Rules: 24.28/7.63 f9580_0_transfer_Load(java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i4135:0, i3976:0, i4134:0) -> f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i4135:0, o4343:0, i3976:0, i4134:0) :|: i4135:0 < i4134:0 && i4134:0 > -1 && i4164:0 < i3976:0 && i3976:0 > -1 24.28/7.63 f9580_0_transfer_Load(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2, x, x1) -> f9580_0_transfer_Load(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2 + 1, x, x1) :|: x1 > -1 && x2 < x1 24.28/7.63 f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x3)), java.lang.Object(ARRAY(x4)), x5, NULL, x3, x4) -> f9580_0_transfer_Load(java.lang.Object(ARRAY(x3)), java.lang.Object(ARRAY(x4)), x5 + 1, x3, x4) :|: TRUE 24.28/7.63 f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6)), java.lang.Object(ARRAY(x7)), x8, java.lang.Object(javaUtilEx.HashMap$Entry(x9)), x6, x7) -> f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6)), java.lang.Object(ARRAY(x7)), x8, x9, x6, x7) :|: x6 > -1 && x10 < x6 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (10) IRSFormatTransformerProof (EQUIVALENT) 24.28/7.63 Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (11) 24.28/7.63 Obligation: 24.28/7.63 Rules: 24.28/7.63 f9580_0_transfer_Load(java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i4135:0, i3976:0, i4134:0) -> f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i4135:0, o4343:0, i3976:0, i4134:0) :|: i4135:0 < i4134:0 && i4134:0 > -1 && i4164:0 < i3976:0 && i3976:0 > -1 24.28/7.63 f9580_0_transfer_Load(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2, x, x1) -> f9580_0_transfer_Load(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), arith, x, x1) :|: x1 > -1 && x2 < x1 && arith = x2 + 1 24.28/7.63 f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x11)), java.lang.Object(ARRAY(x12)), x13, NULL, x11, x12) -> f9580_0_transfer_Load(java.lang.Object(ARRAY(x11)), java.lang.Object(ARRAY(x12)), x14, x11, x12) :|: TRUE && x14 = x13 + 1 24.28/7.63 f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6)), java.lang.Object(ARRAY(x7)), x8, java.lang.Object(javaUtilEx.HashMap$Entry(x9)), x6, x7) -> f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6)), java.lang.Object(ARRAY(x7)), x8, x9, x6, x7) :|: x6 > -1 && x10 < x6 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (12) IRSwTTerminationDigraphProof (EQUIVALENT) 24.28/7.63 Constructed termination digraph! 24.28/7.63 Nodes: 24.28/7.63 (1) f9580_0_transfer_Load(java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i4135:0, i3976:0, i4134:0) -> f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i4135:0, o4343:0, i3976:0, i4134:0) :|: i4135:0 < i4134:0 && i4134:0 > -1 && i4164:0 < i3976:0 && i3976:0 > -1 24.28/7.63 (2) f9580_0_transfer_Load(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2, x, x1) -> f9580_0_transfer_Load(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), arith, x, x1) :|: x1 > -1 && x2 < x1 && arith = x2 + 1 24.28/7.63 (3) f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x11)), java.lang.Object(ARRAY(x12)), x13, NULL, x11, x12) -> f9580_0_transfer_Load(java.lang.Object(ARRAY(x11)), java.lang.Object(ARRAY(x12)), x14, x11, x12) :|: TRUE && x14 = x13 + 1 24.28/7.63 (4) f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6)), java.lang.Object(ARRAY(x7)), x8, java.lang.Object(javaUtilEx.HashMap$Entry(x9)), x6, x7) -> f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6)), java.lang.Object(ARRAY(x7)), x8, x9, x6, x7) :|: x6 > -1 && x10 < x6 24.28/7.63 24.28/7.63 Arcs: 24.28/7.63 (1) -> (3), (4) 24.28/7.63 (2) -> (1), (2) 24.28/7.63 (3) -> (1), (2) 24.28/7.63 (4) -> (3), (4) 24.28/7.63 24.28/7.63 This digraph is fully evaluated! 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (13) 24.28/7.63 Obligation: 24.28/7.63 24.28/7.63 Termination digraph: 24.28/7.63 Nodes: 24.28/7.63 (1) f9580_0_transfer_Load(java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i4135:0, i3976:0, i4134:0) -> f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(i3976:0)), java.lang.Object(ARRAY(i4134:0)), i4135:0, o4343:0, i3976:0, i4134:0) :|: i4135:0 < i4134:0 && i4134:0 > -1 && i4164:0 < i3976:0 && i3976:0 > -1 24.28/7.63 (2) f9580_0_transfer_Load(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2, x, x1) -> f9580_0_transfer_Load(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), arith, x, x1) :|: x1 > -1 && x2 < x1 && arith = x2 + 1 24.28/7.63 (3) f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x11)), java.lang.Object(ARRAY(x12)), x13, NULL, x11, x12) -> f9580_0_transfer_Load(java.lang.Object(ARRAY(x11)), java.lang.Object(ARRAY(x12)), x14, x11, x12) :|: TRUE && x14 = x13 + 1 24.28/7.63 (4) f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6)), java.lang.Object(ARRAY(x7)), x8, java.lang.Object(javaUtilEx.HashMap$Entry(x9)), x6, x7) -> f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6)), java.lang.Object(ARRAY(x7)), x8, x9, x6, x7) :|: x6 > -1 && x10 < x6 24.28/7.63 24.28/7.63 Arcs: 24.28/7.63 (1) -> (3), (4) 24.28/7.63 (2) -> (1), (2) 24.28/7.63 (3) -> (1), (2) 24.28/7.63 (4) -> (3), (4) 24.28/7.63 24.28/7.63 This digraph is fully evaluated! 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (14) IntTRSCompressionProof (EQUIVALENT) 24.28/7.63 Compressed rules. 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (15) 24.28/7.63 Obligation: 24.28/7.63 Rules: 24.28/7.63 f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x11:0)), java.lang.Object(ARRAY(x12:0)), x13:0, NULL, x11:0, x12:0) -> f9580_0_transfer_Load(java.lang.Object(ARRAY(x11:0)), java.lang.Object(ARRAY(x12:0)), x13:0 + 1, x11:0, x12:0) :|: TRUE 24.28/7.63 f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6:0)), java.lang.Object(ARRAY(x7:0)), x8:0, java.lang.Object(javaUtilEx.HashMap$Entry(x9:0)), x6:0, x7:0) -> f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6:0)), java.lang.Object(ARRAY(x7:0)), x8:0, x9:0, x6:0, x7:0) :|: x6:0 > -1 && x6:0 > x10:0 24.28/7.63 f9580_0_transfer_Load(java.lang.Object(ARRAY(x:0)), java.lang.Object(ARRAY(x1:0)), x2:0, x:0, x1:0) -> f9580_0_transfer_Load(java.lang.Object(ARRAY(x:0)), java.lang.Object(ARRAY(x1:0)), x2:0 + 1, x:0, x1:0) :|: x1:0 > -1 && x2:0 < x1:0 24.28/7.63 f9580_0_transfer_Load(java.lang.Object(ARRAY(i3976:0:0)), java.lang.Object(ARRAY(i4134:0:0)), i4135:0:0, i3976:0:0, i4134:0:0) -> f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(i3976:0:0)), java.lang.Object(ARRAY(i4134:0:0)), i4135:0:0, o4343:0:0, i3976:0:0, i4134:0:0) :|: i4164:0:0 < i3976:0:0 && i3976:0:0 > -1 && i4134:0:0 > -1 && i4135:0:0 < i4134:0:0 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (16) TempFilterProof (SOUND) 24.28/7.63 Used the following sort dictionary for filtering: 24.28/7.63 f9711_0_transfer_NONNULL(VARIABLE, VARIABLE, VARIABLE, VARIABLE, VARIABLE, VARIABLE) 24.28/7.63 java.lang.Object(VARIABLE) 24.28/7.63 ARRAY(VARIABLE) 24.28/7.63 NULL() 24.28/7.63 f9580_0_transfer_Load(VARIABLE, VARIABLE, INTEGER, VARIABLE, VARIABLE) 24.28/7.63 javaUtilEx.HashMap$Entry(VARIABLE) 24.28/7.63 Replaced non-predefined constructor symbols by 0.The following proof was generated: 24.28/7.63 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 24.28/7.63 24.28/7.63 24.28/7.63 Termination of the given IntTRS could not be shown: 24.28/7.63 24.28/7.63 24.28/7.63 24.28/7.63 - IntTRS 24.28/7.63 - PolynomialOrderProcessor 24.28/7.63 24.28/7.63 Rules: 24.28/7.63 f9711_0_transfer_NONNULL(c, c1, x13:0, c2, x11:0, x12:0) -> f9580_0_transfer_Load(c3, c4, c5, x11:0, x12:0) :|: c5 = x13:0 + 1 && (c4 = 0 && (c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0)))) && TRUE 24.28/7.63 f9711_0_transfer_NONNULL(c6, c7, x8:0, c8, x6:0, x7:0) -> f9711_0_transfer_NONNULL(c9, c10, x8:0, x9:0, x6:0, x7:0) :|: c10 = 0 && (c9 = 0 && (c8 = 0 && (c7 = 0 && c6 = 0))) && (x6:0 > -1 && x6:0 > x10:0) 24.28/7.63 f9580_0_transfer_Load(c11, c12, x2:0, x:0, x1:0) -> f9580_0_transfer_Load(c13, c14, c15, x:0, x1:0) :|: c15 = x2:0 + 1 && (c14 = 0 && (c13 = 0 && (c12 = 0 && c11 = 0))) && (x1:0 > -1 && x2:0 < x1:0) 24.28/7.63 f9580_0_transfer_Load(c16, c17, i4135:0:0, i3976:0:0, i4134:0:0) -> f9711_0_transfer_NONNULL(c18, c19, i4135:0:0, o4343:0:0, i3976:0:0, i4134:0:0) :|: c19 = 0 && (c18 = 0 && (c17 = 0 && c16 = 0)) && (i4164:0:0 < i3976:0:0 && i3976:0:0 > -1 && i4134:0:0 > -1 && i4135:0:0 < i4134:0:0) 24.28/7.63 24.28/7.63 Found the following polynomial interpretation: 24.28/7.63 [f9711_0_transfer_NONNULL(x, x1, x2, x3, x4, x5)] = -1 + c*x + c1*x1 - x2 + x5 24.28/7.63 [f9580_0_transfer_Load(x6, x7, x8, x9, x10)] = x10 + c6*x6 + c7*x7 - x8 24.28/7.63 24.28/7.63 The following rules are decreasing: 24.28/7.63 f9580_0_transfer_Load(c11, c12, x2:0, x:0, x1:0) -> f9580_0_transfer_Load(c13, c14, c15, x:0, x1:0) :|: c15 = x2:0 + 1 && (c14 = 0 && (c13 = 0 && (c12 = 0 && c11 = 0))) && (x1:0 > -1 && x2:0 < x1:0) 24.28/7.63 f9580_0_transfer_Load(c16, c17, i4135:0:0, i3976:0:0, i4134:0:0) -> f9711_0_transfer_NONNULL(c18, c19, i4135:0:0, o4343:0:0, i3976:0:0, i4134:0:0) :|: c19 = 0 && (c18 = 0 && (c17 = 0 && c16 = 0)) && (i4164:0:0 < i3976:0:0 && i3976:0:0 > -1 && i4134:0:0 > -1 && i4135:0:0 < i4134:0:0) 24.28/7.63 The following rules are bounded: 24.28/7.63 f9580_0_transfer_Load(c11, c12, x2:0, x:0, x1:0) -> f9580_0_transfer_Load(c13, c14, c15, x:0, x1:0) :|: c15 = x2:0 + 1 && (c14 = 0 && (c13 = 0 && (c12 = 0 && c11 = 0))) && (x1:0 > -1 && x2:0 < x1:0) 24.28/7.63 f9580_0_transfer_Load(c16, c17, i4135:0:0, i3976:0:0, i4134:0:0) -> f9711_0_transfer_NONNULL(c18, c19, i4135:0:0, o4343:0:0, i3976:0:0, i4134:0:0) :|: c19 = 0 && (c18 = 0 && (c17 = 0 && c16 = 0)) && (i4164:0:0 < i3976:0:0 && i3976:0:0 > -1 && i4134:0:0 > -1 && i4135:0:0 < i4134:0:0) 24.28/7.63 24.28/7.63 24.28/7.63 - IntTRS 24.28/7.63 - PolynomialOrderProcessor 24.28/7.63 - IntTRS 24.28/7.63 - PolynomialOrderProcessor 24.28/7.63 24.28/7.63 Rules: 24.28/7.63 f9711_0_transfer_NONNULL(c, c1, x13:0, c2, x11:0, x12:0) -> f9580_0_transfer_Load(c3, c4, c5, x11:0, x12:0) :|: c5 = x13:0 + 1 && (c4 = 0 && (c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0)))) && TRUE 24.28/7.63 f9711_0_transfer_NONNULL(c6, c7, x8:0, c8, x6:0, x7:0) -> f9711_0_transfer_NONNULL(c9, c10, x8:0, x9:0, x6:0, x7:0) :|: c10 = 0 && (c9 = 0 && (c8 = 0 && (c7 = 0 && c6 = 0))) && (x6:0 > -1 && x6:0 > x10:0) 24.28/7.63 24.28/7.63 Found the following polynomial interpretation: 24.28/7.63 [f9711_0_transfer_NONNULL(x, x1, x2, x3, x4, x5)] = 1 + c*x + c1*x1 24.28/7.63 [f9580_0_transfer_Load(x6, x7, x8, x9, x10)] = c6*x6 + c7*x7 24.28/7.63 24.28/7.63 The following rules are decreasing: 24.28/7.63 f9711_0_transfer_NONNULL(c, c1, x13:0, c2, x11:0, x12:0) -> f9580_0_transfer_Load(c3, c4, c5, x11:0, x12:0) :|: c5 = x13:0 + 1 && (c4 = 0 && (c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0)))) && TRUE 24.28/7.63 The following rules are bounded: 24.28/7.63 f9711_0_transfer_NONNULL(c, c1, x13:0, c2, x11:0, x12:0) -> f9580_0_transfer_Load(c3, c4, c5, x11:0, x12:0) :|: c5 = x13:0 + 1 && (c4 = 0 && (c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0)))) && TRUE 24.28/7.63 f9711_0_transfer_NONNULL(c6, c7, x8:0, c8, x6:0, x7:0) -> f9711_0_transfer_NONNULL(c9, c10, x8:0, x9:0, x6:0, x7:0) :|: c10 = 0 && (c9 = 0 && (c8 = 0 && (c7 = 0 && c6 = 0))) && (x6:0 > -1 && x6:0 > x10:0) 24.28/7.63 24.28/7.63 24.28/7.63 - IntTRS 24.28/7.63 - PolynomialOrderProcessor 24.28/7.63 - IntTRS 24.28/7.63 - PolynomialOrderProcessor 24.28/7.63 - IntTRS 24.28/7.63 24.28/7.63 Rules: 24.28/7.63 f9711_0_transfer_NONNULL(c6, c7, x8:0, c8, x6:0, x7:0) -> f9711_0_transfer_NONNULL(c9, c10, x8:0, x9:0, x6:0, x7:0) :|: c10 = 0 && (c9 = 0 && (c8 = 0 && (c7 = 0 && c6 = 0))) && (x6:0 > -1 && x6:0 > x10:0) 24.28/7.63 24.28/7.63 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (17) 24.28/7.63 Obligation: 24.28/7.63 Rules: 24.28/7.63 f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6:0)), java.lang.Object(ARRAY(x7:0)), x8:0, java.lang.Object(javaUtilEx.HashMap$Entry(x9:0)), x6:0, x7:0) -> f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6:0)), java.lang.Object(ARRAY(x7:0)), x8:0, x9:0, x6:0, x7:0) :|: x6:0 > -1 && x6:0 > x10:0 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (18) IRSwTTerminationDigraphProof (EQUIVALENT) 24.28/7.63 Constructed termination digraph! 24.28/7.63 Nodes: 24.28/7.63 (1) f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6:0)), java.lang.Object(ARRAY(x7:0)), x8:0, java.lang.Object(javaUtilEx.HashMap$Entry(x9:0)), x6:0, x7:0) -> f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6:0)), java.lang.Object(ARRAY(x7:0)), x8:0, x9:0, x6:0, x7:0) :|: x6:0 > -1 && x6:0 > x10:0 24.28/7.63 24.28/7.63 Arcs: 24.28/7.63 (1) -> (1) 24.28/7.63 24.28/7.63 This digraph is fully evaluated! 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (19) 24.28/7.63 Obligation: 24.28/7.63 24.28/7.63 Termination digraph: 24.28/7.63 Nodes: 24.28/7.63 (1) f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6:0)), java.lang.Object(ARRAY(x7:0)), x8:0, java.lang.Object(javaUtilEx.HashMap$Entry(x9:0)), x6:0, x7:0) -> f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6:0)), java.lang.Object(ARRAY(x7:0)), x8:0, x9:0, x6:0, x7:0) :|: x6:0 > -1 && x6:0 > x10:0 24.28/7.63 24.28/7.63 Arcs: 24.28/7.63 (1) -> (1) 24.28/7.63 24.28/7.63 This digraph is fully evaluated! 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (20) IntTRSUnneededArgumentFilterProof (EQUIVALENT) 24.28/7.63 Some arguments are removed because they cannot influence termination. We removed arguments according to the following replacements: 24.28/7.63 24.28/7.63 f9711_0_transfer_NONNULL(x1, x2, x3, x4, x5, x6) -> f9711_0_transfer_NONNULL(x1, x2, x4, x5, x6) 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (21) 24.28/7.63 Obligation: 24.28/7.63 Rules: 24.28/7.63 f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6:0)), java.lang.Object(ARRAY(x7:0)), java.lang.Object(javaUtilEx.HashMap$Entry(x9:0)), x6:0, x7:0) -> f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6:0)), java.lang.Object(ARRAY(x7:0)), x9:0, x6:0, x7:0) :|: x6:0 > -1 && x6:0 > x10:0 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (22) TempFilterProof (SOUND) 24.28/7.63 Used the following sort dictionary for filtering: 24.28/7.63 f9711_0_transfer_NONNULL(VARIABLE, VARIABLE, VARIABLE, INTEGER, VARIABLE) 24.28/7.63 java.lang.Object(VARIABLE) 24.28/7.63 ARRAY(VARIABLE) 24.28/7.63 javaUtilEx.HashMap$Entry(VARIABLE) 24.28/7.63 Removed predefined arithmetic. 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (23) 24.28/7.63 Obligation: 24.28/7.63 Rules: 24.28/7.63 f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6:0)), java.lang.Object(ARRAY(x7:0)), java.lang.Object(javaUtilEx.HashMap$Entry(x9:0)), x7:0) -> f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6:0)), java.lang.Object(ARRAY(x7:0)), x9:0, x7:0) 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (24) IRSwTToQDPProof (SOUND) 24.28/7.63 Removed the integers and created a QDP-Problem. 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (25) 24.28/7.63 Obligation: 24.28/7.63 Q DP problem: 24.28/7.63 The TRS P consists of the following rules: 24.28/7.63 24.28/7.63 f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6:0)), java.lang.Object(ARRAY(x7:0)), java.lang.Object(javaUtilEx.HashMap$Entry(x9:0)), x7:0) -> f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6:0)), java.lang.Object(ARRAY(x7:0)), x9:0, x7:0) 24.28/7.63 24.28/7.63 R is empty. 24.28/7.63 Q is empty. 24.28/7.63 We have to consider all (P,Q,R)-chains. 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (26) QDPSizeChangeProof (EQUIVALENT) 24.28/7.63 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. 24.28/7.63 24.28/7.63 From the DPs we obtained the following set of size-change graphs: 24.28/7.63 *f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6:0)), java.lang.Object(ARRAY(x7:0)), java.lang.Object(javaUtilEx.HashMap$Entry(x9:0)), x7:0) -> f9711_0_transfer_NONNULL(java.lang.Object(ARRAY(x6:0)), java.lang.Object(ARRAY(x7:0)), x9:0, x7:0) 24.28/7.63 The graph contains the following edges 1 >= 1, 2 >= 2, 3 > 3, 2 > 4, 4 >= 4 24.28/7.63 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (27) 24.28/7.63 YES 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (28) 24.28/7.63 Obligation: 24.28/7.63 SCC of termination graph based on JBC Program. 24.28/7.63 SCC contains nodes from the following methods: javaUtilEx.HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 24.28/7.63 SCC calls the following helper methods: javaUtilEx.Content.equals(Ljava/lang/Object;)Z 24.28/7.63 Performed SCC analyses: 24.28/7.63 *Used field analysis yielded the following read fields: 24.28/7.63 *javaUtilEx.HashMap$Entry: [hash, next, key] 24.28/7.63 *Marker field analysis yielded the following relations that could be markers: 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (29) SCCToIRSProof (SOUND) 24.28/7.63 Transformed FIGraph SCCs to intTRSs. Log: 24.28/7.63 Generated rules. Obtained 57 IRulesP rules: 24.28/7.63 f8996_0_put_NULL(EOS(STATIC_8996), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(o3860sub), java.lang.Object(o3860sub)) -> f8998_0_put_NULL(EOS(STATIC_8998), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(o3860sub), java.lang.Object(o3860sub)) :|: TRUE 24.28/7.63 f8998_0_put_NULL(EOS(STATIC_8998), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(o3860sub), java.lang.Object(o3860sub)) -> f9001_0_put_Load(EOS(STATIC_9001), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(o3860sub)) :|: TRUE 24.28/7.63 f9001_0_put_Load(EOS(STATIC_9001), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(o3860sub)) -> f9004_0_put_FieldAccess(EOS(STATIC_9004), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(o3860sub), java.lang.Object(o3860sub)) :|: TRUE 24.28/7.63 f9004_0_put_FieldAccess(EOS(STATIC_9004), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3695, o3864, o3862)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3695, o3864, o3862))) -> f9007_0_put_FieldAccess(EOS(STATIC_9007), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3695, o3864, o3862)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3695, o3864, o3862))) :|: TRUE 24.28/7.63 f9007_0_put_FieldAccess(EOS(STATIC_9007), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3695, o3864, o3862)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3695, o3864, o3862))) -> f9010_0_put_Load(EOS(STATIC_9010), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3695, o3864, o3862)), i3695) :|: TRUE 24.28/7.63 f9010_0_put_Load(EOS(STATIC_9010), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3695, o3864, o3862)), i3695) -> f9013_0_put_NE(EOS(STATIC_9013), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3695, o3864, o3862)), i3695, i3690) :|: TRUE 24.28/7.63 f9013_0_put_NE(EOS(STATIC_9013), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3695, o3864, o3862)), i3695, i3690) -> f9016_0_put_NE(EOS(STATIC_9016), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3695, o3864, o3862)), i3695, i3690) :|: !(i3695 = i3690) 24.28/7.63 f9013_0_put_NE(EOS(STATIC_9013), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, o3862)), i3690, i3690) -> f9017_0_put_NE(EOS(STATIC_9017), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, o3862)), i3690, i3690) :|: i3695 = i3690 24.28/7.63 f9016_0_put_NE(EOS(STATIC_9016), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3695, o3864, o3862)), i3695, i3690) -> f9020_0_put_Load(EOS(STATIC_9020), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3695, o3864, o3862))) :|: !(i3695 = i3690) 24.28/7.63 f9020_0_put_Load(EOS(STATIC_9020), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3695, o3864, o3862))) -> f9024_0_put_FieldAccess(EOS(STATIC_9024), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3695, o3864, o3862))) :|: TRUE 24.28/7.63 f9024_0_put_FieldAccess(EOS(STATIC_9024), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3695, o3864, o3862))) -> f9028_0_put_Store(EOS(STATIC_9028), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, o3864) :|: TRUE 24.28/7.63 f9028_0_put_Store(EOS(STATIC_9028), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, o3864) -> f9032_0_put_JMP(EOS(STATIC_9032), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, o3864) :|: TRUE 24.28/7.63 f9032_0_put_JMP(EOS(STATIC_9032), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, o3864) -> f9036_0_put_Load(EOS(STATIC_9036), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, o3864) :|: TRUE 24.28/7.63 f9036_0_put_Load(EOS(STATIC_9036), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, o3864) -> f8994_0_put_Load(EOS(STATIC_8994), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, o3864) :|: TRUE 24.28/7.63 f8994_0_put_Load(EOS(STATIC_8994), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, o3849) -> f8996_0_put_NULL(EOS(STATIC_8996), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, o3849, o3849) :|: TRUE 24.28/7.63 f9017_0_put_NE(EOS(STATIC_9017), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, o3862)), i3690, i3690) -> f9021_0_put_Load(EOS(STATIC_9021), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, o3862))) :|: TRUE 24.28/7.63 f9021_0_put_Load(EOS(STATIC_9021), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, o3862))) -> f9025_0_put_FieldAccess(EOS(STATIC_9025), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, o3862)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, o3862))) :|: TRUE 24.28/7.63 f9025_0_put_FieldAccess(EOS(STATIC_9025), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, o3862)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, o3862))) -> f9029_0_put_Duplicate(EOS(STATIC_9029), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, o3862)), o3862) :|: TRUE 24.28/7.63 f9029_0_put_Duplicate(EOS(STATIC_9029), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, o3862)), o3862) -> f9033_0_put_Store(EOS(STATIC_9033), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, o3862)), o3862, o3862) :|: TRUE 24.28/7.63 f9033_0_put_Store(EOS(STATIC_9033), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, o3862)), o3862, o3862) -> f9037_0_put_Load(EOS(STATIC_9037), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, o3862)), o3862, o3862) :|: TRUE 24.28/7.63 f9037_0_put_Load(EOS(STATIC_9037), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, o3862)), o3862, o3862) -> f9040_0_put_EQ(EOS(STATIC_9040), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, o3862)), o3862, o3862, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 24.28/7.63 f9040_0_put_EQ(EOS(STATIC_9040), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3879sub))), java.lang.Object(o3879sub), java.lang.Object(o3879sub), java.lang.Object(javaUtilEx.Content(EOC))) -> f9042_0_put_EQ(EOS(STATIC_9042), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3879sub))), java.lang.Object(o3879sub), java.lang.Object(o3879sub), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 24.28/7.63 f9040_0_put_EQ(EOS(STATIC_9040), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, NULL)), NULL, NULL, java.lang.Object(javaUtilEx.Content(EOC))) -> f9043_0_put_EQ(EOS(STATIC_9043), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, NULL)), NULL, NULL, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 24.28/7.63 f9042_0_put_EQ(EOS(STATIC_9042), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3879sub))), java.lang.Object(o3879sub), java.lang.Object(o3879sub), java.lang.Object(javaUtilEx.Content(EOC))) -> f9046_0_put_Load(EOS(STATIC_9046), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3879sub))), java.lang.Object(o3879sub)) :|: TRUE 24.28/7.63 f9046_0_put_Load(EOS(STATIC_9046), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3879sub))), java.lang.Object(o3879sub)) -> f9049_0_put_Load(EOS(STATIC_9049), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3879sub))), java.lang.Object(o3879sub), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 24.28/7.63 f9049_0_put_Load(EOS(STATIC_9049), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3879sub))), java.lang.Object(o3879sub), java.lang.Object(javaUtilEx.Content(EOC))) -> f9053_0_put_InvokeMethod(EOS(STATIC_9053), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3879sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3879sub)) :|: TRUE 24.28/7.63 f9053_0_put_InvokeMethod(EOS(STATIC_9053), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3879sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3879sub)) -> f9056_0_equals_Load(EOS(STATIC_9056), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3879sub), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3879sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3879sub)) :|: TRUE 24.28/7.63 f9053_0_put_InvokeMethod(EOS(STATIC_9053), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3879sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3879sub)) -> f9056_1_equals_Load(EOS(STATIC_9056), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3879sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3879sub)) :|: TRUE 24.28/7.63 f9056_0_equals_Load(EOS(STATIC_9056), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3879sub), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3879sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3879sub)) -> f9927_0_equals_Load(EOS(STATIC_9927), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3879sub), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3879sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3879sub)) :|: TRUE 24.28/7.63 f9075_0_equals_Return(EOS(STATIC_9075), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3943sub))), matching1) -> f9086_0_put_EQ(EOS(STATIC_9086), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3943sub))), 0) :|: TRUE && matching1 = 0 24.28/7.63 f9086_0_put_EQ(EOS(STATIC_9086), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3943sub))), matching1) -> f9090_0_put_Load(EOS(STATIC_9090), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3943sub)))) :|: TRUE && matching1 = 0 24.28/7.63 f9090_0_put_Load(EOS(STATIC_9090), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3943sub)))) -> f9096_0_put_FieldAccess(EOS(STATIC_9096), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3943sub)))) :|: TRUE 24.28/7.63 f9096_0_put_FieldAccess(EOS(STATIC_9096), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3943sub)))) -> f9102_0_put_Store(EOS(STATIC_9102), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, o3864) :|: TRUE 24.28/7.63 f9102_0_put_Store(EOS(STATIC_9102), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, o3864) -> f9028_0_put_Store(EOS(STATIC_9028), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, o3864) :|: TRUE 24.28/7.63 f9076_0_equals_Return(EOS(STATIC_9076), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(javaUtilEx.Content(EOC)))), matching1) -> f9078_0_equals_Return(EOS(STATIC_9078), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(javaUtilEx.Content(EOC)))), 0) :|: TRUE && matching1 = 0 24.28/7.63 f9078_0_equals_Return(EOS(STATIC_9078), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o4008, java.lang.Object(javaUtilEx.Content(EOC)))), i3846) -> f9087_0_put_EQ(EOS(STATIC_9087), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o4008, java.lang.Object(javaUtilEx.Content(EOC)))), i3846) :|: TRUE 24.28/7.63 f9087_0_put_EQ(EOS(STATIC_9087), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o4008, java.lang.Object(javaUtilEx.Content(EOC)))), matching1) -> f9092_0_put_EQ(EOS(STATIC_9092), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o4008, java.lang.Object(javaUtilEx.Content(EOC)))), 0) :|: TRUE && matching1 = 0 24.28/7.63 f9092_0_put_EQ(EOS(STATIC_9092), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o4008, java.lang.Object(javaUtilEx.Content(EOC)))), matching1) -> f9098_0_put_Load(EOS(STATIC_9098), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o4008, java.lang.Object(javaUtilEx.Content(EOC))))) :|: TRUE && matching1 = 0 24.28/7.63 f9098_0_put_Load(EOS(STATIC_9098), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o4008, java.lang.Object(javaUtilEx.Content(EOC))))) -> f9104_0_put_FieldAccess(EOS(STATIC_9104), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o4008, java.lang.Object(javaUtilEx.Content(EOC))))) :|: TRUE 24.28/7.63 f9104_0_put_FieldAccess(EOS(STATIC_9104), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o4008, java.lang.Object(javaUtilEx.Content(EOC))))) -> f9108_0_put_Store(EOS(STATIC_9108), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, o4008) :|: TRUE 24.28/7.63 f9108_0_put_Store(EOS(STATIC_9108), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, o4008) -> f9028_0_put_Store(EOS(STATIC_9028), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, o4008) :|: TRUE 24.28/7.63 f9077_0_equals_Return(EOS(STATIC_9077), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(javaUtilEx.Content(EOC)))), matching1) -> f9078_0_equals_Return(EOS(STATIC_9078), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(javaUtilEx.Content(EOC)))), 1) :|: TRUE && matching1 = 1 24.28/7.63 f9043_0_put_EQ(EOS(STATIC_9043), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, NULL)), NULL, NULL, java.lang.Object(javaUtilEx.Content(EOC))) -> f9047_0_put_Load(EOS(STATIC_9047), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, NULL)), NULL) :|: TRUE 24.28/7.63 f9047_0_put_Load(EOS(STATIC_9047), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, NULL)), NULL) -> f9050_0_put_Load(EOS(STATIC_9050), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, NULL)), NULL, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 24.28/7.63 f9050_0_put_Load(EOS(STATIC_9050), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, NULL)), NULL, java.lang.Object(javaUtilEx.Content(EOC))) -> f9054_0_put_InvokeMethod(EOS(STATIC_9054), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, NULL)), java.lang.Object(javaUtilEx.Content(EOC)), NULL) :|: TRUE 24.28/7.63 f9054_0_put_InvokeMethod(EOS(STATIC_9054), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, NULL)), java.lang.Object(javaUtilEx.Content(EOC)), NULL) -> f9057_0_equals_Load(EOS(STATIC_9057), java.lang.Object(javaUtilEx.Content(EOC)), NULL, java.lang.Object(javaUtilEx.Content(EOC)), NULL) :|: TRUE 24.28/7.63 f9054_0_put_InvokeMethod(EOS(STATIC_9054), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, NULL)), java.lang.Object(javaUtilEx.Content(EOC)), NULL) -> f9057_1_equals_Load(EOS(STATIC_9057), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, NULL)), java.lang.Object(javaUtilEx.Content(EOC)), NULL) :|: TRUE 24.28/7.63 f9057_0_equals_Load(EOS(STATIC_9057), java.lang.Object(javaUtilEx.Content(EOC)), NULL, java.lang.Object(javaUtilEx.Content(EOC)), NULL) -> f9983_0_equals_Load(EOS(STATIC_9983), java.lang.Object(javaUtilEx.Content(EOC)), NULL, java.lang.Object(javaUtilEx.Content(EOC)), NULL) :|: TRUE 24.28/7.63 f9080_0_equals_Return(EOS(STATIC_9080), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, NULL)), matching1) -> f9088_0_put_EQ(EOS(STATIC_9088), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, NULL)), 0) :|: TRUE && matching1 = 0 24.28/7.63 f9088_0_put_EQ(EOS(STATIC_9088), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, NULL)), matching1) -> f9093_0_put_Load(EOS(STATIC_9093), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, NULL))) :|: TRUE && matching1 = 0 24.28/7.63 f9093_0_put_Load(EOS(STATIC_9093), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, NULL))) -> f9099_0_put_FieldAccess(EOS(STATIC_9099), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, NULL))) :|: TRUE 24.28/7.63 f9099_0_put_FieldAccess(EOS(STATIC_9099), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, NULL))) -> f9105_0_put_Store(EOS(STATIC_9105), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, o3864) :|: TRUE 24.28/7.63 f9105_0_put_Store(EOS(STATIC_9105), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, o3864) -> f9028_0_put_Store(EOS(STATIC_9028), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, o3864) :|: TRUE 24.28/7.63 f9056_1_equals_Load(EOS(STATIC_9056), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3943sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3943sub)) -> f9075_0_equals_Return(EOS(STATIC_9075), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(o3943sub))), 0) :|: TRUE 24.28/7.63 f9056_1_equals_Load(EOS(STATIC_9056), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(javaUtilEx.Content(EOC)))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f9076_0_equals_Return(EOS(STATIC_9076), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(javaUtilEx.Content(EOC)))), 0) :|: TRUE 24.28/7.63 f9056_1_equals_Load(EOS(STATIC_9056), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(javaUtilEx.Content(EOC)))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f9077_0_equals_Return(EOS(STATIC_9077), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, java.lang.Object(javaUtilEx.Content(EOC)))), 1) :|: TRUE 24.28/7.63 f9057_1_equals_Load(EOS(STATIC_9057), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, NULL)), java.lang.Object(javaUtilEx.Content(EOC)), NULL) -> f9080_0_equals_Return(EOS(STATIC_9080), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690, o3864, NULL)), 0) :|: TRUE 24.28/7.63 Combined rules. Obtained 7 IRulesP rules: 24.28/7.63 f8996_0_put_NULL(EOS(STATIC_8996), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690:0, o3864:0, NULL)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690:0, o3864:0, NULL))) -> f8996_0_put_NULL(EOS(STATIC_8996), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690:0, o3864:0, o3864:0) :|: TRUE 24.28/7.63 f8996_0_put_NULL(EOS(STATIC_8996), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690:0, o3864:0, java.lang.Object(javaUtilEx.Content(EOC)))), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690:0, o3864:0, java.lang.Object(javaUtilEx.Content(EOC))))) -> f8996_0_put_NULL(EOS(STATIC_8996), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690:0, o3864:0, o3864:0) :|: TRUE 24.28/7.63 f8996_0_put_NULL(EOS(STATIC_8996), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3695:0, o3864:0, o3862:0)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3695:0, o3864:0, o3862:0))) -> f8996_0_put_NULL(EOS(STATIC_8996), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690:0, o3864:0, o3864:0) :|: i3695:0 < i3690:0 24.28/7.63 f8996_0_put_NULL(EOS(STATIC_8996), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3695:0, o3864:0, o3862:0)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3695:0, o3864:0, o3862:0))) -> f8996_0_put_NULL(EOS(STATIC_8996), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690:0, o3864:0, o3864:0) :|: i3695:0 > i3690:0 24.28/7.63 f8996_0_put_NULL(EOS(STATIC_8996), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690:0, o3864:0, java.lang.Object(o3879sub:0))), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690:0, o3864:0, java.lang.Object(o3879sub:0)))) -> f8996_0_put_NULL(EOS(STATIC_8996), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690:0, o3864:0, o3864:0) :|: TRUE 24.28/7.63 Removed following non-SCC rules: 24.28/7.63 f8996_0_put_NULL(EOS(STATIC_8996), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690:0, o3864:0, java.lang.Object(o3879sub:0))), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690:0, o3864:0, java.lang.Object(o3879sub:0)))) -> f9927_0_equals_Load(EOS(STATIC_9927), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3879sub:0), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690:0, o3864:0, java.lang.Object(o3879sub:0))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3879sub:0)) :|: TRUE 24.28/7.63 f8996_0_put_NULL(EOS(STATIC_8996), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3690:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690:0, o3864:0, NULL)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3690:0, o3864:0, NULL))) -> f9983_0_equals_Load(EOS(STATIC_9983), java.lang.Object(javaUtilEx.Content(EOC)), NULL, java.lang.Object(javaUtilEx.Content(EOC)), NULL) :|: TRUE 24.28/7.63 Filtered constant ground arguments: 24.28/7.63 f8996_0_put_NULL(x1, x2, x3, x4, x5, x6, x7) -> f8996_0_put_NULL(x5, x6, x7) 24.28/7.63 EOS(x1) -> EOS 24.28/7.63 javaUtilEx.AbstractMap(x1) -> javaUtilEx.AbstractMap 24.28/7.63 javaUtilEx.Content(x1) -> javaUtilEx.Content 24.28/7.63 javaUtilEx.HashMap$Entry(x1, x2, x3, x4) -> javaUtilEx.HashMap$Entry(x2, x3, x4) 24.28/7.63 javaUtilEx.HashMap(x1) -> javaUtilEx.HashMap 24.28/7.63 Filtered duplicate arguments: 24.28/7.63 f8996_0_put_NULL(x1, x2, x3) -> f8996_0_put_NULL(x1, x3) 24.28/7.63 Finished conversion. Obtained 5 rules.P rules: 24.28/7.63 f8996_0_put_NULL(i3690:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3690:0, o3864:0, NULL))) -> f8996_0_put_NULL(i3690:0, o3864:0) :|: TRUE 24.28/7.63 f8996_0_put_NULL(i3690:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3690:0, o3864:0, java.lang.Object(javaUtilEx.Content)))) -> f8996_0_put_NULL(i3690:0, o3864:0) :|: TRUE 24.28/7.63 f8996_0_put_NULL(i3690:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3695:0, o3864:0, o3862:0))) -> f8996_0_put_NULL(i3690:0, o3864:0) :|: i3695:0 < i3690:0 24.28/7.63 f8996_0_put_NULL(i3690:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3695:0, o3864:0, o3862:0))) -> f8996_0_put_NULL(i3690:0, o3864:0) :|: i3695:0 > i3690:0 24.28/7.63 f8996_0_put_NULL(i3690:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3690:0, o3864:0, java.lang.Object(o3879sub:0)))) -> f8996_0_put_NULL(i3690:0, o3864:0) :|: TRUE 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (30) 24.28/7.63 Obligation: 24.28/7.63 Rules: 24.28/7.63 f8996_0_put_NULL(i3690:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3690:0, o3864:0, NULL))) -> f8996_0_put_NULL(i3690:0, o3864:0) :|: TRUE 24.28/7.63 f8996_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x, x1, java.lang.Object(javaUtilEx.Content)))) -> f8996_0_put_NULL(x, x1) :|: TRUE 24.28/7.63 f8996_0_put_NULL(x2, java.lang.Object(javaUtilEx.HashMap$Entry(x3, x4, x5))) -> f8996_0_put_NULL(x2, x4) :|: x3 < x2 24.28/7.63 f8996_0_put_NULL(x6, java.lang.Object(javaUtilEx.HashMap$Entry(x7, x8, x9))) -> f8996_0_put_NULL(x6, x8) :|: x7 > x6 24.28/7.63 f8996_0_put_NULL(x10, java.lang.Object(javaUtilEx.HashMap$Entry(x10, x11, java.lang.Object(x12)))) -> f8996_0_put_NULL(x10, x11) :|: TRUE 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (31) IRSFormatTransformerProof (EQUIVALENT) 24.28/7.63 Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (32) 24.28/7.63 Obligation: 24.28/7.63 Rules: 24.28/7.63 f8996_0_put_NULL(i3690:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3690:0, o3864:0, NULL))) -> f8996_0_put_NULL(i3690:0, o3864:0) :|: TRUE 24.28/7.63 f8996_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x, x1, java.lang.Object(javaUtilEx.Content)))) -> f8996_0_put_NULL(x, x1) :|: TRUE 24.28/7.63 f8996_0_put_NULL(x2, java.lang.Object(javaUtilEx.HashMap$Entry(x3, x4, x5))) -> f8996_0_put_NULL(x2, x4) :|: x3 < x2 24.28/7.63 f8996_0_put_NULL(x6, java.lang.Object(javaUtilEx.HashMap$Entry(x7, x8, x9))) -> f8996_0_put_NULL(x6, x8) :|: x7 > x6 24.28/7.63 f8996_0_put_NULL(x10, java.lang.Object(javaUtilEx.HashMap$Entry(x10, x11, java.lang.Object(x12)))) -> f8996_0_put_NULL(x10, x11) :|: TRUE 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (33) IRSwTTerminationDigraphProof (EQUIVALENT) 24.28/7.63 Constructed termination digraph! 24.28/7.63 Nodes: 24.28/7.63 (1) f8996_0_put_NULL(i3690:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3690:0, o3864:0, NULL))) -> f8996_0_put_NULL(i3690:0, o3864:0) :|: TRUE 24.28/7.63 (2) f8996_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x, x1, java.lang.Object(javaUtilEx.Content)))) -> f8996_0_put_NULL(x, x1) :|: TRUE 24.28/7.63 (3) f8996_0_put_NULL(x2, java.lang.Object(javaUtilEx.HashMap$Entry(x3, x4, x5))) -> f8996_0_put_NULL(x2, x4) :|: x3 < x2 24.28/7.63 (4) f8996_0_put_NULL(x6, java.lang.Object(javaUtilEx.HashMap$Entry(x7, x8, x9))) -> f8996_0_put_NULL(x6, x8) :|: x7 > x6 24.28/7.63 (5) f8996_0_put_NULL(x10, java.lang.Object(javaUtilEx.HashMap$Entry(x10, x11, java.lang.Object(x12)))) -> f8996_0_put_NULL(x10, x11) :|: TRUE 24.28/7.63 24.28/7.63 Arcs: 24.28/7.63 (1) -> (1), (2), (3), (4), (5) 24.28/7.63 (2) -> (1), (2), (3), (4), (5) 24.28/7.63 (3) -> (1), (2), (3), (4), (5) 24.28/7.63 (4) -> (1), (2), (3), (4), (5) 24.28/7.63 (5) -> (1), (2), (3), (4), (5) 24.28/7.63 24.28/7.63 This digraph is fully evaluated! 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (34) 24.28/7.63 Obligation: 24.28/7.63 24.28/7.63 Termination digraph: 24.28/7.63 Nodes: 24.28/7.63 (1) f8996_0_put_NULL(i3690:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3690:0, o3864:0, NULL))) -> f8996_0_put_NULL(i3690:0, o3864:0) :|: TRUE 24.28/7.63 (2) f8996_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x, x1, java.lang.Object(javaUtilEx.Content)))) -> f8996_0_put_NULL(x, x1) :|: TRUE 24.28/7.63 (3) f8996_0_put_NULL(x2, java.lang.Object(javaUtilEx.HashMap$Entry(x3, x4, x5))) -> f8996_0_put_NULL(x2, x4) :|: x3 < x2 24.28/7.63 (4) f8996_0_put_NULL(x6, java.lang.Object(javaUtilEx.HashMap$Entry(x7, x8, x9))) -> f8996_0_put_NULL(x6, x8) :|: x7 > x6 24.28/7.63 (5) f8996_0_put_NULL(x10, java.lang.Object(javaUtilEx.HashMap$Entry(x10, x11, java.lang.Object(x12)))) -> f8996_0_put_NULL(x10, x11) :|: TRUE 24.28/7.63 24.28/7.63 Arcs: 24.28/7.63 (1) -> (1), (2), (3), (4), (5) 24.28/7.63 (2) -> (1), (2), (3), (4), (5) 24.28/7.63 (3) -> (1), (2), (3), (4), (5) 24.28/7.63 (4) -> (1), (2), (3), (4), (5) 24.28/7.63 (5) -> (1), (2), (3), (4), (5) 24.28/7.63 24.28/7.63 This digraph is fully evaluated! 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (35) TempFilterProof (SOUND) 24.28/7.63 Used the following sort dictionary for filtering: 24.28/7.63 f8996_0_put_NULL(VARIABLE, VARIABLE) 24.28/7.63 java.lang.Object(VARIABLE) 24.28/7.63 javaUtilEx.HashMap$Entry(VARIABLE, VARIABLE, VARIABLE) 24.28/7.63 NULL() 24.28/7.63 javaUtilEx.Content() 24.28/7.63 Removed predefined arithmetic. 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (36) 24.28/7.63 Obligation: 24.28/7.63 Rules: 24.28/7.63 f8996_0_put_NULL(i3690:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3690:0, o3864:0, NULL))) -> f8996_0_put_NULL(i3690:0, o3864:0) 24.28/7.63 f8996_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x, x1, java.lang.Object(javaUtilEx.Content)))) -> f8996_0_put_NULL(x, x1) 24.28/7.63 f8996_0_put_NULL(x2, java.lang.Object(javaUtilEx.HashMap$Entry(x3, x4, x5))) -> f8996_0_put_NULL(x2, x4) 24.28/7.63 f8996_0_put_NULL(x10, java.lang.Object(javaUtilEx.HashMap$Entry(x10, x11, java.lang.Object(x12)))) -> f8996_0_put_NULL(x10, x11) 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (37) IRSwTToQDPProof (SOUND) 24.28/7.63 Removed the integers and created a QDP-Problem. 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (38) 24.28/7.63 Obligation: 24.28/7.63 Q DP problem: 24.28/7.63 The TRS P consists of the following rules: 24.28/7.63 24.28/7.63 f8996_0_put_NULL(i3690:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3690:0, o3864:0, NULL))) -> f8996_0_put_NULL(i3690:0, o3864:0) 24.28/7.63 f8996_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x, x1, java.lang.Object(javaUtilEx.Content)))) -> f8996_0_put_NULL(x, x1) 24.28/7.63 f8996_0_put_NULL(x2, java.lang.Object(javaUtilEx.HashMap$Entry(x3, x4, x5))) -> f8996_0_put_NULL(x2, x4) 24.28/7.63 f8996_0_put_NULL(x10, java.lang.Object(javaUtilEx.HashMap$Entry(x10, x11, java.lang.Object(x12)))) -> f8996_0_put_NULL(x10, x11) 24.28/7.63 24.28/7.63 R is empty. 24.28/7.63 Q is empty. 24.28/7.63 We have to consider all (P,Q,R)-chains. 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (39) QDPSizeChangeProof (EQUIVALENT) 24.28/7.63 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. 24.28/7.63 24.28/7.63 From the DPs we obtained the following set of size-change graphs: 24.28/7.63 *f8996_0_put_NULL(i3690:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3690:0, o3864:0, NULL))) -> f8996_0_put_NULL(i3690:0, o3864:0) 24.28/7.63 The graph contains the following edges 1 >= 1, 2 > 1, 2 > 2 24.28/7.63 24.28/7.63 24.28/7.63 *f8996_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x, x1, java.lang.Object(javaUtilEx.Content)))) -> f8996_0_put_NULL(x, x1) 24.28/7.63 The graph contains the following edges 1 >= 1, 2 > 1, 2 > 2 24.28/7.63 24.28/7.63 24.28/7.63 *f8996_0_put_NULL(x2, java.lang.Object(javaUtilEx.HashMap$Entry(x3, x4, x5))) -> f8996_0_put_NULL(x2, x4) 24.28/7.63 The graph contains the following edges 1 >= 1, 2 > 2 24.28/7.63 24.28/7.63 24.28/7.63 *f8996_0_put_NULL(x10, java.lang.Object(javaUtilEx.HashMap$Entry(x10, x11, java.lang.Object(x12)))) -> f8996_0_put_NULL(x10, x11) 24.28/7.63 The graph contains the following edges 1 >= 1, 2 > 1, 2 > 2 24.28/7.63 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (40) 24.28/7.63 YES 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (41) 24.28/7.63 Obligation: 24.28/7.63 SCC of termination graph based on JBC Program. 24.28/7.63 SCC contains nodes from the following methods: javaUtilEx.juHashMapCreateClear.createMap(I)LjavaUtilEx/HashMap; 24.28/7.63 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 24.28/7.63 Performed SCC analyses: 24.28/7.63 *Used field analysis yielded the following read fields: 24.28/7.63 *java.lang.String: [count] 24.28/7.63 *Marker field analysis yielded the following relations that could be markers: 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (42) SCCToIRSProof (SOUND) 24.28/7.63 Transformed FIGraph SCCs to intTRSs. Log: 24.28/7.63 Generated rules. Obtained 81 IRulesP rules: 24.28/7.63 f8481_0_createMap_LE(EOS(STATIC_8481(java.lang.Object(o3608sub), i3364)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3383) -> f8485_0_createMap_LE(EOS(STATIC_8485(java.lang.Object(o3608sub), i3364)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3383) :|: TRUE 24.28/7.63 f8485_0_createMap_LE(EOS(STATIC_8485(java.lang.Object(o3608sub), i3364)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3383) -> f8490_0_createMap_New(EOS(STATIC_8490(java.lang.Object(o3608sub), i3364)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: i3383 > 0 24.28/7.63 f8490_0_createMap_New(EOS(STATIC_8490(java.lang.Object(o3608sub), i3364)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f8495_0_createMap_Duplicate(EOS(STATIC_8495(java.lang.Object(o3608sub), i3364)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 24.28/7.63 f8495_0_createMap_Duplicate(EOS(STATIC_8495(java.lang.Object(o3608sub), i3364)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) -> f8499_0_createMap_InvokeMethod(EOS(STATIC_8499(java.lang.Object(o3608sub), i3364)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 24.28/7.63 f8499_0_createMap_InvokeMethod(EOS(STATIC_8499(java.lang.Object(o3608sub), i3364)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8503_0_random_FieldAccess(EOS(STATIC_8503(java.lang.Object(o3608sub), i3364)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 24.28/7.63 f8503_0_random_FieldAccess(EOS(STATIC_8503(java.lang.Object(o3608sub), i3364)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8513_0_random_FieldAccess(EOS(STATIC_8513(java.lang.Object(o3608sub), i3364)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3608sub)) :|: TRUE 24.28/7.63 f8513_0_random_FieldAccess(EOS(STATIC_8513(java.lang.Object(o3608sub), i3364)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3608sub)) -> f8518_0_random_ArrayAccess(EOS(STATIC_8518(java.lang.Object(o3608sub), i3364)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3608sub), i3364) :|: TRUE 24.28/7.63 f8518_0_random_ArrayAccess(EOS(STATIC_8518(java.lang.Object(ARRAY(i3411)), i3364)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3411)), i3364) -> f8523_0_random_ArrayAccess(EOS(STATIC_8523(java.lang.Object(ARRAY(i3411)), i3364)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3411)), i3364) :|: i3411 >= 0 24.28/7.63 f8523_0_random_ArrayAccess(EOS(STATIC_8523(java.lang.Object(ARRAY(i3411)), i3413)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3411)), i3413) -> f8529_0_random_ArrayAccess(EOS(STATIC_8529(java.lang.Object(ARRAY(i3411)), i3413)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3411)), i3413) :|: TRUE 24.28/7.63 f8529_0_random_ArrayAccess(EOS(STATIC_8529(java.lang.Object(ARRAY(i3411)), i3413)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3411)), i3413) -> f8535_0_random_ArrayAccess(EOS(STATIC_8535(java.lang.Object(ARRAY(i3411)), i3413)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3411)), i3413) :|: TRUE 24.28/7.63 f8535_0_random_ArrayAccess(EOS(STATIC_8535(java.lang.Object(ARRAY(i3411)), i3413)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3411)), i3413) -> f8541_0_random_Store(EOS(STATIC_8541(java.lang.Object(ARRAY(i3411)), i3413)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3639) :|: i3413 < i3411 24.28/7.63 f8541_0_random_Store(EOS(STATIC_8541(java.lang.Object(ARRAY(i3411)), i3413)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3639) -> f8547_0_random_FieldAccess(EOS(STATIC_8547(java.lang.Object(ARRAY(i3411)), i3413)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3639) :|: TRUE 24.28/7.63 f8547_0_random_FieldAccess(EOS(STATIC_8547(java.lang.Object(ARRAY(i3411)), i3413)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3639) -> f8553_0_random_ConstantStackPush(EOS(STATIC_8553(java.lang.Object(ARRAY(i3411)), i3413)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3639, i3413) :|: TRUE 24.28/7.63 f8553_0_random_ConstantStackPush(EOS(STATIC_8553(java.lang.Object(ARRAY(i3411)), i3413)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3639, i3413) -> f8559_0_random_IntArithmetic(EOS(STATIC_8559(java.lang.Object(ARRAY(i3411)), i3413)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3639, i3413, 1) :|: TRUE 24.28/7.63 f8559_0_random_IntArithmetic(EOS(STATIC_8559(java.lang.Object(ARRAY(i3411)), i3413)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3639, i3413, matching1) -> f8565_0_random_FieldAccess(EOS(STATIC_8565(java.lang.Object(ARRAY(i3411)), i3413)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3639, i3413 + 1) :|: i3413 >= 0 && matching1 = 1 24.28/7.63 f8565_0_random_FieldAccess(EOS(STATIC_8565(java.lang.Object(ARRAY(i3411)), i3413)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3639, i3417) -> f8572_0_random_Load(EOS(STATIC_8572(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3639) :|: TRUE 24.28/7.63 f8572_0_random_Load(EOS(STATIC_8572(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3639) -> f8579_0_random_InvokeMethod(EOS(STATIC_8579(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3639) :|: TRUE 24.28/7.63 f8579_0_random_InvokeMethod(EOS(STATIC_8579(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3649sub)) -> f8584_0_random_InvokeMethod(EOS(STATIC_8584(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3649sub)) :|: TRUE 24.28/7.63 f8584_0_random_InvokeMethod(EOS(STATIC_8584(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3655sub)) -> f8591_0_random_InvokeMethod(EOS(STATIC_8591(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3655sub)) :|: TRUE 24.28/7.63 f8591_0_random_InvokeMethod(EOS(STATIC_8591(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3655sub)) -> f8598_0_length_Load(EOS(STATIC_8598(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3655sub)) :|: TRUE 24.28/7.63 f8598_0_length_Load(EOS(STATIC_8598(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3655sub)) -> f8611_0_length_FieldAccess(EOS(STATIC_8611(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3655sub)) :|: TRUE 24.28/7.63 f8611_0_length_FieldAccess(EOS(STATIC_8611(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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, i3422))) -> f8618_0_length_FieldAccess(EOS(STATIC_8618(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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, i3422))) :|: i3422 >= 0 24.28/7.63 f8618_0_length_FieldAccess(EOS(STATIC_8618(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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, i3422))) -> f8623_0_length_Return(EOS(STATIC_8623(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3422) :|: TRUE 24.28/7.63 f8623_0_length_Return(EOS(STATIC_8623(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3422) -> f8630_0_random_Return(EOS(STATIC_8630(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3422) :|: TRUE 24.28/7.63 f8630_0_random_Return(EOS(STATIC_8630(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3422) -> f8638_0_createMap_InvokeMethod(EOS(STATIC_8638(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3422) :|: TRUE 24.28/7.63 f8638_0_createMap_InvokeMethod(EOS(STATIC_8638(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3422) -> f8644_0__init__Load(EOS(STATIC_8644(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3422) :|: TRUE 24.28/7.63 f8644_0__init__Load(EOS(STATIC_8644(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3422) -> f8659_0__init__InvokeMethod(EOS(STATIC_8659(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3422, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 24.28/7.63 f8659_0__init__InvokeMethod(EOS(STATIC_8659(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3422, java.lang.Object(javaUtilEx.Content(EOC))) -> f8665_0__init__Load(EOS(STATIC_8665(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3422) :|: TRUE 24.28/7.63 f8665_0__init__Load(EOS(STATIC_8665(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3422) -> f8673_0__init__Load(EOS(STATIC_8673(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3422, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 24.28/7.63 f8673_0__init__Load(EOS(STATIC_8673(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3422, java.lang.Object(javaUtilEx.Content(EOC))) -> f8681_0__init__FieldAccess(EOS(STATIC_8681(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3422) :|: TRUE 24.28/7.63 f8681_0__init__FieldAccess(EOS(STATIC_8681(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3422) -> f8688_0__init__Return(EOS(STATIC_8688(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 24.28/7.63 f8688_0__init__Return(EOS(STATIC_8688(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) -> f8695_0_createMap_Store(EOS(STATIC_8695(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 24.28/7.63 f8695_0_createMap_Store(EOS(STATIC_8695(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) -> f8702_0_createMap_New(EOS(STATIC_8702(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 24.28/7.63 f8702_0_createMap_New(EOS(STATIC_8702(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) -> f8710_0_createMap_Duplicate(EOS(STATIC_8710(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 24.28/7.63 f8710_0_createMap_Duplicate(EOS(STATIC_8710(java.lang.Object(ARRAY(i3411)), i3417)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8718_0_createMap_InvokeMethod(EOS(STATIC_8718(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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 24.28/7.63 f8718_0_createMap_InvokeMethod(EOS(STATIC_8718(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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))) -> f8726_0_random_FieldAccess(EOS(STATIC_8726(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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 24.28/7.63 f8726_0_random_FieldAccess(EOS(STATIC_8726(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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))) -> f8739_0_random_FieldAccess(EOS(STATIC_8739(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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(i3411))) :|: TRUE 24.28/7.63 f8739_0_random_FieldAccess(EOS(STATIC_8739(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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(i3411))) -> f8746_0_random_ArrayAccess(EOS(STATIC_8746(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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(i3411)), i3417) :|: TRUE 24.28/7.63 f8746_0_random_ArrayAccess(EOS(STATIC_8746(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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(i3411)), i3417) -> f8753_0_random_ArrayAccess(EOS(STATIC_8753(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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(i3411)), i3417) :|: TRUE 24.28/7.63 f8753_0_random_ArrayAccess(EOS(STATIC_8753(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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(i3411)), i3417) -> f8758_0_random_Store(EOS(STATIC_8758(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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)), o3741) :|: i3417 < i3411 24.28/7.63 f8758_0_random_Store(EOS(STATIC_8758(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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)), o3741) -> f8764_0_random_FieldAccess(EOS(STATIC_8764(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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)), o3741) :|: TRUE 24.28/7.63 f8764_0_random_FieldAccess(EOS(STATIC_8764(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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)), o3741) -> f8766_0_random_ConstantStackPush(EOS(STATIC_8766(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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)), o3741, i3417) :|: TRUE 24.28/7.63 f8766_0_random_ConstantStackPush(EOS(STATIC_8766(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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)), o3741, i3417) -> f8770_0_random_IntArithmetic(EOS(STATIC_8770(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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)), o3741, i3417, 1) :|: TRUE 24.28/7.63 f8770_0_random_IntArithmetic(EOS(STATIC_8770(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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)), o3741, i3417, matching1) -> f8773_0_random_FieldAccess(EOS(STATIC_8773(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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)), o3741, i3417 + 1) :|: i3417 > 0 && matching1 = 1 24.28/7.63 f8773_0_random_FieldAccess(EOS(STATIC_8773(java.lang.Object(ARRAY(i3411)), i3417)), i3383, 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)), o3741, i3520) -> f8776_0_random_Load(EOS(STATIC_8776(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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)), o3741) :|: TRUE 24.28/7.63 f8776_0_random_Load(EOS(STATIC_8776(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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)), o3741) -> f8780_0_random_InvokeMethod(EOS(STATIC_8780(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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)), o3741) :|: TRUE 24.28/7.63 f8780_0_random_InvokeMethod(EOS(STATIC_8780(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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(o3758sub)) -> f8784_0_random_InvokeMethod(EOS(STATIC_8784(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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(o3758sub)) :|: TRUE 24.28/7.63 f8784_0_random_InvokeMethod(EOS(STATIC_8784(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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(o3759sub)) -> f8788_0_random_InvokeMethod(EOS(STATIC_8788(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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(o3759sub)) :|: TRUE 24.28/7.63 f8788_0_random_InvokeMethod(EOS(STATIC_8788(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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(o3759sub)) -> f8793_0_length_Load(EOS(STATIC_8793(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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(o3759sub)) :|: TRUE 24.28/7.63 f8793_0_length_Load(EOS(STATIC_8793(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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(o3759sub)) -> f8802_0_length_FieldAccess(EOS(STATIC_8802(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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(o3759sub)) :|: TRUE 24.28/7.63 f8802_0_length_FieldAccess(EOS(STATIC_8802(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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, i3534))) -> f8806_0_length_FieldAccess(EOS(STATIC_8806(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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, i3534))) :|: i3534 >= 0 24.28/7.63 f8806_0_length_FieldAccess(EOS(STATIC_8806(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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, i3534))) -> f8810_0_length_Return(EOS(STATIC_8810(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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)), i3534) :|: TRUE 24.28/7.63 f8810_0_length_Return(EOS(STATIC_8810(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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)), i3534) -> f8813_0_random_Return(EOS(STATIC_8813(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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)), i3534) :|: TRUE 24.28/7.63 f8813_0_random_Return(EOS(STATIC_8813(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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)), i3534) -> f8817_0_createMap_InvokeMethod(EOS(STATIC_8817(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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)), i3534) :|: TRUE 24.28/7.63 f8817_0_createMap_InvokeMethod(EOS(STATIC_8817(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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)), i3534) -> f8820_0__init__Load(EOS(STATIC_8820(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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)), i3534) :|: TRUE 24.28/7.63 f8820_0__init__Load(EOS(STATIC_8820(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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)), i3534) -> f8829_0__init__InvokeMethod(EOS(STATIC_8829(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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)), i3534, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 24.28/7.63 f8829_0__init__InvokeMethod(EOS(STATIC_8829(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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)), i3534, java.lang.Object(javaUtilEx.Content(EOC))) -> f8833_0__init__Load(EOS(STATIC_8833(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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)), i3534) :|: TRUE 24.28/7.63 f8833_0__init__Load(EOS(STATIC_8833(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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)), i3534) -> f8838_0__init__Load(EOS(STATIC_8838(java.lang.Object(ARRAY(i3411)), i3520)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3534, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 24.28/7.63 f8838_0__init__Load(EOS(STATIC_8838(java.lang.Object(ARRAY(i3411)), i3520)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3534, java.lang.Object(javaUtilEx.Content(EOC))) -> f8843_0__init__FieldAccess(EOS(STATIC_8843(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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)), i3534) :|: TRUE 24.28/7.63 f8843_0__init__FieldAccess(EOS(STATIC_8843(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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)), i3534) -> f8849_0__init__Return(EOS(STATIC_8849(java.lang.Object(ARRAY(i3411)), i3520)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 24.28/7.63 f8849_0__init__Return(EOS(STATIC_8849(java.lang.Object(ARRAY(i3411)), i3520)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8855_0_createMap_Store(EOS(STATIC_8855(java.lang.Object(ARRAY(i3411)), i3520)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 24.28/7.63 f8855_0_createMap_Store(EOS(STATIC_8855(java.lang.Object(ARRAY(i3411)), i3520)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8859_0_createMap_Load(EOS(STATIC_8859(java.lang.Object(ARRAY(i3411)), i3520)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 24.28/7.63 f8859_0_createMap_Load(EOS(STATIC_8859(java.lang.Object(ARRAY(i3411)), i3520)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8864_0_createMap_Load(EOS(STATIC_8864(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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 24.28/7.63 f8864_0_createMap_Load(EOS(STATIC_8864(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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)))) -> f8868_0_createMap_Load(EOS(STATIC_8868(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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 24.28/7.63 f8868_0_createMap_Load(EOS(STATIC_8868(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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))) -> f8871_0_createMap_InvokeMethod(EOS(STATIC_8871(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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 24.28/7.63 f8871_0_createMap_InvokeMethod(EOS(STATIC_8871(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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))) -> f8875_0_put_Load(EOS(STATIC_8875(java.lang.Object(ARRAY(i3411)), i3520)), 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))) :|: i3384 >= 1 && i3383 >= 1 && i3520 > 1 && i3384 >= i3383 24.28/7.63 f8871_0_createMap_InvokeMethod(EOS(STATIC_8871(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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))) -> f8875_1_put_Load(EOS(STATIC_8875(java.lang.Object(ARRAY(i3411)), i3520)), i3383, 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))) :|: i3384 >= 1 && i3383 >= 1 && i3520 > 1 && i3384 >= i3383 24.28/7.63 f8875_0_put_Load(EOS(STATIC_8875(java.lang.Object(ARRAY(i3411)), i3520)), 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))) -> f10197_0_put_Load(EOS(STATIC_10197(java.lang.Object(ARRAY(i3411)), i3520)), 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 24.28/7.63 f9142_0_put_Return(EOS(STATIC_9142(java.lang.Object(ARRAY(i3918)), i3920)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f9145_0_createMap_StackPop(EOS(STATIC_9145(java.lang.Object(ARRAY(i3918)), i3920)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 24.28/7.63 f9145_0_createMap_StackPop(EOS(STATIC_9145(java.lang.Object(ARRAY(i3918)), i3920)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f9148_0_createMap_Inc(EOS(STATIC_9148(java.lang.Object(ARRAY(i3918)), i3920)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 24.28/7.63 f9148_0_createMap_Inc(EOS(STATIC_9148(java.lang.Object(ARRAY(i3918)), i3920)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f9151_0_createMap_JMP(EOS(STATIC_9151(java.lang.Object(ARRAY(i3918)), i3920)), i3383 + -1, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 24.28/7.63 f9151_0_createMap_JMP(EOS(STATIC_9151(java.lang.Object(ARRAY(i3918)), i3920)), i3921, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f9154_0_createMap_Load(EOS(STATIC_9154(java.lang.Object(ARRAY(i3918)), i3920)), i3921, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 24.28/7.63 f9154_0_createMap_Load(EOS(STATIC_9154(java.lang.Object(ARRAY(i3918)), i3920)), i3921, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f8478_0_createMap_Load(EOS(STATIC_8478(java.lang.Object(ARRAY(i3918)), i3920)), i3921, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 24.28/7.63 f8478_0_createMap_Load(EOS(STATIC_8478(java.lang.Object(o3608sub), i3364)), i3366, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f8481_0_createMap_LE(EOS(STATIC_8481(java.lang.Object(o3608sub), i3364)), i3366, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3366) :|: TRUE 24.28/7.63 f9198_0_put_Return(EOS(STATIC_9198(java.lang.Object(ARRAY(i3953)), i3955)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) -> f9201_0_createMap_StackPop(EOS(STATIC_9201(java.lang.Object(ARRAY(i3953)), i3955)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) :|: TRUE 24.28/7.63 f9201_0_createMap_StackPop(EOS(STATIC_9201(java.lang.Object(ARRAY(i3953)), i3955)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) -> f9204_0_createMap_Inc(EOS(STATIC_9204(java.lang.Object(ARRAY(i3953)), i3955)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 24.28/7.63 f9204_0_createMap_Inc(EOS(STATIC_9204(java.lang.Object(ARRAY(i3953)), i3955)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f9148_0_createMap_Inc(EOS(STATIC_9148(java.lang.Object(ARRAY(i3953)), i3955)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 24.28/7.63 f9638_0_put_Return(EOS(STATIC_9638(java.lang.Object(ARRAY(i4154)), i4156)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) -> f9198_0_put_Return(EOS(STATIC_9198(java.lang.Object(ARRAY(i4154)), i4156)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) :|: TRUE 24.28/7.63 f8875_1_put_Load(EOS(STATIC_8875(java.lang.Object(ARRAY(i3918)), i3920)), i3383, 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))) -> f9142_0_put_Return(EOS(STATIC_9142(java.lang.Object(ARRAY(i3918)), i3920)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 24.28/7.63 f8875_1_put_Load(EOS(STATIC_8875(java.lang.Object(ARRAY(i3953)), i3955)), i3383, 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))) -> f9198_0_put_Return(EOS(STATIC_9198(java.lang.Object(ARRAY(i3953)), i3955)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) :|: TRUE 24.28/7.63 f8875_1_put_Load(EOS(STATIC_8875(java.lang.Object(ARRAY(i4154)), i4156)), i3383, 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))) -> f9638_0_put_Return(EOS(STATIC_9638(java.lang.Object(ARRAY(i4154)), i4156)), i3383, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) :|: TRUE 24.28/7.63 Combined rules. Obtained 2 IRulesP rules: 24.28/7.63 f8481_0_createMap_LE(EOS(STATIC_8481(java.lang.Object(ARRAY(i3411:0)), i3364:0)), i3383:0, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3383:0) -> f8481_0_createMap_LE(EOS(STATIC_8481(java.lang.Object(ARRAY(i3411:0)), i3364:0 + 2)), i3383:0 - 1, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3383:0 - 1) :|: i3411:0 > i3364:0 + 1 && i3383:0 > 0 && i3411:0 > -1 && i3364:0 > -1 && i3422:0 > -1 && i3534:0 > -1 && i3384:0 > 0 && i3384:0 >= i3383:0 24.28/7.63 Removed following non-SCC rules: 24.28/7.63 f8481_0_createMap_LE(EOS(STATIC_8481(java.lang.Object(ARRAY(i3411:0)), i3364:0)), i3383:0, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3383:0) -> f10197_0_put_Load(EOS(STATIC_10197(java.lang.Object(ARRAY(i3411:0)), i3364: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))) :|: i3411:0 > i3364:0 + 1 && i3383:0 > 0 && i3411:0 > -1 && i3364:0 > -1 && i3422:0 > -1 && i3534:0 > -1 && i3384:0 > 0 && i3384:0 >= i3383:0 24.28/7.63 Filtered constant ground arguments: 24.28/7.63 f8481_0_createMap_LE(x1, x2, x3, x4) -> f8481_0_createMap_LE(x1, x2, x4) 24.28/7.63 javaUtilEx.AbstractMap(x1) -> javaUtilEx.AbstractMap 24.28/7.63 javaUtilEx.HashMap(x1) -> javaUtilEx.HashMap 24.28/7.63 Filtered duplicate arguments: 24.28/7.63 f8481_0_createMap_LE(x1, x2, x3) -> f8481_0_createMap_LE(x1, x3) 24.28/7.63 Finished conversion. Obtained 1 rules.P rules: 24.28/7.63 f8481_0_createMap_LE(i3383:0, i3411:0, i3364:0) -> f8481_0_createMap_LE(i3383:0 - 1, i3411:0, i3364:0 + 2) :|: i3383:0 > 0 && i3411:0 > i3364:0 + 1 && i3411:0 > -1 && i3364:0 > -1 && i3422:0 > -1 && i3534:0 > -1 && i3384:0 >= i3383:0 && i3384:0 > 0 24.28/7.63 24.28/7.63 ---------------------------------------- 24.28/7.63 24.28/7.63 (43) 24.28/7.63 Obligation: 24.28/7.63 Rules: 24.28/7.63 f8481_0_createMap_LE(i3383:0, i3411:0, i3364:0) -> f8481_0_createMap_LE(i3383:0 - 1, i3411:0, i3364:0 + 2) :|: i3383:0 > 0 && i3411:0 > i3364:0 + 1 && i3411:0 > -1 && i3364:0 > -1 && i3422:0 > -1 && i3534:0 > -1 && i3384:0 >= i3383:0 && i3384:0 > 0 24.36/7.63 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (44) IRSFormatTransformerProof (EQUIVALENT) 24.36/7.63 Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (45) 24.36/7.63 Obligation: 24.36/7.63 Rules: 24.36/7.63 f8481_0_createMap_LE(i3383:0, i3411:0, i3364:0) -> f8481_0_createMap_LE(arith, i3411:0, arith1) :|: i3383:0 > 0 && i3411:0 > i3364:0 + 1 && i3411:0 > -1 && i3364:0 > -1 && i3422:0 > -1 && i3534:0 > -1 && i3384:0 >= i3383:0 && i3384:0 > 0 && arith = i3383:0 - 1 && arith1 = i3364:0 + 2 24.36/7.63 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (46) IRSwTTerminationDigraphProof (EQUIVALENT) 24.36/7.63 Constructed termination digraph! 24.36/7.63 Nodes: 24.36/7.63 (1) f8481_0_createMap_LE(i3383:0, i3411:0, i3364:0) -> f8481_0_createMap_LE(arith, i3411:0, arith1) :|: i3383:0 > 0 && i3411:0 > i3364:0 + 1 && i3411:0 > -1 && i3364:0 > -1 && i3422:0 > -1 && i3534:0 > -1 && i3384:0 >= i3383:0 && i3384:0 > 0 && arith = i3383:0 - 1 && arith1 = i3364:0 + 2 24.36/7.63 24.36/7.63 Arcs: 24.36/7.63 (1) -> (1) 24.36/7.63 24.36/7.63 This digraph is fully evaluated! 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (47) 24.36/7.63 Obligation: 24.36/7.63 24.36/7.63 Termination digraph: 24.36/7.63 Nodes: 24.36/7.63 (1) f8481_0_createMap_LE(i3383:0, i3411:0, i3364:0) -> f8481_0_createMap_LE(arith, i3411:0, arith1) :|: i3383:0 > 0 && i3411:0 > i3364:0 + 1 && i3411:0 > -1 && i3364:0 > -1 && i3422:0 > -1 && i3534:0 > -1 && i3384:0 >= i3383:0 && i3384:0 > 0 && arith = i3383:0 - 1 && arith1 = i3364:0 + 2 24.36/7.63 24.36/7.63 Arcs: 24.36/7.63 (1) -> (1) 24.36/7.63 24.36/7.63 This digraph is fully evaluated! 24.36/7.63 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (48) IntTRSCompressionProof (EQUIVALENT) 24.36/7.63 Compressed rules. 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (49) 24.36/7.63 Obligation: 24.36/7.63 Rules: 24.36/7.63 f8481_0_createMap_LE(i3383:0:0, i3411:0:0, i3364:0:0) -> f8481_0_createMap_LE(i3383:0:0 - 1, i3411:0:0, i3364:0:0 + 2) :|: i3384:0:0 >= i3383:0:0 && i3384:0:0 > 0 && i3534:0:0 > -1 && i3422:0:0 > -1 && i3364:0:0 > -1 && i3411:0:0 > -1 && i3411:0:0 > i3364:0:0 + 1 && i3383:0:0 > 0 24.36/7.63 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (50) TempFilterProof (SOUND) 24.36/7.63 Used the following sort dictionary for filtering: 24.36/7.63 f8481_0_createMap_LE(INTEGER, INTEGER, INTEGER) 24.36/7.63 Replaced non-predefined constructor symbols by 0. 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (51) 24.36/7.63 Obligation: 24.36/7.63 Rules: 24.36/7.63 f8481_0_createMap_LE(i3383:0:0, i3411:0:0, i3364:0:0) -> f8481_0_createMap_LE(c, i3411:0:0, c1) :|: c1 = i3364:0:0 + 2 && c = i3383:0:0 - 1 && (i3384:0:0 >= i3383:0:0 && i3384:0:0 > 0 && i3534:0:0 > -1 && i3422:0:0 > -1 && i3364:0:0 > -1 && i3411:0:0 > -1 && i3411:0:0 > i3364:0:0 + 1 && i3383:0:0 > 0) 24.36/7.63 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (52) RankingReductionPairProof (EQUIVALENT) 24.36/7.63 Interpretation: 24.36/7.63 [ f8481_0_createMap_LE ] = f8481_0_createMap_LE_1 24.36/7.63 24.36/7.63 The following rules are decreasing: 24.36/7.63 f8481_0_createMap_LE(i3383:0:0, i3411:0:0, i3364:0:0) -> f8481_0_createMap_LE(c, i3411:0:0, c1) :|: c1 = i3364:0:0 + 2 && c = i3383:0:0 - 1 && (i3384:0:0 >= i3383:0:0 && i3384:0:0 > 0 && i3534:0:0 > -1 && i3422:0:0 > -1 && i3364:0:0 > -1 && i3411:0:0 > -1 && i3411:0:0 > i3364:0:0 + 1 && i3383:0:0 > 0) 24.36/7.63 24.36/7.63 The following rules are bounded: 24.36/7.63 f8481_0_createMap_LE(i3383:0:0, i3411:0:0, i3364:0:0) -> f8481_0_createMap_LE(c, i3411:0:0, c1) :|: c1 = i3364:0:0 + 2 && c = i3383:0:0 - 1 && (i3384:0:0 >= i3383:0:0 && i3384:0:0 > 0 && i3534:0:0 > -1 && i3422:0:0 > -1 && i3364:0:0 > -1 && i3411:0:0 > -1 && i3411:0:0 > i3364:0:0 + 1 && i3383:0:0 > 0) 24.36/7.63 24.36/7.63 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (53) 24.36/7.63 YES 24.36/7.63 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (54) 24.36/7.63 Obligation: 24.36/7.63 SCC of termination graph based on JBC Program. 24.36/7.63 SCC contains nodes from the following methods: javaUtilEx.juHashMapCreateClear.main([Ljava/lang/String;)V 24.36/7.63 SCC calls the following helper methods: 24.36/7.63 Performed SCC analyses: 24.36/7.63 *Used field analysis yielded the following read fields: 24.36/7.63 24.36/7.63 *Marker field analysis yielded the following relations that could be markers: 24.36/7.63 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (55) SCCToIRSProof (SOUND) 24.36/7.63 Transformed FIGraph SCCs to intTRSs. Log: 24.36/7.63 Generated rules. Obtained 13 IRulesP rules: 24.36/7.63 f8812_0_clear_Load(EOS(STATIC_8812), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538, i3538) -> f8816_0_clear_ArrayLength(EOS(STATIC_8816), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538, i3538, java.lang.Object(ARRAY(i3537))) :|: TRUE 24.36/7.63 f8816_0_clear_ArrayLength(EOS(STATIC_8816), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538, i3538, java.lang.Object(ARRAY(i3537))) -> f8819_0_clear_GE(EOS(STATIC_8819), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538, i3538, i3537) :|: i3537 >= 0 24.36/7.63 f8819_0_clear_GE(EOS(STATIC_8819), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538, i3538, i3537) -> f8824_0_clear_GE(EOS(STATIC_8824), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538, i3538, i3537) :|: i3538 < i3537 24.36/7.63 f8824_0_clear_GE(EOS(STATIC_8824), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538, i3538, i3537) -> f8828_0_clear_Load(EOS(STATIC_8828), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538) :|: i3538 < i3537 24.36/7.63 f8828_0_clear_Load(EOS(STATIC_8828), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538) -> f8832_0_clear_Load(EOS(STATIC_8832), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538, java.lang.Object(ARRAY(i3537))) :|: TRUE 24.36/7.63 f8832_0_clear_Load(EOS(STATIC_8832), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538, java.lang.Object(ARRAY(i3537))) -> f8837_0_clear_ConstantStackPush(EOS(STATIC_8837), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538, java.lang.Object(ARRAY(i3537)), i3538) :|: TRUE 24.36/7.63 f8837_0_clear_ConstantStackPush(EOS(STATIC_8837), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538, java.lang.Object(ARRAY(i3537)), i3538) -> f8842_0_clear_ArrayAccess(EOS(STATIC_8842), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538, java.lang.Object(ARRAY(i3537)), i3538, NULL) :|: TRUE 24.36/7.63 f8842_0_clear_ArrayAccess(EOS(STATIC_8842), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538, java.lang.Object(ARRAY(i3537)), i3538, NULL) -> f8847_0_clear_ArrayAccess(EOS(STATIC_8847), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538, java.lang.Object(ARRAY(i3537)), i3538, NULL) :|: TRUE 24.36/7.63 f8847_0_clear_ArrayAccess(EOS(STATIC_8847), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538, java.lang.Object(ARRAY(i3537)), i3538, NULL) -> f8853_0_clear_Inc(EOS(STATIC_8853), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538) :|: i3538 < i3537 24.36/7.63 f8853_0_clear_Inc(EOS(STATIC_8853), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538) -> f8858_0_clear_JMP(EOS(STATIC_8858), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538 + 1) :|: TRUE 24.36/7.63 f8858_0_clear_JMP(EOS(STATIC_8858), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3542) -> f8862_0_clear_Load(EOS(STATIC_8862), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3542) :|: TRUE 24.36/7.63 f8862_0_clear_Load(EOS(STATIC_8862), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3542) -> f8809_0_clear_Load(EOS(STATIC_8809), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3542) :|: TRUE 24.36/7.63 f8809_0_clear_Load(EOS(STATIC_8809), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538) -> f8812_0_clear_Load(EOS(STATIC_8812), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537)), i3538, i3538) :|: TRUE 24.36/7.63 Combined rules. Obtained 1 IRulesP rules: 24.36/7.63 f8812_0_clear_Load(EOS(STATIC_8812), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537:0)), i3538:0, i3538:0) -> f8812_0_clear_Load(EOS(STATIC_8812), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(ARRAY(i3537:0)), i3538:0 + 1, i3538:0 + 1) :|: i3537:0 > -1 && i3538:0 < i3537:0 24.36/7.63 Filtered constant ground arguments: 24.36/7.63 f8812_0_clear_Load(x1, x2, x3, x4, x5) -> f8812_0_clear_Load(x3, x4, x5) 24.36/7.63 EOS(x1) -> EOS 24.36/7.63 javaUtilEx.AbstractMap(x1) -> javaUtilEx.AbstractMap 24.36/7.63 javaUtilEx.HashMap(x1) -> javaUtilEx.HashMap 24.36/7.63 Filtered duplicate arguments: 24.36/7.63 f8812_0_clear_Load(x1, x2, x3) -> f8812_0_clear_Load(x1, x3) 24.36/7.63 Finished conversion. Obtained 1 rules.P rules: 24.36/7.63 f8812_0_clear_Load(java.lang.Object(ARRAY(i3537:0)), i3538:0, i3537:0) -> f8812_0_clear_Load(java.lang.Object(ARRAY(i3537:0)), i3538:0 + 1, i3537:0) :|: i3537:0 > -1 && i3538:0 < i3537:0 24.36/7.63 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (56) 24.36/7.63 Obligation: 24.36/7.63 Rules: 24.36/7.63 f8812_0_clear_Load(java.lang.Object(ARRAY(i3537:0)), i3538:0, i3537:0) -> f8812_0_clear_Load(java.lang.Object(ARRAY(i3537:0)), i3538:0 + 1, i3537:0) :|: i3537:0 > -1 && i3538:0 < i3537:0 24.36/7.63 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (57) IRSFormatTransformerProof (EQUIVALENT) 24.36/7.63 Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (58) 24.36/7.63 Obligation: 24.36/7.63 Rules: 24.36/7.63 f8812_0_clear_Load(java.lang.Object(ARRAY(i3537:0)), i3538:0, i3537:0) -> f8812_0_clear_Load(java.lang.Object(ARRAY(i3537:0)), arith, i3537:0) :|: i3537:0 > -1 && i3538:0 < i3537:0 && arith = i3538:0 + 1 24.36/7.63 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (59) IRSwTTerminationDigraphProof (EQUIVALENT) 24.36/7.63 Constructed termination digraph! 24.36/7.63 Nodes: 24.36/7.63 (1) f8812_0_clear_Load(java.lang.Object(ARRAY(i3537:0)), i3538:0, i3537:0) -> f8812_0_clear_Load(java.lang.Object(ARRAY(i3537:0)), arith, i3537:0) :|: i3537:0 > -1 && i3538:0 < i3537:0 && arith = i3538:0 + 1 24.36/7.63 24.36/7.63 Arcs: 24.36/7.63 (1) -> (1) 24.36/7.63 24.36/7.63 This digraph is fully evaluated! 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (60) 24.36/7.63 Obligation: 24.36/7.63 24.36/7.63 Termination digraph: 24.36/7.63 Nodes: 24.36/7.63 (1) f8812_0_clear_Load(java.lang.Object(ARRAY(i3537:0)), i3538:0, i3537:0) -> f8812_0_clear_Load(java.lang.Object(ARRAY(i3537:0)), arith, i3537:0) :|: i3537:0 > -1 && i3538:0 < i3537:0 && arith = i3538:0 + 1 24.36/7.63 24.36/7.63 Arcs: 24.36/7.63 (1) -> (1) 24.36/7.63 24.36/7.63 This digraph is fully evaluated! 24.36/7.63 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (61) IntTRSCompressionProof (EQUIVALENT) 24.36/7.63 Compressed rules. 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (62) 24.36/7.63 Obligation: 24.36/7.63 Rules: 24.36/7.63 f8812_0_clear_Load(java.lang.Object(ARRAY(i3537:0:0)), i3538:0:0, i3537:0:0) -> f8812_0_clear_Load(java.lang.Object(ARRAY(i3537:0:0)), i3538:0:0 + 1, i3537:0:0) :|: i3537:0:0 > -1 && i3538:0:0 < i3537:0:0 24.36/7.63 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (63) TempFilterProof (SOUND) 24.36/7.63 Used the following sort dictionary for filtering: 24.36/7.63 f8812_0_clear_Load(VARIABLE, INTEGER, INTEGER) 24.36/7.63 java.lang.Object(VARIABLE) 24.36/7.63 ARRAY(INTEGER) 24.36/7.63 Replaced non-predefined constructor symbols by 0. 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (64) 24.36/7.63 Obligation: 24.36/7.63 Rules: 24.36/7.63 f8812_0_clear_Load(c, i3538:0:0, i3537:0:0) -> f8812_0_clear_Load(c1, c2, i3537:0:0) :|: c2 = i3538:0:0 + 1 && (c1 = 0 && c = 0) && (i3537:0:0 > -1 && i3538:0:0 < i3537:0:0) 24.36/7.63 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (65) RankingReductionPairProof (EQUIVALENT) 24.36/7.63 Interpretation: 24.36/7.63 [ f8812_0_clear_Load ] = f8812_0_clear_Load_3 + -1*f8812_0_clear_Load_2 24.36/7.63 24.36/7.63 The following rules are decreasing: 24.36/7.63 f8812_0_clear_Load(c, i3538:0:0, i3537:0:0) -> f8812_0_clear_Load(c1, c2, i3537:0:0) :|: c2 = i3538:0:0 + 1 && (c1 = 0 && c = 0) && (i3537:0:0 > -1 && i3538:0:0 < i3537:0:0) 24.36/7.63 24.36/7.63 The following rules are bounded: 24.36/7.63 f8812_0_clear_Load(c, i3538:0:0, i3537:0:0) -> f8812_0_clear_Load(c1, c2, i3537:0:0) :|: c2 = i3538:0:0 + 1 && (c1 = 0 && c = 0) && (i3537:0:0 > -1 && i3538:0:0 < i3537:0:0) 24.36/7.63 24.36/7.63 24.36/7.63 ---------------------------------------- 24.36/7.63 24.36/7.63 (66) 24.36/7.63 YES 24.36/7.67 EOF