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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

This implementation calls entrySet().clear(). 25.06/11.82 * 25.06/11.82 *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

25.06/11.83	 *   Map m = Collections.synchronizedMap(new HashMap(...));
25.06/11.83 * 25.06/11.83 *

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

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

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

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

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

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

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

25.06/11.84 * 25.06/11.84 *

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

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

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

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

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

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

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

This interface is a member of the 25.06/11.84 * 25.06/11.84 * Java Collections Framework. 25.06/11.84 * 25.06/11.84 *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

This implementation calls entrySet().clear(). 25.06/11.84 * 25.06/11.84 *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

25.06/11.85	 *   Map m = Collections.synchronizedMap(new HashMap(...));
25.06/11.85 * 25.06/11.85 *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

This interface is a member of the 25.06/11.86 * 25.06/11.86 * Java Collections Framework. 25.06/11.86 * 25.06/11.86 *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Note that the detail message associated with cause is 25.06/11.86 * not automatically incorporated in this exception's detail 25.06/11.86 * message. 25.06/11.86 * 25.06/11.86 * @param message the detail message (which is saved for later retrieval 25.06/11.86 * by the {@link Throwable#getMessage()} method). 25.06/11.86 * @param cause the cause (which is saved for later retrieval by the 25.06/11.86 * {@link Throwable#getCause()} method). (A null value 25.06/11.86 * is permitted, and indicates that the cause is nonexistent or 25.06/11.86 * unknown.) 25.06/11.86 * @since 1.5 25.06/11.86 */ 25.06/11.86 public UnsupportedOperationException(String message, Throwable cause) { 25.06/11.86 super(message, cause); 25.06/11.86 } 25.06/11.86 25.06/11.86 /** 25.06/11.86 * Constructs a new exception with the specified cause and a detail 25.06/11.86 * message of (cause==null ? null : cause.toString()) (which 25.06/11.86 * typically contains the class and detail message of cause). 25.06/11.86 * This constructor is useful for exceptions that are little more than 25.06/11.86 * wrappers for other throwables (for example, {@link 25.06/11.86 * java.security.PrivilegedActionException}). 25.06/11.86 * 25.06/11.86 * @param cause the cause (which is saved for later retrieval by the 25.06/11.86 * {@link Throwable#getCause()} method). (A null value is 25.06/11.86 * permitted, and indicates that the cause is nonexistent or 25.06/11.86 * unknown.) 25.06/11.86 * @since 1.5 25.06/11.86 */ 25.06/11.86 public UnsupportedOperationException(Throwable cause) { 25.06/11.86 super(cause); 25.06/11.86 } 25.06/11.86 25.06/11.86 static final long serialVersionUID = -1242599979055084673L; 25.06/11.86 } 25.06/11.86 25.06/11.86 25.06/11.86 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (3) JBCToGraph (EQUIVALENT) 25.06/11.86 Constructed TerminationGraph. 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (4) 25.06/11.86 Obligation: 25.06/11.86 Termination Graph based on JBC Program: 25.06/11.86 javaUtilEx.juHashMapCreateIsEmpty.main([Ljava/lang/String;)V: Graph of 138 nodes with 0 SCCs. 25.06/11.86 25.06/11.86 25.06/11.86 25.06/11.86 javaUtilEx.juHashMapCreateIsEmpty.createMap(I)LjavaUtilEx/HashMap;: Graph of 248 nodes with 1 SCC. 25.06/11.86 25.06/11.86 25.06/11.86 25.06/11.86 javaUtilEx.HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;: Graph of 493 nodes with 2 SCCs. 25.06/11.86 25.06/11.86 25.06/11.86 25.06/11.86 javaUtilEx.Content.hashCode()I: Graph of 6 nodes with 0 SCCs. 25.06/11.86 25.06/11.86 25.06/11.86 25.06/11.86 javaUtilEx.Content.equals(Ljava/lang/Object;)Z: Graph of 31 nodes with 0 SCCs. 25.06/11.86 25.06/11.86 25.06/11.86 25.06/11.86 25.06/11.86 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (5) TerminationGraphToSCCProof (SOUND) 25.06/11.86 Splitted TerminationGraph to 3 SCCss. 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (6) 25.06/11.86 Complex Obligation (AND) 25.06/11.86 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (7) 25.06/11.86 Obligation: 25.06/11.86 SCC of termination graph based on JBC Program. 25.06/11.86 SCC contains nodes from the following methods: javaUtilEx.HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 25.06/11.86 SCC calls the following helper methods: 25.06/11.86 Performed SCC analyses: 25.06/11.86 *Used field analysis yielded the following read fields: 25.06/11.86 *javaUtilEx.HashMap$Entry: [next, hash] 25.06/11.86 *Marker field analysis yielded the following relations that could be markers: 25.06/11.86 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (8) SCCToIRSProof (SOUND) 25.06/11.86 Transformed FIGraph SCCs to intTRSs. Log: 25.06/11.86 Generated rules. Obtained 58 IRulesP rules: 25.06/11.86 f9203_0_transfer_Load(EOS(STATIC_9203), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, i3911) -> f9204_0_transfer_ArrayLength(EOS(STATIC_9204), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, i3911, java.lang.Object(ARRAY(i3910))) :|: TRUE 25.06/11.86 f9204_0_transfer_ArrayLength(EOS(STATIC_9204), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, i3911, java.lang.Object(ARRAY(i3910))) -> f9205_0_transfer_GE(EOS(STATIC_9205), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, i3911, i3910) :|: i3910 >= 0 25.06/11.86 f9205_0_transfer_GE(EOS(STATIC_9205), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, i3911, i3910) -> f9207_0_transfer_GE(EOS(STATIC_9207), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, i3911, i3910) :|: i3911 < i3910 25.06/11.86 f9207_0_transfer_GE(EOS(STATIC_9207), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, i3911, i3910) -> f9209_0_transfer_Load(EOS(STATIC_9209), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911) :|: i3911 < i3910 25.06/11.86 f9209_0_transfer_Load(EOS(STATIC_9209), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911) -> f9211_0_transfer_Load(EOS(STATIC_9211), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(ARRAY(i3910))) :|: TRUE 25.06/11.86 f9211_0_transfer_Load(EOS(STATIC_9211), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(ARRAY(i3910))) -> f9213_0_transfer_ArrayAccess(EOS(STATIC_9213), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(ARRAY(i3910)), i3911) :|: TRUE 25.06/11.86 f9213_0_transfer_ArrayAccess(EOS(STATIC_9213), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(ARRAY(i3910)), i3911) -> f9215_0_transfer_ArrayAccess(EOS(STATIC_9215), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(ARRAY(i3910)), i3911) :|: TRUE 25.06/11.86 f9215_0_transfer_ArrayAccess(EOS(STATIC_9215), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(ARRAY(i3910)), i3911) -> f9218_0_transfer_Store(EOS(STATIC_9218), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, o4230) :|: i3911 < i3910 25.06/11.86 f9218_0_transfer_Store(EOS(STATIC_9218), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, o4230) -> f9221_0_transfer_Load(EOS(STATIC_9221), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, o4230) :|: TRUE 25.06/11.86 f9221_0_transfer_Load(EOS(STATIC_9221), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, o4230) -> f9223_0_transfer_NULL(EOS(STATIC_9223), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, o4230, o4230) :|: TRUE 25.06/11.86 f9223_0_transfer_NULL(EOS(STATIC_9223), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4232sub), java.lang.Object(o4232sub)) -> f9226_0_transfer_NULL(EOS(STATIC_9226), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4232sub), java.lang.Object(o4232sub)) :|: TRUE 25.06/11.86 f9223_0_transfer_NULL(EOS(STATIC_9223), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, NULL, NULL) -> f9227_0_transfer_NULL(EOS(STATIC_9227), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, NULL, NULL) :|: TRUE 25.06/11.86 f9226_0_transfer_NULL(EOS(STATIC_9226), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4232sub), java.lang.Object(o4232sub)) -> f9230_0_transfer_Load(EOS(STATIC_9230), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4232sub)) :|: TRUE 25.06/11.86 f9230_0_transfer_Load(EOS(STATIC_9230), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4232sub)) -> f9233_0_transfer_Load(EOS(STATIC_9233), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4232sub), java.lang.Object(ARRAY(i3910))) :|: TRUE 25.06/11.86 f9233_0_transfer_Load(EOS(STATIC_9233), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4232sub), java.lang.Object(ARRAY(i3910))) -> f9237_0_transfer_ConstantStackPush(EOS(STATIC_9237), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4232sub), java.lang.Object(ARRAY(i3910)), i3911) :|: TRUE 25.06/11.86 f9237_0_transfer_ConstantStackPush(EOS(STATIC_9237), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4232sub), java.lang.Object(ARRAY(i3910)), i3911) -> f9241_0_transfer_ArrayAccess(EOS(STATIC_9241), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4232sub), java.lang.Object(ARRAY(i3910)), i3911, NULL) :|: TRUE 25.06/11.86 f9241_0_transfer_ArrayAccess(EOS(STATIC_9241), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4232sub), java.lang.Object(ARRAY(i3910)), i3911, NULL) -> f9243_0_transfer_ArrayAccess(EOS(STATIC_9243), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4232sub), java.lang.Object(ARRAY(i3910)), i3911, NULL) :|: TRUE 25.06/11.86 f9243_0_transfer_ArrayAccess(EOS(STATIC_9243), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4232sub), java.lang.Object(ARRAY(i3910)), i3911, NULL) -> f9247_0_transfer_Load(EOS(STATIC_9247), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4232put)) :|: i3911 < i3910 25.06/11.86 f9247_0_transfer_Load(EOS(STATIC_9247), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4232sub)) -> f9251_0_transfer_FieldAccess(EOS(STATIC_9251), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4232sub), java.lang.Object(o4232sub)) :|: TRUE 25.06/11.86 f9251_0_transfer_FieldAccess(EOS(STATIC_9251), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922))) -> f9253_0_transfer_FieldAccess(EOS(STATIC_9253), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922))) :|: TRUE 25.06/11.86 f9253_0_transfer_FieldAccess(EOS(STATIC_9253), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922))) -> f9257_0_transfer_Store(EOS(STATIC_9257), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244) :|: TRUE 25.06/11.86 f9257_0_transfer_Store(EOS(STATIC_9257), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244) -> f9260_0_transfer_Load(EOS(STATIC_9260), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244) :|: TRUE 25.06/11.86 f9260_0_transfer_Load(EOS(STATIC_9260), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244) -> f9262_0_transfer_FieldAccess(EOS(STATIC_9262), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922))) :|: TRUE 25.06/11.86 f9262_0_transfer_FieldAccess(EOS(STATIC_9262), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922))) -> f9265_0_transfer_Load(EOS(STATIC_9265), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3922) :|: TRUE 25.06/11.86 f9265_0_transfer_Load(EOS(STATIC_9265), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3922) -> f9268_0_transfer_InvokeMethod(EOS(STATIC_9268), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3922, i3752) :|: TRUE 25.06/11.86 f9268_0_transfer_InvokeMethod(EOS(STATIC_9268), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3922, i3752) -> f9270_0_indexFor_Load(EOS(STATIC_9270), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3922, i3752) :|: TRUE 25.06/11.86 f9270_0_indexFor_Load(EOS(STATIC_9270), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3922, i3752) -> f9275_0_indexFor_Load(EOS(STATIC_9275), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3752, i3922) :|: TRUE 25.06/11.86 f9275_0_indexFor_Load(EOS(STATIC_9275), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3752, i3922) -> f9277_0_indexFor_ConstantStackPush(EOS(STATIC_9277), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3922, i3752) :|: TRUE 25.06/11.86 f9277_0_indexFor_ConstantStackPush(EOS(STATIC_9277), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3922, i3752) -> f9280_0_indexFor_IntArithmetic(EOS(STATIC_9280), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3922, i3752, 1) :|: TRUE 25.06/11.86 f9280_0_indexFor_IntArithmetic(EOS(STATIC_9280), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3922, i3752, matching1) -> f9283_0_indexFor_IntArithmetic(EOS(STATIC_9283), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3922, i3752 - 1) :|: i3752 >= 0 && matching1 = 1 25.06/11.86 f9283_0_indexFor_IntArithmetic(EOS(STATIC_9283), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3922, i3939) -> f9285_0_indexFor_Return(EOS(STATIC_9285), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3940) :|: TRUE 25.06/11.86 f9285_0_indexFor_Return(EOS(STATIC_9285), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3940) -> f9288_0_transfer_Store(EOS(STATIC_9288), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3940) :|: TRUE 25.06/11.86 f9288_0_transfer_Store(EOS(STATIC_9288), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3940) -> f9291_0_transfer_Load(EOS(STATIC_9291), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3940) :|: TRUE 25.06/11.86 f9291_0_transfer_Load(EOS(STATIC_9291), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3940) -> f9294_0_transfer_Load(EOS(STATIC_9294), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3940, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922))) :|: TRUE 25.06/11.86 f9294_0_transfer_Load(EOS(STATIC_9294), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3940, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922))) -> f9297_0_transfer_Load(EOS(STATIC_9297), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3940, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), java.lang.Object(ARRAY(i3752))) :|: TRUE 25.06/11.86 f9297_0_transfer_Load(EOS(STATIC_9297), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3940, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), java.lang.Object(ARRAY(i3752))) -> f9300_0_transfer_ArrayAccess(EOS(STATIC_9300), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3940, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), java.lang.Object(ARRAY(i3752)), i3940) :|: TRUE 25.06/11.86 f9300_0_transfer_ArrayAccess(EOS(STATIC_9300), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3940, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), java.lang.Object(ARRAY(i3752)), i3940) -> f9303_0_transfer_ArrayAccess(EOS(STATIC_9303), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3940, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), java.lang.Object(ARRAY(i3752)), i3940) :|: TRUE 25.06/11.86 f9303_0_transfer_ArrayAccess(EOS(STATIC_9303), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3940, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), java.lang.Object(ARRAY(i3752)), i3940) -> f9307_0_transfer_FieldAccess(EOS(STATIC_9307), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3940, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4264) :|: i3940 < i3752 25.06/11.86 f9307_0_transfer_FieldAccess(EOS(STATIC_9307), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4244, i3940, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244, i3922)), o4264) -> f9311_0_transfer_Load(EOS(STATIC_9311), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4264, i3922)), o4244, i3940) :|: TRUE 25.06/11.86 f9311_0_transfer_Load(EOS(STATIC_9311), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4264, i3922)), o4244, i3940) -> f9313_0_transfer_Load(EOS(STATIC_9313), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4264, i3922)), o4244, i3940, java.lang.Object(ARRAY(i3752))) :|: TRUE 25.06/11.86 f9313_0_transfer_Load(EOS(STATIC_9313), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4264, i3922)), o4244, i3940, java.lang.Object(ARRAY(i3752))) -> f9317_0_transfer_Load(EOS(STATIC_9317), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4264, i3922)), o4244, java.lang.Object(ARRAY(i3752)), i3940) :|: TRUE 25.06/11.86 f9317_0_transfer_Load(EOS(STATIC_9317), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4264, i3922)), o4244, java.lang.Object(ARRAY(i3752)), i3940) -> f9320_0_transfer_ArrayAccess(EOS(STATIC_9320), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, o4244, java.lang.Object(ARRAY(i3752)), i3940, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4264, i3922))) :|: TRUE 25.06/11.86 f9320_0_transfer_ArrayAccess(EOS(STATIC_9320), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, o4244, java.lang.Object(ARRAY(i3752)), i3940, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4264, i3922))) -> f9322_0_transfer_ArrayAccess(EOS(STATIC_9322), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, o4244, java.lang.Object(ARRAY(i3752)), i3940, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4264, i3922))) :|: TRUE 25.06/11.86 f9322_0_transfer_ArrayAccess(EOS(STATIC_9322), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, o4244, java.lang.Object(ARRAY(i3752)), i3940, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4264, i3922))) -> f9326_0_transfer_Load(EOS(STATIC_9326), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, o4244) :|: i3940 < i3752 25.06/11.86 f9326_0_transfer_Load(EOS(STATIC_9326), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, o4244) -> f9330_0_transfer_Store(EOS(STATIC_9330), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, o4244) :|: TRUE 25.06/11.86 f9330_0_transfer_Store(EOS(STATIC_9330), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, o4244) -> f9331_0_transfer_Load(EOS(STATIC_9331), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, o4244) :|: TRUE 25.06/11.86 f9331_0_transfer_Load(EOS(STATIC_9331), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, o4244) -> f9334_0_transfer_NONNULL(EOS(STATIC_9334), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, o4244, o4244) :|: TRUE 25.06/11.86 f9334_0_transfer_NONNULL(EOS(STATIC_9334), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4287sub), java.lang.Object(o4287sub)) -> f9337_0_transfer_NONNULL(EOS(STATIC_9337), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4287sub), java.lang.Object(o4287sub)) :|: TRUE 25.06/11.86 f9334_0_transfer_NONNULL(EOS(STATIC_9334), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, NULL, NULL) -> f9338_0_transfer_NONNULL(EOS(STATIC_9338), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, NULL, NULL) :|: TRUE 25.06/11.86 f9337_0_transfer_NONNULL(EOS(STATIC_9337), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4287sub), java.lang.Object(o4287sub)) -> f9339_0_transfer_Load(EOS(STATIC_9339), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4287sub)) :|: TRUE 25.06/11.86 f9339_0_transfer_Load(EOS(STATIC_9339), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4287sub)) -> f9247_0_transfer_Load(EOS(STATIC_9247), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, java.lang.Object(o4287sub)) :|: TRUE 25.06/11.86 f9338_0_transfer_NONNULL(EOS(STATIC_9338), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, NULL, NULL) -> f9340_0_transfer_Inc(EOS(STATIC_9340), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911) :|: TRUE 25.06/11.86 f9340_0_transfer_Inc(EOS(STATIC_9340), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911) -> f9343_0_transfer_JMP(EOS(STATIC_9343), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911 + 1) :|: TRUE 25.06/11.86 f9343_0_transfer_JMP(EOS(STATIC_9343), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3958) -> f9346_0_transfer_Load(EOS(STATIC_9346), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3958) :|: TRUE 25.06/11.86 f9346_0_transfer_Load(EOS(STATIC_9346), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3958) -> f9202_0_transfer_Load(EOS(STATIC_9202), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3958) :|: TRUE 25.06/11.86 f9202_0_transfer_Load(EOS(STATIC_9202), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911) -> f9203_0_transfer_Load(EOS(STATIC_9203), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, i3911) :|: TRUE 25.06/11.86 f9227_0_transfer_NULL(EOS(STATIC_9227), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911, NULL, NULL) -> f9231_0_transfer_Inc(EOS(STATIC_9231), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911) :|: TRUE 25.06/11.86 f9231_0_transfer_Inc(EOS(STATIC_9231), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911) -> f9340_0_transfer_Inc(EOS(STATIC_9340), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752, java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3752)), java.lang.Object(ARRAY(i3910)), i3752, i3911) :|: TRUE 25.06/11.86 Combined rules. Obtained 4 IRulesP rules: 25.06/11.86 f9203_0_transfer_Load(EOS(STATIC_9203), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752:0, java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), i3752:0, i3911:0, i3911:0) -> f9203_0_transfer_Load(EOS(STATIC_9203), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752:0, java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), i3752:0, i3911:0 + 1, i3911:0 + 1) :|: i3910:0 > -1 && i3911:0 < i3910:0 25.06/11.86 f9203_0_transfer_Load(EOS(STATIC_9203), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752:0, java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), i3752:0, i3911:0, i3911:0) -> f9334_0_transfer_NONNULL(EOS(STATIC_9334), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752:0, java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), i3752:0, i3911:0, o4244:0, o4244:0) :|: i3910:0 > -1 && i3911:0 < i3910:0 && i3752:0 > -1 && i3940:0 < i3752:0 25.06/11.86 f9334_0_transfer_NONNULL(EOS(STATIC_9334), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752:0, java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), i3752:0, i3911:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244:0, i3922:0)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o4244:0, i3922:0))) -> f9334_0_transfer_NONNULL(EOS(STATIC_9334), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752:0, java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), i3752:0, i3911:0, o4244:0, o4244:0) :|: i3752:0 > -1 && i3940:0 < i3752:0 25.06/11.86 f9334_0_transfer_NONNULL(EOS(STATIC_9334), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752:0, java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), i3752:0, i3911:0, NULL, NULL) -> f9203_0_transfer_Load(EOS(STATIC_9203), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3752:0, java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), i3752:0, i3911:0 + 1, i3911:0 + 1) :|: TRUE 25.06/11.86 Filtered constant ground arguments: 25.06/11.86 f9203_0_transfer_Load(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10) -> f9203_0_transfer_Load(x4, x5, x6, x7, x8, x9, x10) 25.06/11.86 f9334_0_transfer_NONNULL(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) -> f9334_0_transfer_NONNULL(x4, x5, x6, x7, x8, x9, x10, x11) 25.06/11.86 javaUtilEx.AbstractMap(x1) -> javaUtilEx.AbstractMap 25.06/11.86 javaUtilEx.HashMap$Entry(x1, x2, x3) -> javaUtilEx.HashMap$Entry(x2, x3) 25.06/11.86 javaUtilEx.HashMap(x1) -> javaUtilEx.HashMap 25.06/11.86 Filtered duplicate arguments: 25.06/11.86 f9203_0_transfer_Load(x1, x2, x3, x4, x5, x6, x7) -> f9203_0_transfer_Load(x3, x4, x7) 25.06/11.86 f9334_0_transfer_NONNULL(x1, x2, x3, x4, x5, x6, x7, x8) -> f9334_0_transfer_NONNULL(x3, x4, x6, x8) 25.06/11.86 Filtered unneeded arguments: 25.06/11.86 javaUtilEx.HashMap$Entry(x1, x2) -> javaUtilEx.HashMap$Entry(x1) 25.06/11.86 Finished conversion. Obtained 4 rules.P rules: 25.06/11.86 f9203_0_transfer_Load(java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), i3911:0, i3752:0, i3910:0) -> f9203_0_transfer_Load(java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), i3911:0 + 1, i3752:0, i3910:0) :|: i3910:0 > -1 && i3911:0 < i3910:0 25.06/11.86 f9203_0_transfer_Load(java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), i3911:0, i3752:0, i3910:0) -> f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), i3911:0, o4244:0, i3752:0, i3910:0) :|: i3911:0 < i3910:0 && i3910:0 > -1 && i3940:0 < i3752:0 && i3752:0 > -1 25.06/11.86 f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), i3911:0, java.lang.Object(javaUtilEx.HashMap$Entry(o4244:0)), i3752:0, i3910:0) -> f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), i3911:0, o4244:0, i3752:0, i3910:0) :|: i3752:0 > -1 && i3940:0 < i3752:0 25.06/11.86 f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), i3911:0, NULL, i3752:0, i3910:0) -> f9203_0_transfer_Load(java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), i3911:0 + 1, i3752:0, i3910:0) :|: TRUE 25.06/11.86 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (9) 25.06/11.86 Obligation: 25.06/11.86 Rules: 25.06/11.86 f9203_0_transfer_Load(java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), i3911:0, i3752:0, i3910:0) -> f9203_0_transfer_Load(java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), i3911:0 + 1, i3752:0, i3910:0) :|: i3910:0 > -1 && i3911:0 < i3910:0 25.06/11.86 f9203_0_transfer_Load(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2, x, x1) -> f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2, x3, x, x1) :|: x2 < x1 && x1 > -1 && x4 < x && x > -1 25.06/11.86 f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5)), java.lang.Object(ARRAY(x6)), x7, java.lang.Object(javaUtilEx.HashMap$Entry(x8)), x5, x6) -> f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5)), java.lang.Object(ARRAY(x6)), x7, x8, x5, x6) :|: x5 > -1 && x9 < x5 25.06/11.86 f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x10)), java.lang.Object(ARRAY(x11)), x12, NULL, x10, x11) -> f9203_0_transfer_Load(java.lang.Object(ARRAY(x10)), java.lang.Object(ARRAY(x11)), x12 + 1, x10, x11) :|: TRUE 25.06/11.86 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (10) IRSFormatTransformerProof (EQUIVALENT) 25.06/11.86 Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (11) 25.06/11.86 Obligation: 25.06/11.86 Rules: 25.06/11.86 f9203_0_transfer_Load(java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), i3911:0, i3752:0, i3910:0) -> f9203_0_transfer_Load(java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), arith, i3752:0, i3910:0) :|: i3910:0 > -1 && i3911:0 < i3910:0 && arith = i3911:0 + 1 25.06/11.86 f9203_0_transfer_Load(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2, x, x1) -> f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2, x3, x, x1) :|: x2 < x1 && x1 > -1 && x4 < x && x > -1 25.06/11.86 f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5)), java.lang.Object(ARRAY(x6)), x7, java.lang.Object(javaUtilEx.HashMap$Entry(x8)), x5, x6) -> f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5)), java.lang.Object(ARRAY(x6)), x7, x8, x5, x6) :|: x5 > -1 && x9 < x5 25.06/11.86 f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x13)), java.lang.Object(ARRAY(x14)), x15, NULL, x13, x14) -> f9203_0_transfer_Load(java.lang.Object(ARRAY(x13)), java.lang.Object(ARRAY(x14)), x16, x13, x14) :|: TRUE && x16 = x15 + 1 25.06/11.86 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (12) IRSwTTerminationDigraphProof (EQUIVALENT) 25.06/11.86 Constructed termination digraph! 25.06/11.86 Nodes: 25.06/11.86 (1) f9203_0_transfer_Load(java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), i3911:0, i3752:0, i3910:0) -> f9203_0_transfer_Load(java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), arith, i3752:0, i3910:0) :|: i3910:0 > -1 && i3911:0 < i3910:0 && arith = i3911:0 + 1 25.06/11.86 (2) f9203_0_transfer_Load(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2, x, x1) -> f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2, x3, x, x1) :|: x2 < x1 && x1 > -1 && x4 < x && x > -1 25.06/11.86 (3) f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5)), java.lang.Object(ARRAY(x6)), x7, java.lang.Object(javaUtilEx.HashMap$Entry(x8)), x5, x6) -> f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5)), java.lang.Object(ARRAY(x6)), x7, x8, x5, x6) :|: x5 > -1 && x9 < x5 25.06/11.86 (4) f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x13)), java.lang.Object(ARRAY(x14)), x15, NULL, x13, x14) -> f9203_0_transfer_Load(java.lang.Object(ARRAY(x13)), java.lang.Object(ARRAY(x14)), x16, x13, x14) :|: TRUE && x16 = x15 + 1 25.06/11.86 25.06/11.86 Arcs: 25.06/11.86 (1) -> (1), (2) 25.06/11.86 (2) -> (3), (4) 25.06/11.86 (3) -> (3), (4) 25.06/11.86 (4) -> (1), (2) 25.06/11.86 25.06/11.86 This digraph is fully evaluated! 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (13) 25.06/11.86 Obligation: 25.06/11.86 25.06/11.86 Termination digraph: 25.06/11.86 Nodes: 25.06/11.86 (1) f9203_0_transfer_Load(java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), i3911:0, i3752:0, i3910:0) -> f9203_0_transfer_Load(java.lang.Object(ARRAY(i3752:0)), java.lang.Object(ARRAY(i3910:0)), arith, i3752:0, i3910:0) :|: i3910:0 > -1 && i3911:0 < i3910:0 && arith = i3911:0 + 1 25.06/11.86 (2) f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x13)), java.lang.Object(ARRAY(x14)), x15, NULL, x13, x14) -> f9203_0_transfer_Load(java.lang.Object(ARRAY(x13)), java.lang.Object(ARRAY(x14)), x16, x13, x14) :|: TRUE && x16 = x15 + 1 25.06/11.86 (3) f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5)), java.lang.Object(ARRAY(x6)), x7, java.lang.Object(javaUtilEx.HashMap$Entry(x8)), x5, x6) -> f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5)), java.lang.Object(ARRAY(x6)), x7, x8, x5, x6) :|: x5 > -1 && x9 < x5 25.06/11.86 (4) f9203_0_transfer_Load(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2, x, x1) -> f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2, x3, x, x1) :|: x2 < x1 && x1 > -1 && x4 < x && x > -1 25.06/11.86 25.06/11.86 Arcs: 25.06/11.86 (1) -> (1), (4) 25.06/11.86 (2) -> (1), (4) 25.06/11.86 (3) -> (2), (3) 25.06/11.86 (4) -> (2), (3) 25.06/11.86 25.06/11.86 This digraph is fully evaluated! 25.06/11.86 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (14) IntTRSCompressionProof (EQUIVALENT) 25.06/11.86 Compressed rules. 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (15) 25.06/11.86 Obligation: 25.06/11.86 Rules: 25.06/11.86 f9203_0_transfer_Load(java.lang.Object(ARRAY(x:0)), java.lang.Object(ARRAY(x1:0)), x2:0, x:0, x1:0) -> f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x:0)), java.lang.Object(ARRAY(x1:0)), x2:0, x3:0, x:0, x1:0) :|: x:0 > x4:0 && x:0 > -1 && x1:0 > -1 && x2:0 < x1:0 25.06/11.86 f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x13:0)), java.lang.Object(ARRAY(x14:0)), x15:0, NULL, x13:0, x14:0) -> f9203_0_transfer_Load(java.lang.Object(ARRAY(x13:0)), java.lang.Object(ARRAY(x14:0)), x15:0 + 1, x13:0, x14:0) :|: TRUE 25.06/11.86 f9203_0_transfer_Load(java.lang.Object(ARRAY(i3752:0:0)), java.lang.Object(ARRAY(i3910:0:0)), i3911:0:0, i3752:0:0, i3910:0:0) -> f9203_0_transfer_Load(java.lang.Object(ARRAY(i3752:0:0)), java.lang.Object(ARRAY(i3910:0:0)), i3911:0:0 + 1, i3752:0:0, i3910:0:0) :|: i3910:0:0 > -1 && i3911:0:0 < i3910:0:0 25.06/11.86 f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5:0)), java.lang.Object(ARRAY(x6:0)), x7:0, java.lang.Object(javaUtilEx.HashMap$Entry(x8:0)), x5:0, x6:0) -> f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5:0)), java.lang.Object(ARRAY(x6:0)), x7:0, x8:0, x5:0, x6:0) :|: x5:0 > -1 && x9:0 < x5:0 25.06/11.86 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (16) TempFilterProof (SOUND) 25.06/11.86 Used the following sort dictionary for filtering: 25.06/11.86 f9203_0_transfer_Load(VARIABLE, VARIABLE, INTEGER, VARIABLE, VARIABLE) 25.06/11.86 java.lang.Object(VARIABLE) 25.06/11.86 ARRAY(VARIABLE) 25.06/11.86 f9334_0_transfer_NONNULL(VARIABLE, VARIABLE, VARIABLE, VARIABLE, VARIABLE, VARIABLE) 25.06/11.86 NULL() 25.06/11.86 javaUtilEx.HashMap$Entry(VARIABLE) 25.06/11.86 Replaced non-predefined constructor symbols by 0.The following proof was generated: 25.06/11.86 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 25.06/11.86 25.06/11.86 25.06/11.86 Termination of the given IntTRS could not be shown: 25.06/11.86 25.06/11.86 25.06/11.86 25.06/11.86 - IntTRS 25.06/11.86 - RankingReductionPairProof 25.06/11.86 25.06/11.86 Rules: 25.06/11.86 f9203_0_transfer_Load(c, c1, x2:0, x:0, x1:0) -> f9334_0_transfer_NONNULL(c2, c3, x2:0, x3:0, x:0, x1:0) :|: c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0)) && (x:0 > x4:0 && x:0 > -1 && x1:0 > -1 && x2:0 < x1:0) 25.06/11.86 f9334_0_transfer_NONNULL(c4, c5, x15:0, c6, x13:0, x14:0) -> f9203_0_transfer_Load(c7, c8, c9, x13:0, x14:0) :|: c9 = x15:0 + 1 && (c8 = 0 && (c7 = 0 && (c6 = 0 && (c5 = 0 && c4 = 0)))) && TRUE 25.06/11.86 f9203_0_transfer_Load(c10, c11, i3911:0:0, i3752:0:0, i3910:0:0) -> f9203_0_transfer_Load(c12, c13, c14, i3752:0:0, i3910:0:0) :|: c14 = i3911:0:0 + 1 && (c13 = 0 && (c12 = 0 && (c11 = 0 && c10 = 0))) && (i3910:0:0 > -1 && i3911:0:0 < i3910:0:0) 25.06/11.86 f9334_0_transfer_NONNULL(c15, c16, x7:0, c17, x5:0, x6:0) -> f9334_0_transfer_NONNULL(c18, c19, x7:0, x8:0, x5:0, x6:0) :|: c19 = 0 && (c18 = 0 && (c17 = 0 && (c16 = 0 && c15 = 0))) && (x5:0 > -1 && x9:0 < x5:0) 25.06/11.86 25.06/11.86 Interpretation: 25.06/11.86 [ f9203_0_transfer_Load ] = 2*f9203_0_transfer_Load_5 + -2*f9203_0_transfer_Load_3 25.06/11.86 [ f9334_0_transfer_NONNULL ] = -2*f9334_0_transfer_NONNULL_3 + 2*f9334_0_transfer_NONNULL_6 + -1 25.06/11.86 25.06/11.86 The following rules are decreasing: 25.06/11.86 f9203_0_transfer_Load(c, c1, x2:0, x:0, x1:0) -> f9334_0_transfer_NONNULL(c2, c3, x2:0, x3:0, x:0, x1:0) :|: c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0)) && (x:0 > x4:0 && x:0 > -1 && x1:0 > -1 && x2:0 < x1:0) 25.06/11.86 f9334_0_transfer_NONNULL(c4, c5, x15:0, c6, x13:0, x14:0) -> f9203_0_transfer_Load(c7, c8, c9, x13:0, x14:0) :|: c9 = x15:0 + 1 && (c8 = 0 && (c7 = 0 && (c6 = 0 && (c5 = 0 && c4 = 0)))) && TRUE 25.06/11.86 f9203_0_transfer_Load(c10, c11, i3911:0:0, i3752:0:0, i3910:0:0) -> f9203_0_transfer_Load(c12, c13, c14, i3752:0:0, i3910:0:0) :|: c14 = i3911:0:0 + 1 && (c13 = 0 && (c12 = 0 && (c11 = 0 && c10 = 0))) && (i3910:0:0 > -1 && i3911:0:0 < i3910:0:0) 25.06/11.86 25.06/11.86 The following rules are bounded: 25.06/11.86 f9203_0_transfer_Load(c10, c11, i3911:0:0, i3752:0:0, i3910:0:0) -> f9203_0_transfer_Load(c12, c13, c14, i3752:0:0, i3910:0:0) :|: c14 = i3911:0:0 + 1 && (c13 = 0 && (c12 = 0 && (c11 = 0 && c10 = 0))) && (i3910:0:0 > -1 && i3911:0:0 < i3910:0:0) 25.06/11.86 25.06/11.86 25.06/11.86 25.06/11.86 - IntTRS 25.06/11.86 - RankingReductionPairProof 25.06/11.86 - IntTRS 25.06/11.86 - RankingReductionPairProof 25.06/11.86 25.06/11.86 Rules: 25.06/11.86 f9203_0_transfer_Load(c, c1, x2:0, x:0, x1:0) -> f9334_0_transfer_NONNULL(c2, c3, x2:0, x3:0, x:0, x1:0) :|: c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0)) && (x:0 > x4:0 && x:0 > -1 && x1:0 > -1 && x2:0 < x1:0) 25.06/11.86 f9334_0_transfer_NONNULL(c4, c5, x15:0, c6, x13:0, x14:0) -> f9203_0_transfer_Load(c7, c8, c9, x13:0, x14:0) :|: c9 = x15:0 + 1 && (c8 = 0 && (c7 = 0 && (c6 = 0 && (c5 = 0 && c4 = 0)))) && TRUE 25.06/11.86 f9334_0_transfer_NONNULL(c15, c16, x7:0, c17, x5:0, x6:0) -> f9334_0_transfer_NONNULL(c18, c19, x7:0, x8:0, x5:0, x6:0) :|: c19 = 0 && (c18 = 0 && (c17 = 0 && (c16 = 0 && c15 = 0))) && (x5:0 > -1 && x9:0 < x5:0) 25.06/11.86 25.06/11.86 Interpretation: 25.06/11.86 [ f9203_0_transfer_Load ] = 2*f9203_0_transfer_Load_4 + 2*f9203_0_transfer_Load_5 + -2*f9203_0_transfer_Load_3 + 2 25.06/11.86 [ f9334_0_transfer_NONNULL ] = -2*f9334_0_transfer_NONNULL_3 + 2*f9334_0_transfer_NONNULL_5 + 2*f9334_0_transfer_NONNULL_6 + 1 25.06/11.86 25.06/11.86 The following rules are decreasing: 25.06/11.86 f9203_0_transfer_Load(c, c1, x2:0, x:0, x1:0) -> f9334_0_transfer_NONNULL(c2, c3, x2:0, x3:0, x:0, x1:0) :|: c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0)) && (x:0 > x4:0 && x:0 > -1 && x1:0 > -1 && x2:0 < x1:0) 25.06/11.86 f9334_0_transfer_NONNULL(c4, c5, x15:0, c6, x13:0, x14:0) -> f9203_0_transfer_Load(c7, c8, c9, x13:0, x14:0) :|: c9 = x15:0 + 1 && (c8 = 0 && (c7 = 0 && (c6 = 0 && (c5 = 0 && c4 = 0)))) && TRUE 25.06/11.86 25.06/11.86 The following rules are bounded: 25.06/11.86 f9203_0_transfer_Load(c, c1, x2:0, x:0, x1:0) -> f9334_0_transfer_NONNULL(c2, c3, x2:0, x3:0, x:0, x1:0) :|: c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0)) && (x:0 > x4:0 && x:0 > -1 && x1:0 > -1 && x2:0 < x1:0) 25.06/11.86 25.06/11.86 25.06/11.86 25.06/11.86 - IntTRS 25.06/11.86 - RankingReductionPairProof 25.06/11.86 - IntTRS 25.06/11.86 - RankingReductionPairProof 25.06/11.86 - IntTRS 25.06/11.86 - RankingReductionPairProof 25.06/11.86 25.06/11.86 Rules: 25.06/11.86 f9334_0_transfer_NONNULL(c4, c5, x15:0, c6, x13:0, x14:0) -> f9203_0_transfer_Load(c7, c8, c9, x13:0, x14:0) :|: c9 = x15:0 + 1 && (c8 = 0 && (c7 = 0 && (c6 = 0 && (c5 = 0 && c4 = 0)))) && TRUE 25.06/11.86 f9334_0_transfer_NONNULL(c15, c16, x7:0, c17, x5:0, x6:0) -> f9334_0_transfer_NONNULL(c18, c19, x7:0, x8:0, x5:0, x6:0) :|: c19 = 0 && (c18 = 0 && (c17 = 0 && (c16 = 0 && c15 = 0))) && (x5:0 > -1 && x9:0 < x5:0) 25.06/11.86 25.06/11.86 Interpretation: 25.06/11.86 [ f9334_0_transfer_NONNULL ] = 0 25.06/11.86 [ f9203_0_transfer_Load ] = -1 25.06/11.86 25.06/11.86 The following rules are decreasing: 25.06/11.86 f9334_0_transfer_NONNULL(c4, c5, x15:0, c6, x13:0, x14:0) -> f9203_0_transfer_Load(c7, c8, c9, x13:0, x14:0) :|: c9 = x15:0 + 1 && (c8 = 0 && (c7 = 0 && (c6 = 0 && (c5 = 0 && c4 = 0)))) && TRUE 25.06/11.86 25.06/11.86 The following rules are bounded: 25.06/11.86 f9334_0_transfer_NONNULL(c4, c5, x15:0, c6, x13:0, x14:0) -> f9203_0_transfer_Load(c7, c8, c9, x13:0, x14:0) :|: c9 = x15:0 + 1 && (c8 = 0 && (c7 = 0 && (c6 = 0 && (c5 = 0 && c4 = 0)))) && TRUE 25.06/11.86 f9334_0_transfer_NONNULL(c15, c16, x7:0, c17, x5:0, x6:0) -> f9334_0_transfer_NONNULL(c18, c19, x7:0, x8:0, x5:0, x6:0) :|: c19 = 0 && (c18 = 0 && (c17 = 0 && (c16 = 0 && c15 = 0))) && (x5:0 > -1 && x9:0 < x5:0) 25.06/11.86 25.06/11.86 25.06/11.86 25.06/11.86 - IntTRS 25.06/11.86 - RankingReductionPairProof 25.06/11.86 - IntTRS 25.06/11.86 - RankingReductionPairProof 25.06/11.86 - IntTRS 25.06/11.86 - RankingReductionPairProof 25.06/11.86 - IntTRS 25.06/11.86 25.06/11.86 Rules: 25.06/11.86 f9334_0_transfer_NONNULL(c15, c16, x7:0, c17, x5:0, x6:0) -> f9334_0_transfer_NONNULL(c18, c19, x7:0, x8:0, x5:0, x6:0) :|: c19 = 0 && (c18 = 0 && (c17 = 0 && (c16 = 0 && c15 = 0))) && (x5:0 > -1 && x9:0 < x5:0) 25.06/11.86 25.06/11.86 25.06/11.86 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (17) 25.06/11.86 Obligation: 25.06/11.86 Rules: 25.06/11.86 f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5:0)), java.lang.Object(ARRAY(x6:0)), x7:0, java.lang.Object(javaUtilEx.HashMap$Entry(x8:0)), x5:0, x6:0) -> f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5:0)), java.lang.Object(ARRAY(x6:0)), x7:0, x8:0, x5:0, x6:0) :|: x5:0 > -1 && x9:0 < x5:0 25.06/11.86 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (18) IRSwTTerminationDigraphProof (EQUIVALENT) 25.06/11.86 Constructed termination digraph! 25.06/11.86 Nodes: 25.06/11.86 (1) f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5:0)), java.lang.Object(ARRAY(x6:0)), x7:0, java.lang.Object(javaUtilEx.HashMap$Entry(x8:0)), x5:0, x6:0) -> f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5:0)), java.lang.Object(ARRAY(x6:0)), x7:0, x8:0, x5:0, x6:0) :|: x5:0 > -1 && x9:0 < x5:0 25.06/11.86 25.06/11.86 Arcs: 25.06/11.86 (1) -> (1) 25.06/11.86 25.06/11.86 This digraph is fully evaluated! 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (19) 25.06/11.86 Obligation: 25.06/11.86 25.06/11.86 Termination digraph: 25.06/11.86 Nodes: 25.06/11.86 (1) f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5:0)), java.lang.Object(ARRAY(x6:0)), x7:0, java.lang.Object(javaUtilEx.HashMap$Entry(x8:0)), x5:0, x6:0) -> f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5:0)), java.lang.Object(ARRAY(x6:0)), x7:0, x8:0, x5:0, x6:0) :|: x5:0 > -1 && x9:0 < x5:0 25.06/11.86 25.06/11.86 Arcs: 25.06/11.86 (1) -> (1) 25.06/11.86 25.06/11.86 This digraph is fully evaluated! 25.06/11.86 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (20) IntTRSUnneededArgumentFilterProof (EQUIVALENT) 25.06/11.86 Some arguments are removed because they cannot influence termination. We removed arguments according to the following replacements: 25.06/11.86 25.06/11.86 f9334_0_transfer_NONNULL(x1, x2, x3, x4, x5, x6) -> f9334_0_transfer_NONNULL(x1, x2, x4, x5, x6) 25.06/11.86 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (21) 25.06/11.86 Obligation: 25.06/11.86 Rules: 25.06/11.86 f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5:0)), java.lang.Object(ARRAY(x6:0)), java.lang.Object(javaUtilEx.HashMap$Entry(x8:0)), x5:0, x6:0) -> f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5:0)), java.lang.Object(ARRAY(x6:0)), x8:0, x5:0, x6:0) :|: x5:0 > -1 && x9:0 < x5:0 25.06/11.86 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (22) TempFilterProof (SOUND) 25.06/11.86 Used the following sort dictionary for filtering: 25.06/11.86 f9334_0_transfer_NONNULL(VARIABLE, VARIABLE, VARIABLE, INTEGER, VARIABLE) 25.06/11.86 java.lang.Object(VARIABLE) 25.06/11.86 ARRAY(VARIABLE) 25.06/11.86 javaUtilEx.HashMap$Entry(VARIABLE) 25.06/11.86 Removed predefined arithmetic. 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (23) 25.06/11.86 Obligation: 25.06/11.86 Rules: 25.06/11.86 f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5:0)), java.lang.Object(ARRAY(x6:0)), java.lang.Object(javaUtilEx.HashMap$Entry(x8:0)), x6:0) -> f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5:0)), java.lang.Object(ARRAY(x6:0)), x8:0, x6:0) 25.06/11.86 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (24) IRSwTToQDPProof (SOUND) 25.06/11.86 Removed the integers and created a QDP-Problem. 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (25) 25.06/11.86 Obligation: 25.06/11.86 Q DP problem: 25.06/11.86 The TRS P consists of the following rules: 25.06/11.86 25.06/11.86 f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5:0)), java.lang.Object(ARRAY(x6:0)), java.lang.Object(javaUtilEx.HashMap$Entry(x8:0)), x6:0) -> f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5:0)), java.lang.Object(ARRAY(x6:0)), x8:0, x6:0) 25.06/11.86 25.06/11.86 R is empty. 25.06/11.86 Q is empty. 25.06/11.86 We have to consider all (P,Q,R)-chains. 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (26) QDPSizeChangeProof (EQUIVALENT) 25.06/11.86 By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem. 25.06/11.86 25.06/11.86 From the DPs we obtained the following set of size-change graphs: 25.06/11.86 *f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5:0)), java.lang.Object(ARRAY(x6:0)), java.lang.Object(javaUtilEx.HashMap$Entry(x8:0)), x6:0) -> f9334_0_transfer_NONNULL(java.lang.Object(ARRAY(x5:0)), java.lang.Object(ARRAY(x6:0)), x8:0, x6:0) 25.06/11.86 The graph contains the following edges 1 >= 1, 2 >= 2, 3 > 3, 2 > 4, 4 >= 4 25.06/11.86 25.06/11.86 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (27) 25.06/11.86 YES 25.06/11.86 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (28) 25.06/11.86 Obligation: 25.06/11.86 SCC of termination graph based on JBC Program. 25.06/11.86 SCC contains nodes from the following methods: javaUtilEx.HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 25.06/11.86 SCC calls the following helper methods: javaUtilEx.Content.equals(Ljava/lang/Object;)Z 25.06/11.86 Performed SCC analyses: 25.06/11.86 *Used field analysis yielded the following read fields: 25.06/11.86 *javaUtilEx.HashMap$Entry: [hash, next, key] 25.06/11.86 *Marker field analysis yielded the following relations that could be markers: 25.06/11.86 25.06/11.86 ---------------------------------------- 25.06/11.86 25.06/11.86 (29) SCCToIRSProof (SOUND) 25.06/11.86 Transformed FIGraph SCCs to intTRSs. Log: 25.06/11.86 Generated rules. Obtained 57 IRulesP rules: 25.06/11.86 f8619_0_put_NULL(EOS(STATIC_8619), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(o3761sub), java.lang.Object(o3761sub)) -> f8621_0_put_NULL(EOS(STATIC_8621), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(o3761sub), java.lang.Object(o3761sub)) :|: TRUE 25.06/11.86 f8621_0_put_NULL(EOS(STATIC_8621), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(o3761sub), java.lang.Object(o3761sub)) -> f8624_0_put_Load(EOS(STATIC_8624), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(o3761sub)) :|: TRUE 25.06/11.86 f8624_0_put_Load(EOS(STATIC_8624), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(o3761sub)) -> f8627_0_put_FieldAccess(EOS(STATIC_8627), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(o3761sub), java.lang.Object(o3761sub)) :|: TRUE 25.06/11.86 f8627_0_put_FieldAccess(EOS(STATIC_8627), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3471, o3765, o3763)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3471, o3765, o3763))) -> f8630_0_put_FieldAccess(EOS(STATIC_8630), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3471, o3765, o3763)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3471, o3765, o3763))) :|: TRUE 25.06/11.86 f8630_0_put_FieldAccess(EOS(STATIC_8630), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3471, o3765, o3763)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3471, o3765, o3763))) -> f8633_0_put_Load(EOS(STATIC_8633), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3471, o3765, o3763)), i3471) :|: TRUE 25.06/11.86 f8633_0_put_Load(EOS(STATIC_8633), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3471, o3765, o3763)), i3471) -> f8636_0_put_NE(EOS(STATIC_8636), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3471, o3765, o3763)), i3471, i3466) :|: TRUE 25.06/11.86 f8636_0_put_NE(EOS(STATIC_8636), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3471, o3765, o3763)), i3471, i3466) -> f8639_0_put_NE(EOS(STATIC_8639), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3471, o3765, o3763)), i3471, i3466) :|: !(i3471 = i3466) 25.06/11.86 f8636_0_put_NE(EOS(STATIC_8636), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, o3763)), i3466, i3466) -> f8640_0_put_NE(EOS(STATIC_8640), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, o3763)), i3466, i3466) :|: i3471 = i3466 25.06/11.86 f8639_0_put_NE(EOS(STATIC_8639), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3471, o3765, o3763)), i3471, i3466) -> f8643_0_put_Load(EOS(STATIC_8643), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3471, o3765, o3763))) :|: !(i3471 = i3466) 25.06/11.86 f8643_0_put_Load(EOS(STATIC_8643), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3471, o3765, o3763))) -> f8647_0_put_FieldAccess(EOS(STATIC_8647), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3471, o3765, o3763))) :|: TRUE 25.06/11.86 f8647_0_put_FieldAccess(EOS(STATIC_8647), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3471, o3765, o3763))) -> f8651_0_put_Store(EOS(STATIC_8651), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, o3765) :|: TRUE 25.06/11.86 f8651_0_put_Store(EOS(STATIC_8651), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, o3765) -> f8655_0_put_JMP(EOS(STATIC_8655), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, o3765) :|: TRUE 25.06/11.86 f8655_0_put_JMP(EOS(STATIC_8655), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, o3765) -> f8659_0_put_Load(EOS(STATIC_8659), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, o3765) :|: TRUE 25.06/11.86 f8659_0_put_Load(EOS(STATIC_8659), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, o3765) -> f8617_0_put_Load(EOS(STATIC_8617), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, o3765) :|: TRUE 25.06/11.86 f8617_0_put_Load(EOS(STATIC_8617), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, o3750) -> f8619_0_put_NULL(EOS(STATIC_8619), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, o3750, o3750) :|: TRUE 25.06/11.86 f8640_0_put_NE(EOS(STATIC_8640), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, o3763)), i3466, i3466) -> f8644_0_put_Load(EOS(STATIC_8644), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, o3763))) :|: TRUE 25.06/11.86 f8644_0_put_Load(EOS(STATIC_8644), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, o3763))) -> f8648_0_put_FieldAccess(EOS(STATIC_8648), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, o3763)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, o3763))) :|: TRUE 25.06/11.86 f8648_0_put_FieldAccess(EOS(STATIC_8648), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, o3763)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, o3763))) -> f8652_0_put_Duplicate(EOS(STATIC_8652), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, o3763)), o3763) :|: TRUE 25.06/11.86 f8652_0_put_Duplicate(EOS(STATIC_8652), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, o3763)), o3763) -> f8656_0_put_Store(EOS(STATIC_8656), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, o3763)), o3763, o3763) :|: TRUE 25.06/11.86 f8656_0_put_Store(EOS(STATIC_8656), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, o3763)), o3763, o3763) -> f8660_0_put_Load(EOS(STATIC_8660), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, o3763)), o3763, o3763) :|: TRUE 25.06/11.86 f8660_0_put_Load(EOS(STATIC_8660), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, o3763)), o3763, o3763) -> f8663_0_put_EQ(EOS(STATIC_8663), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, o3763)), o3763, o3763, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.86 f8663_0_put_EQ(EOS(STATIC_8663), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3780sub))), java.lang.Object(o3780sub), java.lang.Object(o3780sub), java.lang.Object(javaUtilEx.Content(EOC))) -> f8665_0_put_EQ(EOS(STATIC_8665), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3780sub))), java.lang.Object(o3780sub), java.lang.Object(o3780sub), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.86 f8663_0_put_EQ(EOS(STATIC_8663), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, NULL)), NULL, NULL, java.lang.Object(javaUtilEx.Content(EOC))) -> f8666_0_put_EQ(EOS(STATIC_8666), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, NULL)), NULL, NULL, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.86 f8665_0_put_EQ(EOS(STATIC_8665), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3780sub))), java.lang.Object(o3780sub), java.lang.Object(o3780sub), java.lang.Object(javaUtilEx.Content(EOC))) -> f8669_0_put_Load(EOS(STATIC_8669), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3780sub))), java.lang.Object(o3780sub)) :|: TRUE 25.06/11.86 f8669_0_put_Load(EOS(STATIC_8669), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3780sub))), java.lang.Object(o3780sub)) -> f8672_0_put_Load(EOS(STATIC_8672), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3780sub))), java.lang.Object(o3780sub), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.86 f8672_0_put_Load(EOS(STATIC_8672), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3780sub))), java.lang.Object(o3780sub), java.lang.Object(javaUtilEx.Content(EOC))) -> f8676_0_put_InvokeMethod(EOS(STATIC_8676), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3780sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3780sub)) :|: TRUE 25.06/11.86 f8676_0_put_InvokeMethod(EOS(STATIC_8676), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3780sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3780sub)) -> f8679_0_equals_Load(EOS(STATIC_8679), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3780sub), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3780sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3780sub)) :|: TRUE 25.06/11.86 f8676_0_put_InvokeMethod(EOS(STATIC_8676), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3780sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3780sub)) -> f8679_1_equals_Load(EOS(STATIC_8679), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3780sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3780sub)) :|: TRUE 25.06/11.86 f8679_0_equals_Load(EOS(STATIC_8679), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3780sub), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3780sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3780sub)) -> f9550_0_equals_Load(EOS(STATIC_9550), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3780sub), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3780sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3780sub)) :|: TRUE 25.06/11.86 f8698_0_equals_Return(EOS(STATIC_8698), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3844sub))), matching1) -> f8709_0_put_EQ(EOS(STATIC_8709), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3844sub))), 0) :|: TRUE && matching1 = 0 25.06/11.86 f8709_0_put_EQ(EOS(STATIC_8709), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3844sub))), matching1) -> f8713_0_put_Load(EOS(STATIC_8713), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3844sub)))) :|: TRUE && matching1 = 0 25.06/11.86 f8713_0_put_Load(EOS(STATIC_8713), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3844sub)))) -> f8719_0_put_FieldAccess(EOS(STATIC_8719), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3844sub)))) :|: TRUE 25.06/11.86 f8719_0_put_FieldAccess(EOS(STATIC_8719), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3844sub)))) -> f8725_0_put_Store(EOS(STATIC_8725), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, o3765) :|: TRUE 25.06/11.86 f8725_0_put_Store(EOS(STATIC_8725), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, o3765) -> f8651_0_put_Store(EOS(STATIC_8651), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, o3765) :|: TRUE 25.06/11.86 f8699_0_equals_Return(EOS(STATIC_8699), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(javaUtilEx.Content(EOC)))), matching1) -> f8701_0_equals_Return(EOS(STATIC_8701), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(javaUtilEx.Content(EOC)))), 0) :|: TRUE && matching1 = 0 25.06/11.86 f8701_0_equals_Return(EOS(STATIC_8701), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3909, java.lang.Object(javaUtilEx.Content(EOC)))), i3622) -> f8710_0_put_EQ(EOS(STATIC_8710), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3909, java.lang.Object(javaUtilEx.Content(EOC)))), i3622) :|: TRUE 25.06/11.86 f8710_0_put_EQ(EOS(STATIC_8710), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3909, java.lang.Object(javaUtilEx.Content(EOC)))), matching1) -> f8715_0_put_EQ(EOS(STATIC_8715), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3909, java.lang.Object(javaUtilEx.Content(EOC)))), 0) :|: TRUE && matching1 = 0 25.06/11.86 f8715_0_put_EQ(EOS(STATIC_8715), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3909, java.lang.Object(javaUtilEx.Content(EOC)))), matching1) -> f8721_0_put_Load(EOS(STATIC_8721), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3909, java.lang.Object(javaUtilEx.Content(EOC))))) :|: TRUE && matching1 = 0 25.06/11.86 f8721_0_put_Load(EOS(STATIC_8721), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3909, java.lang.Object(javaUtilEx.Content(EOC))))) -> f8727_0_put_FieldAccess(EOS(STATIC_8727), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3909, java.lang.Object(javaUtilEx.Content(EOC))))) :|: TRUE 25.06/11.86 f8727_0_put_FieldAccess(EOS(STATIC_8727), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3909, java.lang.Object(javaUtilEx.Content(EOC))))) -> f8731_0_put_Store(EOS(STATIC_8731), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, o3909) :|: TRUE 25.06/11.86 f8731_0_put_Store(EOS(STATIC_8731), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, o3909) -> f8651_0_put_Store(EOS(STATIC_8651), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, o3909) :|: TRUE 25.06/11.86 f8700_0_equals_Return(EOS(STATIC_8700), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(javaUtilEx.Content(EOC)))), matching1) -> f8701_0_equals_Return(EOS(STATIC_8701), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(javaUtilEx.Content(EOC)))), 1) :|: TRUE && matching1 = 1 25.06/11.86 f8666_0_put_EQ(EOS(STATIC_8666), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, NULL)), NULL, NULL, java.lang.Object(javaUtilEx.Content(EOC))) -> f8670_0_put_Load(EOS(STATIC_8670), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, NULL)), NULL) :|: TRUE 25.06/11.86 f8670_0_put_Load(EOS(STATIC_8670), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, NULL)), NULL) -> f8673_0_put_Load(EOS(STATIC_8673), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, NULL)), NULL, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.86 f8673_0_put_Load(EOS(STATIC_8673), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, NULL)), NULL, java.lang.Object(javaUtilEx.Content(EOC))) -> f8677_0_put_InvokeMethod(EOS(STATIC_8677), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, NULL)), java.lang.Object(javaUtilEx.Content(EOC)), NULL) :|: TRUE 25.06/11.86 f8677_0_put_InvokeMethod(EOS(STATIC_8677), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, NULL)), java.lang.Object(javaUtilEx.Content(EOC)), NULL) -> f8680_0_equals_Load(EOS(STATIC_8680), java.lang.Object(javaUtilEx.Content(EOC)), NULL, java.lang.Object(javaUtilEx.Content(EOC)), NULL) :|: TRUE 25.06/11.86 f8677_0_put_InvokeMethod(EOS(STATIC_8677), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, NULL)), java.lang.Object(javaUtilEx.Content(EOC)), NULL) -> f8680_1_equals_Load(EOS(STATIC_8680), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, NULL)), java.lang.Object(javaUtilEx.Content(EOC)), NULL) :|: TRUE 25.06/11.86 f8680_0_equals_Load(EOS(STATIC_8680), java.lang.Object(javaUtilEx.Content(EOC)), NULL, java.lang.Object(javaUtilEx.Content(EOC)), NULL) -> f9606_0_equals_Load(EOS(STATIC_9606), java.lang.Object(javaUtilEx.Content(EOC)), NULL, java.lang.Object(javaUtilEx.Content(EOC)), NULL) :|: TRUE 25.06/11.86 f8703_0_equals_Return(EOS(STATIC_8703), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, NULL)), matching1) -> f8711_0_put_EQ(EOS(STATIC_8711), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, NULL)), 0) :|: TRUE && matching1 = 0 25.06/11.86 f8711_0_put_EQ(EOS(STATIC_8711), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, NULL)), matching1) -> f8716_0_put_Load(EOS(STATIC_8716), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, NULL))) :|: TRUE && matching1 = 0 25.06/11.86 f8716_0_put_Load(EOS(STATIC_8716), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, NULL))) -> f8722_0_put_FieldAccess(EOS(STATIC_8722), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, NULL))) :|: TRUE 25.06/11.86 f8722_0_put_FieldAccess(EOS(STATIC_8722), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, NULL))) -> f8728_0_put_Store(EOS(STATIC_8728), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, o3765) :|: TRUE 25.06/11.86 f8728_0_put_Store(EOS(STATIC_8728), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, o3765) -> f8651_0_put_Store(EOS(STATIC_8651), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, o3765) :|: TRUE 25.06/11.86 f8679_1_equals_Load(EOS(STATIC_8679), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3844sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3844sub)) -> f8698_0_equals_Return(EOS(STATIC_8698), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(o3844sub))), 0) :|: TRUE 25.06/11.86 f8679_1_equals_Load(EOS(STATIC_8679), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(javaUtilEx.Content(EOC)))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8699_0_equals_Return(EOS(STATIC_8699), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(javaUtilEx.Content(EOC)))), 0) :|: TRUE 25.06/11.86 f8679_1_equals_Load(EOS(STATIC_8679), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(javaUtilEx.Content(EOC)))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8700_0_equals_Return(EOS(STATIC_8700), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, java.lang.Object(javaUtilEx.Content(EOC)))), 1) :|: TRUE 25.06/11.86 f8680_1_equals_Load(EOS(STATIC_8680), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, NULL)), java.lang.Object(javaUtilEx.Content(EOC)), NULL) -> f8703_0_equals_Return(EOS(STATIC_8703), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466, o3765, NULL)), 0) :|: TRUE 25.06/11.86 Combined rules. Obtained 7 IRulesP rules: 25.06/11.86 f8619_0_put_NULL(EOS(STATIC_8619), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466:0, o3765:0, java.lang.Object(javaUtilEx.Content(EOC)))), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466:0, o3765:0, java.lang.Object(javaUtilEx.Content(EOC))))) -> f8619_0_put_NULL(EOS(STATIC_8619), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466:0, o3765:0, o3765:0) :|: TRUE 25.06/11.86 f8619_0_put_NULL(EOS(STATIC_8619), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466:0, o3765:0, NULL)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466:0, o3765:0, NULL))) -> f8619_0_put_NULL(EOS(STATIC_8619), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466:0, o3765:0, o3765:0) :|: TRUE 25.06/11.86 f8619_0_put_NULL(EOS(STATIC_8619), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3471:0, o3765:0, o3763:0)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3471:0, o3765:0, o3763:0))) -> f8619_0_put_NULL(EOS(STATIC_8619), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466:0, o3765:0, o3765:0) :|: i3471:0 < i3466:0 25.06/11.86 f8619_0_put_NULL(EOS(STATIC_8619), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3471:0, o3765:0, o3763:0)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3471:0, o3765:0, o3763:0))) -> f8619_0_put_NULL(EOS(STATIC_8619), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466:0, o3765:0, o3765:0) :|: i3471:0 > i3466:0 25.06/11.87 f8619_0_put_NULL(EOS(STATIC_8619), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466:0, o3765:0, java.lang.Object(o3780sub:0))), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466:0, o3765:0, java.lang.Object(o3780sub:0)))) -> f8619_0_put_NULL(EOS(STATIC_8619), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466:0, o3765:0, o3765:0) :|: TRUE 25.06/11.87 Removed following non-SCC rules: 25.06/11.87 f8619_0_put_NULL(EOS(STATIC_8619), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466:0, o3765:0, java.lang.Object(o3780sub:0))), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466:0, o3765:0, java.lang.Object(o3780sub:0)))) -> f9550_0_equals_Load(EOS(STATIC_9550), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3780sub:0), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466:0, o3765:0, java.lang.Object(o3780sub:0))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3780sub:0)) :|: TRUE 25.06/11.87 f8619_0_put_NULL(EOS(STATIC_8619), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3466:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466:0, o3765:0, NULL)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i3466:0, o3765:0, NULL))) -> f9606_0_equals_Load(EOS(STATIC_9606), java.lang.Object(javaUtilEx.Content(EOC)), NULL, java.lang.Object(javaUtilEx.Content(EOC)), NULL) :|: TRUE 25.06/11.87 Filtered constant ground arguments: 25.06/11.87 f8619_0_put_NULL(x1, x2, x3, x4, x5, x6, x7) -> f8619_0_put_NULL(x5, x6, x7) 25.06/11.87 EOS(x1) -> EOS 25.06/11.87 javaUtilEx.AbstractMap(x1) -> javaUtilEx.AbstractMap 25.06/11.87 javaUtilEx.Content(x1) -> javaUtilEx.Content 25.06/11.87 javaUtilEx.HashMap$Entry(x1, x2, x3, x4) -> javaUtilEx.HashMap$Entry(x2, x3, x4) 25.06/11.87 javaUtilEx.HashMap(x1) -> javaUtilEx.HashMap 25.06/11.87 Filtered duplicate arguments: 25.06/11.87 f8619_0_put_NULL(x1, x2, x3) -> f8619_0_put_NULL(x1, x3) 25.06/11.87 Finished conversion. Obtained 5 rules.P rules: 25.06/11.87 f8619_0_put_NULL(i3466:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3466:0, o3765:0, java.lang.Object(javaUtilEx.Content)))) -> f8619_0_put_NULL(i3466:0, o3765:0) :|: TRUE 25.06/11.87 f8619_0_put_NULL(i3466:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3466:0, o3765:0, NULL))) -> f8619_0_put_NULL(i3466:0, o3765:0) :|: TRUE 25.06/11.87 f8619_0_put_NULL(i3466:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3471:0, o3765:0, o3763:0))) -> f8619_0_put_NULL(i3466:0, o3765:0) :|: i3471:0 < i3466:0 25.06/11.87 f8619_0_put_NULL(i3466:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3471:0, o3765:0, o3763:0))) -> f8619_0_put_NULL(i3466:0, o3765:0) :|: i3471:0 > i3466:0 25.06/11.87 f8619_0_put_NULL(i3466:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3466:0, o3765:0, java.lang.Object(o3780sub:0)))) -> f8619_0_put_NULL(i3466:0, o3765:0) :|: TRUE 25.06/11.87 25.06/11.87 ---------------------------------------- 25.06/11.87 25.06/11.87 (30) 25.06/11.87 Obligation: 25.06/11.87 Rules: 25.06/11.87 f8619_0_put_NULL(i3466:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3466:0, o3765:0, java.lang.Object(javaUtilEx.Content)))) -> f8619_0_put_NULL(i3466:0, o3765:0) :|: TRUE 25.06/11.87 f8619_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x, x1, NULL))) -> f8619_0_put_NULL(x, x1) :|: TRUE 25.06/11.87 f8619_0_put_NULL(x2, java.lang.Object(javaUtilEx.HashMap$Entry(x3, x4, x5))) -> f8619_0_put_NULL(x2, x4) :|: x3 < x2 25.06/11.87 f8619_0_put_NULL(x6, java.lang.Object(javaUtilEx.HashMap$Entry(x7, x8, x9))) -> f8619_0_put_NULL(x6, x8) :|: x7 > x6 25.06/11.87 f8619_0_put_NULL(x10, java.lang.Object(javaUtilEx.HashMap$Entry(x10, x11, java.lang.Object(x12)))) -> f8619_0_put_NULL(x10, x11) :|: TRUE 25.06/11.87 25.06/11.87 ---------------------------------------- 25.06/11.87 25.06/11.87 (31) IRSFormatTransformerProof (EQUIVALENT) 25.06/11.87 Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). 25.06/11.87 ---------------------------------------- 25.06/11.87 25.06/11.87 (32) 25.06/11.87 Obligation: 25.06/11.87 Rules: 25.06/11.87 f8619_0_put_NULL(i3466:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3466:0, o3765:0, java.lang.Object(javaUtilEx.Content)))) -> f8619_0_put_NULL(i3466:0, o3765:0) :|: TRUE 25.06/11.87 f8619_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x, x1, NULL))) -> f8619_0_put_NULL(x, x1) :|: TRUE 25.06/11.87 f8619_0_put_NULL(x2, java.lang.Object(javaUtilEx.HashMap$Entry(x3, x4, x5))) -> f8619_0_put_NULL(x2, x4) :|: x3 < x2 25.06/11.87 f8619_0_put_NULL(x6, java.lang.Object(javaUtilEx.HashMap$Entry(x7, x8, x9))) -> f8619_0_put_NULL(x6, x8) :|: x7 > x6 25.06/11.87 f8619_0_put_NULL(x10, java.lang.Object(javaUtilEx.HashMap$Entry(x10, x11, java.lang.Object(x12)))) -> f8619_0_put_NULL(x10, x11) :|: TRUE 25.06/11.87 25.06/11.87 ---------------------------------------- 25.06/11.87 25.06/11.87 (33) IRSwTTerminationDigraphProof (EQUIVALENT) 25.06/11.87 Constructed termination digraph! 25.06/11.87 Nodes: 25.06/11.87 (1) f8619_0_put_NULL(i3466:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3466:0, o3765:0, java.lang.Object(javaUtilEx.Content)))) -> f8619_0_put_NULL(i3466:0, o3765:0) :|: TRUE 25.06/11.87 (2) f8619_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x, x1, NULL))) -> f8619_0_put_NULL(x, x1) :|: TRUE 25.06/11.87 (3) f8619_0_put_NULL(x2, java.lang.Object(javaUtilEx.HashMap$Entry(x3, x4, x5))) -> f8619_0_put_NULL(x2, x4) :|: x3 < x2 25.06/11.87 (4) f8619_0_put_NULL(x6, java.lang.Object(javaUtilEx.HashMap$Entry(x7, x8, x9))) -> f8619_0_put_NULL(x6, x8) :|: x7 > x6 25.06/11.87 (5) f8619_0_put_NULL(x10, java.lang.Object(javaUtilEx.HashMap$Entry(x10, x11, java.lang.Object(x12)))) -> f8619_0_put_NULL(x10, x11) :|: TRUE 25.06/11.87 25.06/11.87 Arcs: 25.06/11.87 (1) -> (1), (2), (3), (4), (5) 25.06/11.87 (2) -> (1), (2), (3), (4), (5) 25.06/11.87 (3) -> (1), (2), (3), (4), (5) 25.06/11.87 (4) -> (1), (2), (3), (4), (5) 25.06/11.87 (5) -> (1), (2), (3), (4), (5) 25.06/11.87 25.06/11.87 This digraph is fully evaluated! 25.06/11.87 ---------------------------------------- 25.06/11.87 25.06/11.87 (34) 25.06/11.87 Obligation: 25.06/11.87 25.06/11.87 Termination digraph: 25.06/11.87 Nodes: 25.06/11.87 (1) f8619_0_put_NULL(i3466:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3466:0, o3765:0, java.lang.Object(javaUtilEx.Content)))) -> f8619_0_put_NULL(i3466:0, o3765:0) :|: TRUE 25.06/11.87 (2) f8619_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x, x1, NULL))) -> f8619_0_put_NULL(x, x1) :|: TRUE 25.06/11.87 (3) f8619_0_put_NULL(x2, java.lang.Object(javaUtilEx.HashMap$Entry(x3, x4, x5))) -> f8619_0_put_NULL(x2, x4) :|: x3 < x2 25.06/11.87 (4) f8619_0_put_NULL(x6, java.lang.Object(javaUtilEx.HashMap$Entry(x7, x8, x9))) -> f8619_0_put_NULL(x6, x8) :|: x7 > x6 25.06/11.87 (5) f8619_0_put_NULL(x10, java.lang.Object(javaUtilEx.HashMap$Entry(x10, x11, java.lang.Object(x12)))) -> f8619_0_put_NULL(x10, x11) :|: TRUE 25.06/11.87 25.06/11.87 Arcs: 25.06/11.87 (1) -> (1), (2), (3), (4), (5) 25.06/11.87 (2) -> (1), (2), (3), (4), (5) 25.06/11.87 (3) -> (1), (2), (3), (4), (5) 25.06/11.87 (4) -> (1), (2), (3), (4), (5) 25.06/11.87 (5) -> (1), (2), (3), (4), (5) 25.06/11.87 25.06/11.87 This digraph is fully evaluated! 25.06/11.87 25.06/11.87 ---------------------------------------- 25.06/11.87 25.06/11.87 (35) TempFilterProof (SOUND) 25.06/11.87 Used the following sort dictionary for filtering: 25.06/11.87 f8619_0_put_NULL(VARIABLE, VARIABLE) 25.06/11.87 java.lang.Object(VARIABLE) 25.06/11.87 javaUtilEx.HashMap$Entry(VARIABLE, VARIABLE, VARIABLE) 25.06/11.87 javaUtilEx.Content() 25.06/11.87 NULL() 25.06/11.87 Removed predefined arithmetic. 25.06/11.87 ---------------------------------------- 25.06/11.87 25.06/11.87 (36) 25.06/11.87 Obligation: 25.06/11.87 Rules: 25.06/11.87 f8619_0_put_NULL(i3466:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3466:0, o3765:0, java.lang.Object(javaUtilEx.Content)))) -> f8619_0_put_NULL(i3466:0, o3765:0) 25.06/11.87 f8619_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x, x1, NULL))) -> f8619_0_put_NULL(x, x1) 25.06/11.87 f8619_0_put_NULL(x2, java.lang.Object(javaUtilEx.HashMap$Entry(x3, x4, x5))) -> f8619_0_put_NULL(x2, x4) 25.06/11.87 f8619_0_put_NULL(x10, java.lang.Object(javaUtilEx.HashMap$Entry(x10, x11, java.lang.Object(x12)))) -> f8619_0_put_NULL(x10, x11) 25.06/11.87 25.06/11.87 ---------------------------------------- 25.06/11.87 25.06/11.87 (37) IRSwTToQDPProof (SOUND) 25.06/11.87 Removed the integers and created a QDP-Problem. 25.06/11.87 ---------------------------------------- 25.06/11.87 25.06/11.87 (38) 25.06/11.87 Obligation: 25.06/11.87 Q DP problem: 25.06/11.87 The TRS P consists of the following rules: 25.06/11.87 25.06/11.87 f8619_0_put_NULL(i3466:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3466:0, o3765:0, java.lang.Object(javaUtilEx.Content)))) -> f8619_0_put_NULL(i3466:0, o3765:0) 25.06/11.87 f8619_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x, x1, NULL))) -> f8619_0_put_NULL(x, x1) 25.06/11.87 f8619_0_put_NULL(x2, java.lang.Object(javaUtilEx.HashMap$Entry(x3, x4, x5))) -> f8619_0_put_NULL(x2, x4) 25.06/11.87 f8619_0_put_NULL(x10, java.lang.Object(javaUtilEx.HashMap$Entry(x10, x11, java.lang.Object(x12)))) -> f8619_0_put_NULL(x10, x11) 25.06/11.87 25.06/11.87 R is empty. 25.06/11.87 Q is empty. 25.06/11.87 We have to consider all (P,Q,R)-chains. 25.06/11.87 ---------------------------------------- 25.06/11.87 25.06/11.87 (39) QDPSizeChangeProof (EQUIVALENT) 25.06/11.87 By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem. 25.06/11.87 25.06/11.87 From the DPs we obtained the following set of size-change graphs: 25.06/11.87 *f8619_0_put_NULL(i3466:0, java.lang.Object(javaUtilEx.HashMap$Entry(i3466:0, o3765:0, java.lang.Object(javaUtilEx.Content)))) -> f8619_0_put_NULL(i3466:0, o3765:0) 25.06/11.87 The graph contains the following edges 1 >= 1, 2 > 1, 2 > 2 25.06/11.87 25.06/11.87 25.06/11.87 *f8619_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x, x1, NULL))) -> f8619_0_put_NULL(x, x1) 25.06/11.87 The graph contains the following edges 1 >= 1, 2 > 1, 2 > 2 25.06/11.87 25.06/11.87 25.06/11.87 *f8619_0_put_NULL(x2, java.lang.Object(javaUtilEx.HashMap$Entry(x3, x4, x5))) -> f8619_0_put_NULL(x2, x4) 25.06/11.87 The graph contains the following edges 1 >= 1, 2 > 2 25.06/11.87 25.06/11.87 25.06/11.87 *f8619_0_put_NULL(x10, java.lang.Object(javaUtilEx.HashMap$Entry(x10, x11, java.lang.Object(x12)))) -> f8619_0_put_NULL(x10, x11) 25.06/11.87 The graph contains the following edges 1 >= 1, 2 > 1, 2 > 2 25.06/11.87 25.06/11.87 25.06/11.87 ---------------------------------------- 25.06/11.87 25.06/11.87 (40) 25.06/11.87 YES 25.06/11.87 25.06/11.87 ---------------------------------------- 25.06/11.87 25.06/11.87 (41) 25.06/11.87 Obligation: 25.06/11.87 SCC of termination graph based on JBC Program. 25.06/11.87 SCC contains nodes from the following methods: javaUtilEx.juHashMapCreateIsEmpty.createMap(I)LjavaUtilEx/HashMap; 25.06/11.87 SCC calls the following helper methods: javaUtilEx.HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;, javaUtilEx.Content.hashCode()I, javaUtilEx.Content.equals(Ljava/lang/Object;)Z 25.06/11.87 Performed SCC analyses: 25.06/11.87 *Used field analysis yielded the following read fields: 25.06/11.87 *java.lang.String: [count] 25.06/11.87 *Marker field analysis yielded the following relations that could be markers: 25.06/11.87 25.06/11.87 ---------------------------------------- 25.06/11.87 25.06/11.87 (42) SCCToIRSProof (SOUND) 25.06/11.87 Transformed FIGraph SCCs to intTRSs. Log: 25.06/11.87 Generated rules. Obtained 81 IRulesP rules: 25.06/11.87 f8208_0_createMap_LE(EOS(STATIC_8208(java.lang.Object(o3547sub), i3209)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3228) -> f8212_0_createMap_LE(EOS(STATIC_8212(java.lang.Object(o3547sub), i3209)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3228) :|: TRUE 25.06/11.87 f8212_0_createMap_LE(EOS(STATIC_8212(java.lang.Object(o3547sub), i3209)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3228) -> f8217_0_createMap_New(EOS(STATIC_8217(java.lang.Object(o3547sub), i3209)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: i3228 > 0 25.06/11.87 f8217_0_createMap_New(EOS(STATIC_8217(java.lang.Object(o3547sub), i3209)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f8222_0_createMap_Duplicate(EOS(STATIC_8222(java.lang.Object(o3547sub), i3209)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.87 f8222_0_createMap_Duplicate(EOS(STATIC_8222(java.lang.Object(o3547sub), i3209)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) -> f8226_0_createMap_InvokeMethod(EOS(STATIC_8226(java.lang.Object(o3547sub), i3209)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.87 f8226_0_createMap_InvokeMethod(EOS(STATIC_8226(java.lang.Object(o3547sub), i3209)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8230_0_random_FieldAccess(EOS(STATIC_8230(java.lang.Object(o3547sub), i3209)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.87 f8230_0_random_FieldAccess(EOS(STATIC_8230(java.lang.Object(o3547sub), i3209)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8240_0_random_FieldAccess(EOS(STATIC_8240(java.lang.Object(o3547sub), i3209)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3547sub)) :|: TRUE 25.06/11.87 f8240_0_random_FieldAccess(EOS(STATIC_8240(java.lang.Object(o3547sub), i3209)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3547sub)) -> f8245_0_random_ArrayAccess(EOS(STATIC_8245(java.lang.Object(o3547sub), i3209)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3547sub), i3209) :|: TRUE 25.06/11.87 f8245_0_random_ArrayAccess(EOS(STATIC_8245(java.lang.Object(ARRAY(i3256)), i3209)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3256)), i3209) -> f8250_0_random_ArrayAccess(EOS(STATIC_8250(java.lang.Object(ARRAY(i3256)), i3209)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3256)), i3209) :|: i3256 >= 0 25.06/11.87 f8250_0_random_ArrayAccess(EOS(STATIC_8250(java.lang.Object(ARRAY(i3256)), i3258)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3256)), i3258) -> f8256_0_random_ArrayAccess(EOS(STATIC_8256(java.lang.Object(ARRAY(i3256)), i3258)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3256)), i3258) :|: TRUE 25.06/11.87 f8256_0_random_ArrayAccess(EOS(STATIC_8256(java.lang.Object(ARRAY(i3256)), i3258)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3256)), i3258) -> f8262_0_random_ArrayAccess(EOS(STATIC_8262(java.lang.Object(ARRAY(i3256)), i3258)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3256)), i3258) :|: TRUE 25.06/11.87 f8262_0_random_ArrayAccess(EOS(STATIC_8262(java.lang.Object(ARRAY(i3256)), i3258)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i3256)), i3258) -> f8268_0_random_Store(EOS(STATIC_8268(java.lang.Object(ARRAY(i3256)), i3258)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3578) :|: i3258 < i3256 25.06/11.87 f8268_0_random_Store(EOS(STATIC_8268(java.lang.Object(ARRAY(i3256)), i3258)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3578) -> f8274_0_random_FieldAccess(EOS(STATIC_8274(java.lang.Object(ARRAY(i3256)), i3258)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3578) :|: TRUE 25.06/11.87 f8274_0_random_FieldAccess(EOS(STATIC_8274(java.lang.Object(ARRAY(i3256)), i3258)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3578) -> f8281_0_random_ConstantStackPush(EOS(STATIC_8281(java.lang.Object(ARRAY(i3256)), i3258)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3578, i3258) :|: TRUE 25.06/11.87 f8281_0_random_ConstantStackPush(EOS(STATIC_8281(java.lang.Object(ARRAY(i3256)), i3258)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3578, i3258) -> f8288_0_random_IntArithmetic(EOS(STATIC_8288(java.lang.Object(ARRAY(i3256)), i3258)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3578, i3258, 1) :|: TRUE 25.06/11.87 f8288_0_random_IntArithmetic(EOS(STATIC_8288(java.lang.Object(ARRAY(i3256)), i3258)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3578, i3258, matching1) -> f8295_0_random_FieldAccess(EOS(STATIC_8295(java.lang.Object(ARRAY(i3256)), i3258)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3578, i3258 + 1) :|: i3258 >= 0 && matching1 = 1 25.06/11.87 f8295_0_random_FieldAccess(EOS(STATIC_8295(java.lang.Object(ARRAY(i3256)), i3258)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3578, i3262) -> f8303_0_random_Load(EOS(STATIC_8303(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3578) :|: TRUE 25.06/11.87 f8303_0_random_Load(EOS(STATIC_8303(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3578) -> f8311_0_random_InvokeMethod(EOS(STATIC_8311(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o3578) :|: TRUE 25.06/11.87 f8311_0_random_InvokeMethod(EOS(STATIC_8311(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3588sub)) -> f8317_0_random_InvokeMethod(EOS(STATIC_8317(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3588sub)) :|: TRUE 25.06/11.87 f8317_0_random_InvokeMethod(EOS(STATIC_8317(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3594sub)) -> f8323_0_random_InvokeMethod(EOS(STATIC_8323(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3594sub)) :|: TRUE 25.06/11.87 f8323_0_random_InvokeMethod(EOS(STATIC_8323(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3594sub)) -> f8329_0_length_Load(EOS(STATIC_8329(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3594sub)) :|: TRUE 25.06/11.87 f8329_0_length_Load(EOS(STATIC_8329(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3594sub)) -> f8340_0_length_FieldAccess(EOS(STATIC_8340(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o3594sub)) :|: TRUE 25.06/11.87 f8340_0_length_FieldAccess(EOS(STATIC_8340(java.lang.Object(ARRAY(i3256)), i3262)), i3228, 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, i3267))) -> f8346_0_length_FieldAccess(EOS(STATIC_8346(java.lang.Object(ARRAY(i3256)), i3262)), i3228, 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, i3267))) :|: i3267 >= 0 25.06/11.87 f8346_0_length_FieldAccess(EOS(STATIC_8346(java.lang.Object(ARRAY(i3256)), i3262)), i3228, 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, i3267))) -> f8350_0_length_Return(EOS(STATIC_8350(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3267) :|: TRUE 25.06/11.87 f8350_0_length_Return(EOS(STATIC_8350(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3267) -> f8355_0_random_Return(EOS(STATIC_8355(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3267) :|: TRUE 25.06/11.87 f8355_0_random_Return(EOS(STATIC_8355(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3267) -> f8361_0_createMap_InvokeMethod(EOS(STATIC_8361(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3267) :|: TRUE 25.06/11.87 f8361_0_createMap_InvokeMethod(EOS(STATIC_8361(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3267) -> f8365_0__init__Load(EOS(STATIC_8365(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3267) :|: TRUE 25.06/11.87 f8365_0__init__Load(EOS(STATIC_8365(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3267) -> f8376_0__init__InvokeMethod(EOS(STATIC_8376(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3267, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.87 f8376_0__init__InvokeMethod(EOS(STATIC_8376(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3267, java.lang.Object(javaUtilEx.Content(EOC))) -> f8380_0__init__Load(EOS(STATIC_8380(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3267) :|: TRUE 25.06/11.87 f8380_0__init__Load(EOS(STATIC_8380(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3267) -> f8386_0__init__Load(EOS(STATIC_8386(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3267, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.87 f8386_0__init__Load(EOS(STATIC_8386(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i3267, java.lang.Object(javaUtilEx.Content(EOC))) -> f8392_0__init__FieldAccess(EOS(STATIC_8392(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3267) :|: TRUE 25.06/11.87 f8392_0__init__FieldAccess(EOS(STATIC_8392(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3267) -> f8398_0__init__Return(EOS(STATIC_8398(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.87 f8398_0__init__Return(EOS(STATIC_8398(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) -> f8404_0_createMap_Store(EOS(STATIC_8404(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.87 f8404_0_createMap_Store(EOS(STATIC_8404(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) -> f8410_0_createMap_New(EOS(STATIC_8410(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.87 f8410_0_createMap_New(EOS(STATIC_8410(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) -> f8416_0_createMap_Duplicate(EOS(STATIC_8416(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.87 f8416_0_createMap_Duplicate(EOS(STATIC_8416(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8422_0_createMap_InvokeMethod(EOS(STATIC_8422(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.87 f8422_0_createMap_InvokeMethod(EOS(STATIC_8422(java.lang.Object(ARRAY(i3256)), i3262)), i3228, 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))) -> f8428_0_random_FieldAccess(EOS(STATIC_8428(java.lang.Object(ARRAY(i3256)), i3262)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.87 f8428_0_random_FieldAccess(EOS(STATIC_8428(java.lang.Object(ARRAY(i3256)), i3262)), i3228, 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))) -> f8437_0_random_FieldAccess(EOS(STATIC_8437(java.lang.Object(ARRAY(i3256)), i3262)), i3228, 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(i3256))) :|: TRUE 25.06/11.87 f8437_0_random_FieldAccess(EOS(STATIC_8437(java.lang.Object(ARRAY(i3256)), i3262)), i3228, 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(i3256))) -> f8441_0_random_ArrayAccess(EOS(STATIC_8441(java.lang.Object(ARRAY(i3256)), i3262)), i3228, 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(i3256)), i3262) :|: TRUE 25.06/11.87 f8441_0_random_ArrayAccess(EOS(STATIC_8441(java.lang.Object(ARRAY(i3256)), i3262)), i3228, 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(i3256)), i3262) -> f8445_0_random_ArrayAccess(EOS(STATIC_8445(java.lang.Object(ARRAY(i3256)), i3262)), i3228, 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(i3256)), i3262) :|: TRUE 25.06/11.87 f8445_0_random_ArrayAccess(EOS(STATIC_8445(java.lang.Object(ARRAY(i3256)), i3262)), i3228, 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(i3256)), i3262) -> f8449_0_random_Store(EOS(STATIC_8449(java.lang.Object(ARRAY(i3256)), i3262)), i3228, 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)), o3675) :|: i3262 < i3256 25.06/11.87 f8449_0_random_Store(EOS(STATIC_8449(java.lang.Object(ARRAY(i3256)), i3262)), i3228, 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)), o3675) -> f8453_0_random_FieldAccess(EOS(STATIC_8453(java.lang.Object(ARRAY(i3256)), i3262)), i3228, 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)), o3675) :|: TRUE 25.06/11.87 f8453_0_random_FieldAccess(EOS(STATIC_8453(java.lang.Object(ARRAY(i3256)), i3262)), i3228, 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)), o3675) -> f8454_0_random_ConstantStackPush(EOS(STATIC_8454(java.lang.Object(ARRAY(i3256)), i3262)), i3228, 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)), o3675, i3262) :|: TRUE 25.06/11.87 f8454_0_random_ConstantStackPush(EOS(STATIC_8454(java.lang.Object(ARRAY(i3256)), i3262)), i3228, 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)), o3675, i3262) -> f8457_0_random_IntArithmetic(EOS(STATIC_8457(java.lang.Object(ARRAY(i3256)), i3262)), i3228, 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)), o3675, i3262, 1) :|: TRUE 25.06/11.87 f8457_0_random_IntArithmetic(EOS(STATIC_8457(java.lang.Object(ARRAY(i3256)), i3262)), i3228, 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)), o3675, i3262, matching1) -> f8459_0_random_FieldAccess(EOS(STATIC_8459(java.lang.Object(ARRAY(i3256)), i3262)), i3228, 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)), o3675, i3262 + 1) :|: i3262 > 0 && matching1 = 1 25.06/11.87 f8459_0_random_FieldAccess(EOS(STATIC_8459(java.lang.Object(ARRAY(i3256)), i3262)), i3228, 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)), o3675, i3350) -> f8460_0_random_Load(EOS(STATIC_8460(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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)), o3675) :|: TRUE 25.06/11.87 f8460_0_random_Load(EOS(STATIC_8460(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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)), o3675) -> f8462_0_random_InvokeMethod(EOS(STATIC_8462(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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)), o3675) :|: TRUE 25.06/11.87 f8462_0_random_InvokeMethod(EOS(STATIC_8462(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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(o3688sub)) -> f8464_0_random_InvokeMethod(EOS(STATIC_8464(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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(o3688sub)) :|: TRUE 25.06/11.87 f8464_0_random_InvokeMethod(EOS(STATIC_8464(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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(o3689sub)) -> f8466_0_random_InvokeMethod(EOS(STATIC_8466(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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(o3689sub)) :|: TRUE 25.06/11.87 f8466_0_random_InvokeMethod(EOS(STATIC_8466(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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(o3689sub)) -> f8469_0_length_Load(EOS(STATIC_8469(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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(o3689sub)) :|: TRUE 25.06/11.87 f8469_0_length_Load(EOS(STATIC_8469(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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(o3689sub)) -> f8472_0_length_FieldAccess(EOS(STATIC_8472(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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(o3689sub)) :|: TRUE 25.06/11.87 f8472_0_length_FieldAccess(EOS(STATIC_8472(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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, i3363))) -> f8475_0_length_FieldAccess(EOS(STATIC_8475(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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, i3363))) :|: i3363 >= 0 25.06/11.87 f8475_0_length_FieldAccess(EOS(STATIC_8475(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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, i3363))) -> f8477_0_length_Return(EOS(STATIC_8477(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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)), i3363) :|: TRUE 25.06/11.87 f8477_0_length_Return(EOS(STATIC_8477(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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)), i3363) -> f8479_0_random_Return(EOS(STATIC_8479(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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)), i3363) :|: TRUE 25.06/11.87 f8479_0_random_Return(EOS(STATIC_8479(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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)), i3363) -> f8482_0_createMap_InvokeMethod(EOS(STATIC_8482(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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)), i3363) :|: TRUE 25.06/11.87 f8482_0_createMap_InvokeMethod(EOS(STATIC_8482(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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)), i3363) -> f8484_0__init__Load(EOS(STATIC_8484(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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)), i3363) :|: TRUE 25.06/11.87 f8484_0__init__Load(EOS(STATIC_8484(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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)), i3363) -> f8489_0__init__InvokeMethod(EOS(STATIC_8489(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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)), i3363, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.87 f8489_0__init__InvokeMethod(EOS(STATIC_8489(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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)), i3363, java.lang.Object(javaUtilEx.Content(EOC))) -> f8491_0__init__Load(EOS(STATIC_8491(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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)), i3363) :|: TRUE 25.06/11.87 f8491_0__init__Load(EOS(STATIC_8491(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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)), i3363) -> f8494_0__init__Load(EOS(STATIC_8494(java.lang.Object(ARRAY(i3256)), i3350)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3363, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.87 f8494_0__init__Load(EOS(STATIC_8494(java.lang.Object(ARRAY(i3256)), i3350)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i3363, java.lang.Object(javaUtilEx.Content(EOC))) -> f8497_0__init__FieldAccess(EOS(STATIC_8497(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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)), i3363) :|: TRUE 25.06/11.87 f8497_0__init__FieldAccess(EOS(STATIC_8497(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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)), i3363) -> f8500_0__init__Return(EOS(STATIC_8500(java.lang.Object(ARRAY(i3256)), i3350)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.87 f8500_0__init__Return(EOS(STATIC_8500(java.lang.Object(ARRAY(i3256)), i3350)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8503_0_createMap_Store(EOS(STATIC_8503(java.lang.Object(ARRAY(i3256)), i3350)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.87 f8503_0_createMap_Store(EOS(STATIC_8503(java.lang.Object(ARRAY(i3256)), i3350)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8506_0_createMap_Load(EOS(STATIC_8506(java.lang.Object(ARRAY(i3256)), i3350)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.87 f8506_0_createMap_Load(EOS(STATIC_8506(java.lang.Object(ARRAY(i3256)), i3350)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f8509_0_createMap_Load(EOS(STATIC_8509(java.lang.Object(ARRAY(i3256)), i3350)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 25.06/11.87 f8509_0_createMap_Load(EOS(STATIC_8509(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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)))) -> f8512_0_createMap_Load(EOS(STATIC_8512(java.lang.Object(ARRAY(i3256)), i3350)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.87 f8512_0_createMap_Load(EOS(STATIC_8512(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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))) -> f8515_0_createMap_InvokeMethod(EOS(STATIC_8515(java.lang.Object(ARRAY(i3256)), i3350)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.87 f8515_0_createMap_InvokeMethod(EOS(STATIC_8515(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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))) -> f8518_0_put_Load(EOS(STATIC_8518(java.lang.Object(ARRAY(i3256)), i3350)), 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))) :|: i3229 >= 1 && i3228 >= 1 && i3350 > 1 && i3229 >= i3228 25.06/11.87 f8515_0_createMap_InvokeMethod(EOS(STATIC_8515(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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))) -> f8518_1_put_Load(EOS(STATIC_8518(java.lang.Object(ARRAY(i3256)), i3350)), i3228, 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))) :|: i3229 >= 1 && i3228 >= 1 && i3350 > 1 && i3229 >= i3228 25.06/11.87 f8518_0_put_Load(EOS(STATIC_8518(java.lang.Object(ARRAY(i3256)), i3350)), 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))) -> f9820_0_put_Load(EOS(STATIC_9820(java.lang.Object(ARRAY(i3256)), i3350)), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 25.06/11.87 f8765_0_put_Return(EOS(STATIC_8765(java.lang.Object(ARRAY(i3694)), i3696)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f8768_0_createMap_StackPop(EOS(STATIC_8768(java.lang.Object(ARRAY(i3694)), i3696)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 25.06/11.87 f8768_0_createMap_StackPop(EOS(STATIC_8768(java.lang.Object(ARRAY(i3694)), i3696)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f8771_0_createMap_Inc(EOS(STATIC_8771(java.lang.Object(ARRAY(i3694)), i3696)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 25.06/11.87 f8771_0_createMap_Inc(EOS(STATIC_8771(java.lang.Object(ARRAY(i3694)), i3696)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f8774_0_createMap_JMP(EOS(STATIC_8774(java.lang.Object(ARRAY(i3694)), i3696)), i3228 + -1, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 25.06/11.87 f8774_0_createMap_JMP(EOS(STATIC_8774(java.lang.Object(ARRAY(i3694)), i3696)), i3697, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f8777_0_createMap_Load(EOS(STATIC_8777(java.lang.Object(ARRAY(i3694)), i3696)), i3697, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 25.06/11.87 f8777_0_createMap_Load(EOS(STATIC_8777(java.lang.Object(ARRAY(i3694)), i3696)), i3697, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f8205_0_createMap_Load(EOS(STATIC_8205(java.lang.Object(ARRAY(i3694)), i3696)), i3697, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 25.06/11.87 f8205_0_createMap_Load(EOS(STATIC_8205(java.lang.Object(o3547sub), i3209)), i3211, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f8208_0_createMap_LE(EOS(STATIC_8208(java.lang.Object(o3547sub), i3209)), i3211, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3211) :|: TRUE 25.06/11.87 f8821_0_put_Return(EOS(STATIC_8821(java.lang.Object(ARRAY(i3729)), i3731)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) -> f8824_0_createMap_StackPop(EOS(STATIC_8824(java.lang.Object(ARRAY(i3729)), i3731)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) :|: TRUE 25.06/11.87 f8824_0_createMap_StackPop(EOS(STATIC_8824(java.lang.Object(ARRAY(i3729)), i3731)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) -> f8827_0_createMap_Inc(EOS(STATIC_8827(java.lang.Object(ARRAY(i3729)), i3731)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 25.06/11.87 f8827_0_createMap_Inc(EOS(STATIC_8827(java.lang.Object(ARRAY(i3729)), i3731)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f8771_0_createMap_Inc(EOS(STATIC_8771(java.lang.Object(ARRAY(i3729)), i3731)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 25.06/11.87 f9261_0_put_Return(EOS(STATIC_9261(java.lang.Object(ARRAY(i3930)), i3932)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) -> f8821_0_put_Return(EOS(STATIC_8821(java.lang.Object(ARRAY(i3930)), i3932)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) :|: TRUE 25.06/11.87 f8518_1_put_Load(EOS(STATIC_8518(java.lang.Object(ARRAY(i3694)), i3696)), i3228, 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))) -> f8765_0_put_Return(EOS(STATIC_8765(java.lang.Object(ARRAY(i3694)), i3696)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 25.28/11.87 f8518_1_put_Load(EOS(STATIC_8518(java.lang.Object(ARRAY(i3729)), i3731)), i3228, 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))) -> f8821_0_put_Return(EOS(STATIC_8821(java.lang.Object(ARRAY(i3729)), i3731)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) :|: TRUE 25.28/11.87 f8518_1_put_Load(EOS(STATIC_8518(java.lang.Object(ARRAY(i3930)), i3932)), i3228, 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))) -> f9261_0_put_Return(EOS(STATIC_9261(java.lang.Object(ARRAY(i3930)), i3932)), i3228, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) :|: TRUE 25.28/11.87 Combined rules. Obtained 2 IRulesP rules: 25.28/11.87 f8208_0_createMap_LE(EOS(STATIC_8208(java.lang.Object(ARRAY(i3256:0)), i3209:0)), i3228:0, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3228:0) -> f8208_0_createMap_LE(EOS(STATIC_8208(java.lang.Object(ARRAY(i3256:0)), i3209:0 + 2)), i3228:0 - 1, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3228:0 - 1) :|: i3256:0 > i3209:0 + 1 && i3228:0 > 0 && i3256:0 > -1 && i3209:0 > -1 && i3267:0 > -1 && i3363:0 > -1 && i3229:0 > 0 && i3229:0 >= i3228:0 25.28/11.87 Removed following non-SCC rules: 25.28/11.87 f8208_0_createMap_LE(EOS(STATIC_8208(java.lang.Object(ARRAY(i3256:0)), i3209:0)), i3228:0, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i3228:0) -> f9820_0_put_Load(EOS(STATIC_9820(java.lang.Object(ARRAY(i3256:0)), i3209: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))) :|: i3256:0 > i3209:0 + 1 && i3228:0 > 0 && i3256:0 > -1 && i3209:0 > -1 && i3267:0 > -1 && i3363:0 > -1 && i3229:0 > 0 && i3229:0 >= i3228:0 25.28/11.87 Filtered constant ground arguments: 25.28/11.87 f8208_0_createMap_LE(x1, x2, x3, x4) -> f8208_0_createMap_LE(x1, x2, x4) 25.28/11.87 javaUtilEx.AbstractMap(x1) -> javaUtilEx.AbstractMap 25.28/11.87 javaUtilEx.HashMap(x1) -> javaUtilEx.HashMap 25.28/11.87 Filtered duplicate arguments: 25.28/11.87 f8208_0_createMap_LE(x1, x2, x3) -> f8208_0_createMap_LE(x1, x3) 25.28/11.87 Finished conversion. Obtained 1 rules.P rules: 25.28/11.87 f8208_0_createMap_LE(i3228:0, i3256:0, i3209:0) -> f8208_0_createMap_LE(i3228:0 - 1, i3256:0, i3209:0 + 2) :|: i3228:0 > 0 && i3256:0 > i3209:0 + 1 && i3256:0 > -1 && i3209:0 > -1 && i3267:0 > -1 && i3363:0 > -1 && i3229:0 >= i3228:0 && i3229:0 > 0 25.28/11.87 25.28/11.87 ---------------------------------------- 25.28/11.87 25.28/11.87 (43) 25.28/11.87 Obligation: 25.28/11.87 Rules: 25.28/11.87 f8208_0_createMap_LE(i3228:0, i3256:0, i3209:0) -> f8208_0_createMap_LE(i3228:0 - 1, i3256:0, i3209:0 + 2) :|: i3228:0 > 0 && i3256:0 > i3209:0 + 1 && i3256:0 > -1 && i3209:0 > -1 && i3267:0 > -1 && i3363:0 > -1 && i3229:0 >= i3228:0 && i3229:0 > 0 25.28/11.87 25.28/11.87 ---------------------------------------- 25.28/11.87 25.28/11.87 (44) IRSFormatTransformerProof (EQUIVALENT) 25.28/11.87 Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). 25.28/11.87 ---------------------------------------- 25.28/11.87 25.28/11.87 (45) 25.28/11.87 Obligation: 25.28/11.87 Rules: 25.28/11.87 f8208_0_createMap_LE(i3228:0, i3256:0, i3209:0) -> f8208_0_createMap_LE(arith, i3256:0, arith1) :|: i3228:0 > 0 && i3256:0 > i3209:0 + 1 && i3256:0 > -1 && i3209:0 > -1 && i3267:0 > -1 && i3363:0 > -1 && i3229:0 >= i3228:0 && i3229:0 > 0 && arith = i3228:0 - 1 && arith1 = i3209:0 + 2 25.28/11.87 25.28/11.87 ---------------------------------------- 25.28/11.87 25.28/11.87 (46) IRSwTTerminationDigraphProof (EQUIVALENT) 25.28/11.87 Constructed termination digraph! 25.28/11.87 Nodes: 25.28/11.87 (1) f8208_0_createMap_LE(i3228:0, i3256:0, i3209:0) -> f8208_0_createMap_LE(arith, i3256:0, arith1) :|: i3228:0 > 0 && i3256:0 > i3209:0 + 1 && i3256:0 > -1 && i3209:0 > -1 && i3267:0 > -1 && i3363:0 > -1 && i3229:0 >= i3228:0 && i3229:0 > 0 && arith = i3228:0 - 1 && arith1 = i3209:0 + 2 25.28/11.87 25.28/11.87 Arcs: 25.28/11.87 (1) -> (1) 25.28/11.87 25.28/11.87 This digraph is fully evaluated! 25.28/11.87 ---------------------------------------- 25.28/11.87 25.28/11.87 (47) 25.28/11.87 Obligation: 25.28/11.87 25.28/11.87 Termination digraph: 25.28/11.87 Nodes: 25.28/11.87 (1) f8208_0_createMap_LE(i3228:0, i3256:0, i3209:0) -> f8208_0_createMap_LE(arith, i3256:0, arith1) :|: i3228:0 > 0 && i3256:0 > i3209:0 + 1 && i3256:0 > -1 && i3209:0 > -1 && i3267:0 > -1 && i3363:0 > -1 && i3229:0 >= i3228:0 && i3229:0 > 0 && arith = i3228:0 - 1 && arith1 = i3209:0 + 2 25.28/11.87 25.28/11.87 Arcs: 25.28/11.87 (1) -> (1) 25.28/11.87 25.28/11.87 This digraph is fully evaluated! 25.28/11.87 25.28/11.87 ---------------------------------------- 25.28/11.87 25.28/11.87 (48) IntTRSCompressionProof (EQUIVALENT) 25.28/11.87 Compressed rules. 25.28/11.87 ---------------------------------------- 25.28/11.87 25.28/11.87 (49) 25.28/11.87 Obligation: 25.28/11.87 Rules: 25.28/11.87 f8208_0_createMap_LE(i3228:0:0, i3256:0:0, i3209:0:0) -> f8208_0_createMap_LE(i3228:0:0 - 1, i3256:0:0, i3209:0:0 + 2) :|: i3229:0:0 >= i3228:0:0 && i3229:0:0 > 0 && i3363:0:0 > -1 && i3267:0:0 > -1 && i3209:0:0 > -1 && i3256:0:0 > -1 && i3256:0:0 > i3209:0:0 + 1 && i3228:0:0 > 0 25.28/11.87 25.28/11.87 ---------------------------------------- 25.28/11.87 25.28/11.87 (50) TempFilterProof (SOUND) 25.28/11.87 Used the following sort dictionary for filtering: 25.28/11.87 f8208_0_createMap_LE(INTEGER, INTEGER, INTEGER) 25.28/11.87 Replaced non-predefined constructor symbols by 0. 25.28/11.87 ---------------------------------------- 25.28/11.87 25.28/11.87 (51) 25.28/11.87 Obligation: 25.28/11.87 Rules: 25.28/11.87 f8208_0_createMap_LE(i3228:0:0, i3256:0:0, i3209:0:0) -> f8208_0_createMap_LE(c, i3256:0:0, c1) :|: c1 = i3209:0:0 + 2 && c = i3228:0:0 - 1 && (i3229:0:0 >= i3228:0:0 && i3229:0:0 > 0 && i3363:0:0 > -1 && i3267:0:0 > -1 && i3209:0:0 > -1 && i3256:0:0 > -1 && i3256:0:0 > i3209:0:0 + 1 && i3228:0:0 > 0) 25.28/11.87 25.28/11.87 ---------------------------------------- 25.28/11.87 25.28/11.87 (52) PolynomialOrderProcessor (EQUIVALENT) 25.28/11.87 Found the following polynomial interpretation: 25.28/11.87 [f8208_0_createMap_LE(x, x1, x2)] = x 25.28/11.87 25.28/11.87 The following rules are decreasing: 25.28/11.87 f8208_0_createMap_LE(i3228:0:0, i3256:0:0, i3209:0:0) -> f8208_0_createMap_LE(c, i3256:0:0, c1) :|: c1 = i3209:0:0 + 2 && c = i3228:0:0 - 1 && (i3229:0:0 >= i3228:0:0 && i3229:0:0 > 0 && i3363:0:0 > -1 && i3267:0:0 > -1 && i3209:0:0 > -1 && i3256:0:0 > -1 && i3256:0:0 > i3209:0:0 + 1 && i3228:0:0 > 0) 25.28/11.87 The following rules are bounded: 25.28/11.87 f8208_0_createMap_LE(i3228:0:0, i3256:0:0, i3209:0:0) -> f8208_0_createMap_LE(c, i3256:0:0, c1) :|: c1 = i3209:0:0 + 2 && c = i3228:0:0 - 1 && (i3229:0:0 >= i3228:0:0 && i3229:0:0 > 0 && i3363:0:0 > -1 && i3267:0:0 > -1 && i3209:0:0 > -1 && i3256:0:0 > -1 && i3256:0:0 > i3209:0:0 + 1 && i3228:0:0 > 0) 25.28/11.87 25.28/11.87 ---------------------------------------- 25.28/11.87 25.28/11.87 (53) 25.28/11.87 YES 25.29/11.90 EOF