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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

This implementation calls entrySet().clear(). 30.91/10.41 * 30.91/10.41 *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

30.91/10.42	 *   Map m = Collections.synchronizedMap(new HashMap(...));
30.91/10.42 * 30.91/10.42 *

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

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

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

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

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

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

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

30.91/10.43 * 30.91/10.43 *

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

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

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

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

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

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

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

This interface is a member of the 30.91/10.43 * 30.91/10.43 * Java Collections Framework. 30.91/10.43 * 30.91/10.43 *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

This implementation calls entrySet().clear(). 30.91/10.44 * 30.91/10.44 *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

30.91/10.44	 *   Map m = Collections.synchronizedMap(new HashMap(...));
30.91/10.44 * 30.91/10.44 *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

This interface is a member of the 30.91/10.45 * 30.91/10.45 * Java Collections Framework. 30.91/10.45 * 30.91/10.45 *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Note that the detail message associated with cause is 31.12/10.45 * not automatically incorporated in this exception's detail 31.12/10.45 * message. 31.12/10.45 * 31.12/10.45 * @param message the detail message (which is saved for later retrieval 31.12/10.45 * by the {@link Throwable#getMessage()} method). 31.12/10.45 * @param cause the cause (which is saved for later retrieval by the 31.12/10.45 * {@link Throwable#getCause()} method). (A null value 31.12/10.45 * is permitted, and indicates that the cause is nonexistent or 31.12/10.45 * unknown.) 31.12/10.45 * @since 1.5 31.12/10.45 */ 31.12/10.45 public UnsupportedOperationException(String message, Throwable cause) { 31.12/10.45 super(message, cause); 31.12/10.45 } 31.12/10.45 31.12/10.45 /** 31.12/10.45 * Constructs a new exception with the specified cause and a detail 31.12/10.45 * message of (cause==null ? null : cause.toString()) (which 31.12/10.45 * typically contains the class and detail message of cause). 31.12/10.45 * This constructor is useful for exceptions that are little more than 31.12/10.45 * wrappers for other throwables (for example, {@link 31.12/10.45 * java.security.PrivilegedActionException}). 31.12/10.45 * 31.12/10.45 * @param cause the cause (which is saved for later retrieval by the 31.12/10.45 * {@link Throwable#getCause()} method). (A null value is 31.12/10.45 * permitted, and indicates that the cause is nonexistent or 31.12/10.45 * unknown.) 31.12/10.45 * @since 1.5 31.12/10.45 */ 31.12/10.45 public UnsupportedOperationException(Throwable cause) { 31.12/10.45 super(cause); 31.12/10.45 } 31.12/10.45 31.12/10.45 static final long serialVersionUID = -1242599979055084673L; 31.12/10.45 } 31.12/10.45 31.12/10.45 31.12/10.45 31.12/10.45 ---------------------------------------- 31.12/10.45 31.12/10.45 (3) JBCToGraph (EQUIVALENT) 31.12/10.45 Constructed TerminationGraph. 31.12/10.45 ---------------------------------------- 31.12/10.45 31.12/10.45 (4) 31.12/10.45 Obligation: 31.12/10.45 Termination Graph based on JBC Program: 31.12/10.45 javaUtilEx.juHashMapCreateContainsValue.main([Ljava/lang/String;)V: Graph of 240 nodes with 0 SCCs. 31.12/10.45 31.12/10.45 31.12/10.45 31.12/10.45 javaUtilEx.juHashMapCreateContainsValue.createMap(I)LjavaUtilEx/HashMap;: Graph of 248 nodes with 1 SCC. 31.12/10.45 31.12/10.45 31.12/10.45 31.12/10.45 javaUtilEx.HashMap.containsValue(Ljava/lang/Object;)Z: Graph of 86 nodes with 1 SCC. 31.12/10.45 31.12/10.45 31.12/10.45 31.12/10.45 javaUtilEx.HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;: Graph of 493 nodes with 2 SCCs. 31.12/10.45 31.12/10.45 31.12/10.45 31.12/10.45 javaUtilEx.Content.hashCode()I: Graph of 6 nodes with 0 SCCs. 31.12/10.45 31.12/10.45 31.12/10.45 31.12/10.45 javaUtilEx.Content.equals(Ljava/lang/Object;)Z: Graph of 31 nodes with 0 SCCs. 31.12/10.45 31.12/10.45 31.12/10.45 31.12/10.45 31.12/10.45 31.12/10.45 ---------------------------------------- 31.12/10.45 31.12/10.45 (5) TerminationGraphToSCCProof (SOUND) 31.12/10.45 Splitted TerminationGraph to 4 SCCss. 31.12/10.45 ---------------------------------------- 31.12/10.45 31.12/10.45 (6) 31.12/10.45 Complex Obligation (AND) 31.12/10.45 31.12/10.45 ---------------------------------------- 31.12/10.45 31.12/10.45 (7) 31.12/10.45 Obligation: 31.12/10.45 SCC of termination graph based on JBC Program. 31.12/10.45 SCC contains nodes from the following methods: javaUtilEx.HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 31.12/10.45 SCC calls the following helper methods: 31.12/10.45 Performed SCC analyses: 31.12/10.45 *Used field analysis yielded the following read fields: 31.12/10.45 *javaUtilEx.HashMap$Entry: [next, hash] 31.12/10.45 *Marker field analysis yielded the following relations that could be markers: 31.12/10.45 31.12/10.45 ---------------------------------------- 31.12/10.45 31.12/10.45 (8) SCCToIRSProof (SOUND) 31.12/10.45 Transformed FIGraph SCCs to intTRSs. Log: 31.12/10.45 Generated rules. Obtained 58 IRulesP rules: 31.12/10.45 f11555_0_transfer_Load(EOS(STATIC_11555), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, i4990) -> f11556_0_transfer_ArrayLength(EOS(STATIC_11556), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, i4990, java.lang.Object(ARRAY(i4989))) :|: TRUE 31.12/10.45 f11556_0_transfer_ArrayLength(EOS(STATIC_11556), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, i4990, java.lang.Object(ARRAY(i4989))) -> f11557_0_transfer_GE(EOS(STATIC_11557), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, i4990, i4989) :|: i4989 >= 0 31.12/10.45 f11557_0_transfer_GE(EOS(STATIC_11557), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, i4990, i4989) -> f11559_0_transfer_GE(EOS(STATIC_11559), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, i4990, i4989) :|: i4990 < i4989 31.12/10.45 f11559_0_transfer_GE(EOS(STATIC_11559), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, i4990, i4989) -> f11561_0_transfer_Load(EOS(STATIC_11561), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990) :|: i4990 < i4989 31.12/10.45 f11561_0_transfer_Load(EOS(STATIC_11561), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990) -> f11563_0_transfer_Load(EOS(STATIC_11563), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(ARRAY(i4989))) :|: TRUE 31.12/10.45 f11563_0_transfer_Load(EOS(STATIC_11563), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(ARRAY(i4989))) -> f11565_0_transfer_ArrayAccess(EOS(STATIC_11565), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(ARRAY(i4989)), i4990) :|: TRUE 31.12/10.45 f11565_0_transfer_ArrayAccess(EOS(STATIC_11565), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(ARRAY(i4989)), i4990) -> f11567_0_transfer_ArrayAccess(EOS(STATIC_11567), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(ARRAY(i4989)), i4990) :|: TRUE 31.12/10.45 f11567_0_transfer_ArrayAccess(EOS(STATIC_11567), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(ARRAY(i4989)), i4990) -> f11570_0_transfer_Store(EOS(STATIC_11570), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, o7350) :|: i4990 < i4989 31.12/10.45 f11570_0_transfer_Store(EOS(STATIC_11570), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, o7350) -> f11573_0_transfer_Load(EOS(STATIC_11573), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, o7350) :|: TRUE 31.12/10.45 f11573_0_transfer_Load(EOS(STATIC_11573), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, o7350) -> f11575_0_transfer_NULL(EOS(STATIC_11575), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, o7350, o7350) :|: TRUE 31.12/10.45 f11575_0_transfer_NULL(EOS(STATIC_11575), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7352sub), java.lang.Object(o7352sub)) -> f11578_0_transfer_NULL(EOS(STATIC_11578), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7352sub), java.lang.Object(o7352sub)) :|: TRUE 31.12/10.45 f11575_0_transfer_NULL(EOS(STATIC_11575), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, NULL, NULL) -> f11579_0_transfer_NULL(EOS(STATIC_11579), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, NULL, NULL) :|: TRUE 31.12/10.45 f11578_0_transfer_NULL(EOS(STATIC_11578), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7352sub), java.lang.Object(o7352sub)) -> f11582_0_transfer_Load(EOS(STATIC_11582), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7352sub)) :|: TRUE 31.12/10.45 f11582_0_transfer_Load(EOS(STATIC_11582), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7352sub)) -> f11585_0_transfer_Load(EOS(STATIC_11585), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7352sub), java.lang.Object(ARRAY(i4989))) :|: TRUE 31.12/10.45 f11585_0_transfer_Load(EOS(STATIC_11585), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7352sub), java.lang.Object(ARRAY(i4989))) -> f11589_0_transfer_ConstantStackPush(EOS(STATIC_11589), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7352sub), java.lang.Object(ARRAY(i4989)), i4990) :|: TRUE 31.12/10.45 f11589_0_transfer_ConstantStackPush(EOS(STATIC_11589), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7352sub), java.lang.Object(ARRAY(i4989)), i4990) -> f11593_0_transfer_ArrayAccess(EOS(STATIC_11593), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7352sub), java.lang.Object(ARRAY(i4989)), i4990, NULL) :|: TRUE 31.12/10.45 f11593_0_transfer_ArrayAccess(EOS(STATIC_11593), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7352sub), java.lang.Object(ARRAY(i4989)), i4990, NULL) -> f11595_0_transfer_ArrayAccess(EOS(STATIC_11595), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7352sub), java.lang.Object(ARRAY(i4989)), i4990, NULL) :|: TRUE 31.12/10.45 f11595_0_transfer_ArrayAccess(EOS(STATIC_11595), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7352sub), java.lang.Object(ARRAY(i4989)), i4990, NULL) -> f11599_0_transfer_Load(EOS(STATIC_11599), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7352put)) :|: i4990 < i4989 31.12/10.45 f11599_0_transfer_Load(EOS(STATIC_11599), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7352sub)) -> f11603_0_transfer_FieldAccess(EOS(STATIC_11603), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7352sub), java.lang.Object(o7352sub)) :|: TRUE 31.12/10.45 f11603_0_transfer_FieldAccess(EOS(STATIC_11603), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001))) -> f11605_0_transfer_FieldAccess(EOS(STATIC_11605), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001))) :|: TRUE 31.12/10.45 f11605_0_transfer_FieldAccess(EOS(STATIC_11605), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001))) -> f11609_0_transfer_Store(EOS(STATIC_11609), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364) :|: TRUE 31.12/10.45 f11609_0_transfer_Store(EOS(STATIC_11609), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364) -> f11612_0_transfer_Load(EOS(STATIC_11612), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364) :|: TRUE 31.12/10.45 f11612_0_transfer_Load(EOS(STATIC_11612), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364) -> f11614_0_transfer_FieldAccess(EOS(STATIC_11614), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001))) :|: TRUE 31.12/10.45 f11614_0_transfer_FieldAccess(EOS(STATIC_11614), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001))) -> f11617_0_transfer_Load(EOS(STATIC_11617), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5001) :|: TRUE 31.12/10.45 f11617_0_transfer_Load(EOS(STATIC_11617), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5001) -> f11620_0_transfer_InvokeMethod(EOS(STATIC_11620), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5001, i4831) :|: TRUE 31.12/10.45 f11620_0_transfer_InvokeMethod(EOS(STATIC_11620), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5001, i4831) -> f11622_0_indexFor_Load(EOS(STATIC_11622), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5001, i4831) :|: TRUE 31.12/10.45 f11622_0_indexFor_Load(EOS(STATIC_11622), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5001, i4831) -> f11627_0_indexFor_Load(EOS(STATIC_11627), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i4831, i5001) :|: TRUE 31.12/10.45 f11627_0_indexFor_Load(EOS(STATIC_11627), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i4831, i5001) -> f11629_0_indexFor_ConstantStackPush(EOS(STATIC_11629), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5001, i4831) :|: TRUE 31.12/10.45 f11629_0_indexFor_ConstantStackPush(EOS(STATIC_11629), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5001, i4831) -> f11632_0_indexFor_IntArithmetic(EOS(STATIC_11632), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5001, i4831, 1) :|: TRUE 31.12/10.45 f11632_0_indexFor_IntArithmetic(EOS(STATIC_11632), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5001, i4831, matching1) -> f11635_0_indexFor_IntArithmetic(EOS(STATIC_11635), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5001, i4831 - 1) :|: i4831 >= 0 && matching1 = 1 31.12/10.45 f11635_0_indexFor_IntArithmetic(EOS(STATIC_11635), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5001, i5018) -> f11637_0_indexFor_Return(EOS(STATIC_11637), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5019) :|: TRUE 31.12/10.45 f11637_0_indexFor_Return(EOS(STATIC_11637), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5019) -> f11640_0_transfer_Store(EOS(STATIC_11640), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5019) :|: TRUE 31.12/10.45 f11640_0_transfer_Store(EOS(STATIC_11640), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5019) -> f11643_0_transfer_Load(EOS(STATIC_11643), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5019) :|: TRUE 31.12/10.45 f11643_0_transfer_Load(EOS(STATIC_11643), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5019) -> f11646_0_transfer_Load(EOS(STATIC_11646), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5019, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001))) :|: TRUE 31.12/10.45 f11646_0_transfer_Load(EOS(STATIC_11646), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5019, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001))) -> f11649_0_transfer_Load(EOS(STATIC_11649), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5019, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), java.lang.Object(ARRAY(i4831))) :|: TRUE 31.12/10.45 f11649_0_transfer_Load(EOS(STATIC_11649), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5019, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), java.lang.Object(ARRAY(i4831))) -> f11652_0_transfer_ArrayAccess(EOS(STATIC_11652), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5019, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), java.lang.Object(ARRAY(i4831)), i5019) :|: TRUE 31.12/10.45 f11652_0_transfer_ArrayAccess(EOS(STATIC_11652), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5019, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), java.lang.Object(ARRAY(i4831)), i5019) -> f11655_0_transfer_ArrayAccess(EOS(STATIC_11655), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5019, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), java.lang.Object(ARRAY(i4831)), i5019) :|: TRUE 31.12/10.45 f11655_0_transfer_ArrayAccess(EOS(STATIC_11655), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5019, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), java.lang.Object(ARRAY(i4831)), i5019) -> f11659_0_transfer_FieldAccess(EOS(STATIC_11659), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5019, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7384) :|: i5019 < i4831 31.12/10.45 f11659_0_transfer_FieldAccess(EOS(STATIC_11659), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7364, i5019, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364, i5001)), o7384) -> f11663_0_transfer_Load(EOS(STATIC_11663), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7384, i5001)), o7364, i5019) :|: TRUE 31.12/10.45 f11663_0_transfer_Load(EOS(STATIC_11663), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7384, i5001)), o7364, i5019) -> f11665_0_transfer_Load(EOS(STATIC_11665), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7384, i5001)), o7364, i5019, java.lang.Object(ARRAY(i4831))) :|: TRUE 31.12/10.45 f11665_0_transfer_Load(EOS(STATIC_11665), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7384, i5001)), o7364, i5019, java.lang.Object(ARRAY(i4831))) -> f11669_0_transfer_Load(EOS(STATIC_11669), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7384, i5001)), o7364, java.lang.Object(ARRAY(i4831)), i5019) :|: TRUE 31.12/10.45 f11669_0_transfer_Load(EOS(STATIC_11669), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7384, i5001)), o7364, java.lang.Object(ARRAY(i4831)), i5019) -> f11672_0_transfer_ArrayAccess(EOS(STATIC_11672), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, o7364, java.lang.Object(ARRAY(i4831)), i5019, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7384, i5001))) :|: TRUE 31.12/10.45 f11672_0_transfer_ArrayAccess(EOS(STATIC_11672), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, o7364, java.lang.Object(ARRAY(i4831)), i5019, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7384, i5001))) -> f11674_0_transfer_ArrayAccess(EOS(STATIC_11674), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, o7364, java.lang.Object(ARRAY(i4831)), i5019, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7384, i5001))) :|: TRUE 31.12/10.45 f11674_0_transfer_ArrayAccess(EOS(STATIC_11674), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, o7364, java.lang.Object(ARRAY(i4831)), i5019, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7384, i5001))) -> f11678_0_transfer_Load(EOS(STATIC_11678), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, o7364) :|: i5019 < i4831 31.12/10.45 f11678_0_transfer_Load(EOS(STATIC_11678), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, o7364) -> f11682_0_transfer_Store(EOS(STATIC_11682), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, o7364) :|: TRUE 31.12/10.45 f11682_0_transfer_Store(EOS(STATIC_11682), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, o7364) -> f11683_0_transfer_Load(EOS(STATIC_11683), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, o7364) :|: TRUE 31.12/10.45 f11683_0_transfer_Load(EOS(STATIC_11683), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, o7364) -> f11686_0_transfer_NONNULL(EOS(STATIC_11686), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, o7364, o7364) :|: TRUE 31.12/10.45 f11686_0_transfer_NONNULL(EOS(STATIC_11686), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7407sub), java.lang.Object(o7407sub)) -> f11689_0_transfer_NONNULL(EOS(STATIC_11689), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7407sub), java.lang.Object(o7407sub)) :|: TRUE 31.12/10.45 f11686_0_transfer_NONNULL(EOS(STATIC_11686), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, NULL, NULL) -> f11690_0_transfer_NONNULL(EOS(STATIC_11690), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, NULL, NULL) :|: TRUE 31.12/10.45 f11689_0_transfer_NONNULL(EOS(STATIC_11689), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7407sub), java.lang.Object(o7407sub)) -> f11691_0_transfer_Load(EOS(STATIC_11691), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7407sub)) :|: TRUE 31.12/10.45 f11691_0_transfer_Load(EOS(STATIC_11691), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7407sub)) -> f11599_0_transfer_Load(EOS(STATIC_11599), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, java.lang.Object(o7407sub)) :|: TRUE 31.12/10.45 f11690_0_transfer_NONNULL(EOS(STATIC_11690), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, NULL, NULL) -> f11692_0_transfer_Inc(EOS(STATIC_11692), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990) :|: TRUE 31.12/10.45 f11692_0_transfer_Inc(EOS(STATIC_11692), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990) -> f11695_0_transfer_JMP(EOS(STATIC_11695), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990 + 1) :|: TRUE 31.12/10.45 f11695_0_transfer_JMP(EOS(STATIC_11695), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i5037) -> f11698_0_transfer_Load(EOS(STATIC_11698), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i5037) :|: TRUE 31.12/10.45 f11698_0_transfer_Load(EOS(STATIC_11698), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i5037) -> f11554_0_transfer_Load(EOS(STATIC_11554), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i5037) :|: TRUE 31.12/10.45 f11554_0_transfer_Load(EOS(STATIC_11554), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990) -> f11555_0_transfer_Load(EOS(STATIC_11555), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, i4990) :|: TRUE 31.12/10.45 f11579_0_transfer_NULL(EOS(STATIC_11579), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990, NULL, NULL) -> f11583_0_transfer_Inc(EOS(STATIC_11583), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990) :|: TRUE 31.12/10.45 f11583_0_transfer_Inc(EOS(STATIC_11583), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990) -> f11692_0_transfer_Inc(EOS(STATIC_11692), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831, java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4831)), java.lang.Object(ARRAY(i4989)), i4831, i4990) :|: TRUE 31.12/10.45 Combined rules. Obtained 4 IRulesP rules: 31.12/10.45 f11686_0_transfer_NONNULL(EOS(STATIC_11686), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831:0, java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), i4831:0, i4990:0, NULL, NULL) -> f11555_0_transfer_Load(EOS(STATIC_11555), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831:0, java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), i4831:0, i4990:0 + 1, i4990:0 + 1) :|: TRUE 31.12/10.45 f11555_0_transfer_Load(EOS(STATIC_11555), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831:0, java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), i4831:0, i4990:0, i4990:0) -> f11686_0_transfer_NONNULL(EOS(STATIC_11686), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831:0, java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), i4831:0, i4990:0, o7364:0, o7364:0) :|: i4989:0 > -1 && i4990:0 < i4989:0 && i4831:0 > -1 && i5019:0 < i4831:0 31.12/10.45 f11555_0_transfer_Load(EOS(STATIC_11555), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831:0, java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), i4831:0, i4990:0, i4990:0) -> f11555_0_transfer_Load(EOS(STATIC_11555), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831:0, java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), i4831:0, i4990:0 + 1, i4990:0 + 1) :|: i4989:0 > -1 && i4990:0 < i4989:0 31.12/10.45 f11686_0_transfer_NONNULL(EOS(STATIC_11686), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831:0, java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), i4831:0, i4990:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364:0, i5001:0)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o7364:0, i5001:0))) -> f11686_0_transfer_NONNULL(EOS(STATIC_11686), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4831:0, java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), i4831:0, i4990:0, o7364:0, o7364:0) :|: i4831:0 > -1 && i5019:0 < i4831:0 31.12/10.45 Filtered constant ground arguments: 31.12/10.45 f11686_0_transfer_NONNULL(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) -> f11686_0_transfer_NONNULL(x4, x5, x6, x7, x8, x9, x10, x11) 31.12/10.45 f11555_0_transfer_Load(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10) -> f11555_0_transfer_Load(x4, x5, x6, x7, x8, x9, x10) 31.12/10.45 javaUtilEx.AbstractMap(x1) -> javaUtilEx.AbstractMap 31.12/10.45 javaUtilEx.HashMap$Entry(x1, x2, x3) -> javaUtilEx.HashMap$Entry(x2, x3) 31.12/10.45 javaUtilEx.HashMap(x1) -> javaUtilEx.HashMap 31.12/10.45 Filtered duplicate arguments: 31.12/10.45 f11686_0_transfer_NONNULL(x1, x2, x3, x4, x5, x6, x7, x8) -> f11686_0_transfer_NONNULL(x3, x4, x6, x8) 31.12/10.45 f11555_0_transfer_Load(x1, x2, x3, x4, x5, x6, x7) -> f11555_0_transfer_Load(x3, x4, x7) 31.12/10.45 Filtered unneeded arguments: 31.12/10.45 javaUtilEx.HashMap$Entry(x1, x2) -> javaUtilEx.HashMap$Entry(x1) 31.12/10.45 Finished conversion. Obtained 4 rules.P rules: 31.12/10.45 f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), i4990:0, NULL, i4831:0, i4989:0) -> f11555_0_transfer_Load(java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), i4990:0 + 1, i4831:0, i4989:0) :|: TRUE 31.12/10.45 f11555_0_transfer_Load(java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), i4990:0, i4831:0, i4989:0) -> f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), i4990:0, o7364:0, i4831:0, i4989:0) :|: i4990:0 < i4989:0 && i4989:0 > -1 && i5019:0 < i4831:0 && i4831:0 > -1 31.12/10.45 f11555_0_transfer_Load(java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), i4990:0, i4831:0, i4989:0) -> f11555_0_transfer_Load(java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), i4990:0 + 1, i4831:0, i4989:0) :|: i4989:0 > -1 && i4990:0 < i4989:0 31.12/10.45 f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), i4990:0, java.lang.Object(javaUtilEx.HashMap$Entry(o7364:0)), i4831:0, i4989:0) -> f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), i4990:0, o7364:0, i4831:0, i4989:0) :|: i4831:0 > -1 && i5019:0 < i4831:0 31.12/10.45 31.12/10.45 ---------------------------------------- 31.12/10.45 31.12/10.45 (9) 31.12/10.45 Obligation: 31.12/10.45 Rules: 31.12/10.45 f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), i4990:0, NULL, i4831:0, i4989:0) -> f11555_0_transfer_Load(java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), i4990:0 + 1, i4831:0, i4989:0) :|: TRUE 31.12/10.45 f11555_0_transfer_Load(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2, x, x1) -> f11686_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 31.12/10.45 f11555_0_transfer_Load(java.lang.Object(ARRAY(x5)), java.lang.Object(ARRAY(x6)), x7, x5, x6) -> f11555_0_transfer_Load(java.lang.Object(ARRAY(x5)), java.lang.Object(ARRAY(x6)), x7 + 1, x5, x6) :|: x6 > -1 && x7 < x6 31.12/10.45 f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8)), java.lang.Object(ARRAY(x9)), x10, java.lang.Object(javaUtilEx.HashMap$Entry(x11)), x8, x9) -> f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8)), java.lang.Object(ARRAY(x9)), x10, x11, x8, x9) :|: x8 > -1 && x12 < x8 31.12/10.45 31.12/10.45 ---------------------------------------- 31.12/10.45 31.12/10.45 (10) IRSFormatTransformerProof (EQUIVALENT) 31.12/10.45 Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). 31.12/10.45 ---------------------------------------- 31.12/10.45 31.12/10.45 (11) 31.12/10.45 Obligation: 31.12/10.45 Rules: 31.12/10.45 f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), i4990:0, NULL, i4831:0, i4989:0) -> f11555_0_transfer_Load(java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), arith, i4831:0, i4989:0) :|: TRUE && arith = i4990:0 + 1 31.12/10.45 f11555_0_transfer_Load(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2, x, x1) -> f11686_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 31.12/10.45 f11555_0_transfer_Load(java.lang.Object(ARRAY(x13)), java.lang.Object(ARRAY(x14)), x15, x13, x14) -> f11555_0_transfer_Load(java.lang.Object(ARRAY(x13)), java.lang.Object(ARRAY(x14)), x16, x13, x14) :|: x14 > -1 && x15 < x14 && x16 = x15 + 1 31.12/10.45 f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8)), java.lang.Object(ARRAY(x9)), x10, java.lang.Object(javaUtilEx.HashMap$Entry(x11)), x8, x9) -> f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8)), java.lang.Object(ARRAY(x9)), x10, x11, x8, x9) :|: x8 > -1 && x12 < x8 31.12/10.45 31.12/10.45 ---------------------------------------- 31.12/10.45 31.12/10.45 (12) IRSwTTerminationDigraphProof (EQUIVALENT) 31.12/10.45 Constructed termination digraph! 31.12/10.45 Nodes: 31.12/10.45 (1) f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), i4990:0, NULL, i4831:0, i4989:0) -> f11555_0_transfer_Load(java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), arith, i4831:0, i4989:0) :|: TRUE && arith = i4990:0 + 1 31.12/10.45 (2) f11555_0_transfer_Load(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2, x, x1) -> f11686_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 31.12/10.45 (3) f11555_0_transfer_Load(java.lang.Object(ARRAY(x13)), java.lang.Object(ARRAY(x14)), x15, x13, x14) -> f11555_0_transfer_Load(java.lang.Object(ARRAY(x13)), java.lang.Object(ARRAY(x14)), x16, x13, x14) :|: x14 > -1 && x15 < x14 && x16 = x15 + 1 31.12/10.45 (4) f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8)), java.lang.Object(ARRAY(x9)), x10, java.lang.Object(javaUtilEx.HashMap$Entry(x11)), x8, x9) -> f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8)), java.lang.Object(ARRAY(x9)), x10, x11, x8, x9) :|: x8 > -1 && x12 < x8 31.12/10.45 31.12/10.45 Arcs: 31.12/10.45 (1) -> (2), (3) 31.12/10.45 (2) -> (1), (4) 31.12/10.45 (3) -> (2), (3) 31.12/10.45 (4) -> (1), (4) 31.12/10.45 31.12/10.45 This digraph is fully evaluated! 31.12/10.45 ---------------------------------------- 31.12/10.45 31.12/10.45 (13) 31.12/10.45 Obligation: 31.12/10.45 31.12/10.45 Termination digraph: 31.12/10.45 Nodes: 31.12/10.45 (1) f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), i4990:0, NULL, i4831:0, i4989:0) -> f11555_0_transfer_Load(java.lang.Object(ARRAY(i4831:0)), java.lang.Object(ARRAY(i4989:0)), arith, i4831:0, i4989:0) :|: TRUE && arith = i4990:0 + 1 31.12/10.45 (2) f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8)), java.lang.Object(ARRAY(x9)), x10, java.lang.Object(javaUtilEx.HashMap$Entry(x11)), x8, x9) -> f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8)), java.lang.Object(ARRAY(x9)), x10, x11, x8, x9) :|: x8 > -1 && x12 < x8 31.12/10.46 (3) f11555_0_transfer_Load(java.lang.Object(ARRAY(x)), java.lang.Object(ARRAY(x1)), x2, x, x1) -> f11686_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 31.12/10.46 (4) f11555_0_transfer_Load(java.lang.Object(ARRAY(x13)), java.lang.Object(ARRAY(x14)), x15, x13, x14) -> f11555_0_transfer_Load(java.lang.Object(ARRAY(x13)), java.lang.Object(ARRAY(x14)), x16, x13, x14) :|: x14 > -1 && x15 < x14 && x16 = x15 + 1 31.12/10.46 31.12/10.46 Arcs: 31.12/10.46 (1) -> (3), (4) 31.12/10.46 (2) -> (1), (2) 31.12/10.46 (3) -> (1), (2) 31.12/10.46 (4) -> (3), (4) 31.12/10.46 31.12/10.46 This digraph is fully evaluated! 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (14) IntTRSCompressionProof (EQUIVALENT) 31.12/10.46 Compressed rules. 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (15) 31.12/10.46 Obligation: 31.12/10.46 Rules: 31.12/10.46 f11555_0_transfer_Load(java.lang.Object(ARRAY(x13:0)), java.lang.Object(ARRAY(x14:0)), x15:0, x13:0, x14:0) -> f11555_0_transfer_Load(java.lang.Object(ARRAY(x13:0)), java.lang.Object(ARRAY(x14:0)), x15:0 + 1, x13:0, x14:0) :|: x14:0 > -1 && x15:0 < x14:0 31.12/10.46 f11555_0_transfer_Load(java.lang.Object(ARRAY(x:0)), java.lang.Object(ARRAY(x1:0)), x2:0, x:0, x1:0) -> f11686_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 31.12/10.46 f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(i4831:0:0)), java.lang.Object(ARRAY(i4989:0:0)), i4990:0:0, NULL, i4831:0:0, i4989:0:0) -> f11555_0_transfer_Load(java.lang.Object(ARRAY(i4831:0:0)), java.lang.Object(ARRAY(i4989:0:0)), i4990:0:0 + 1, i4831:0:0, i4989:0:0) :|: TRUE 31.12/10.46 f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8:0)), java.lang.Object(ARRAY(x9:0)), x10:0, java.lang.Object(javaUtilEx.HashMap$Entry(x11:0)), x8:0, x9:0) -> f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8:0)), java.lang.Object(ARRAY(x9:0)), x10:0, x11:0, x8:0, x9:0) :|: x8:0 > -1 && x8:0 > x12:0 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (16) TempFilterProof (SOUND) 31.12/10.46 Used the following sort dictionary for filtering: 31.12/10.46 f11555_0_transfer_Load(VARIABLE, VARIABLE, INTEGER, VARIABLE, VARIABLE) 31.12/10.46 java.lang.Object(VARIABLE) 31.12/10.46 ARRAY(VARIABLE) 31.12/10.46 f11686_0_transfer_NONNULL(VARIABLE, VARIABLE, VARIABLE, VARIABLE, VARIABLE, VARIABLE) 31.12/10.46 NULL() 31.12/10.46 javaUtilEx.HashMap$Entry(VARIABLE) 31.12/10.46 Replaced non-predefined constructor symbols by 0.The following proof was generated: 31.12/10.46 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 31.12/10.46 31.12/10.46 31.12/10.46 Termination of the given IntTRS could not be shown: 31.12/10.46 31.12/10.46 31.12/10.46 31.12/10.46 - IntTRS 31.12/10.46 - RankingReductionPairProof 31.12/10.46 31.12/10.46 Rules: 31.12/10.46 f11555_0_transfer_Load(c, c1, x15:0, x13:0, x14:0) -> f11555_0_transfer_Load(c2, c3, c4, x13:0, x14:0) :|: c4 = x15:0 + 1 && (c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0))) && (x14:0 > -1 && x15:0 < x14:0) 31.12/10.46 f11555_0_transfer_Load(c5, c6, x2:0, x:0, x1:0) -> f11686_0_transfer_NONNULL(c7, c8, x2:0, x3:0, x:0, x1:0) :|: c8 = 0 && (c7 = 0 && (c6 = 0 && c5 = 0)) && (x:0 > x4:0 && x:0 > -1 && x1:0 > -1 && x2:0 < x1:0) 31.12/10.46 f11686_0_transfer_NONNULL(c9, c10, i4990:0:0, c11, i4831:0:0, i4989:0:0) -> f11555_0_transfer_Load(c12, c13, c14, i4831:0:0, i4989:0:0) :|: c14 = i4990:0:0 + 1 && (c13 = 0 && (c12 = 0 && (c11 = 0 && (c10 = 0 && c9 = 0)))) && TRUE 31.12/10.46 f11686_0_transfer_NONNULL(c15, c16, x10:0, c17, x8:0, x9:0) -> f11686_0_transfer_NONNULL(c18, c19, x10:0, x11:0, x8:0, x9:0) :|: c19 = 0 && (c18 = 0 && (c17 = 0 && (c16 = 0 && c15 = 0))) && (x8:0 > -1 && x8:0 > x12:0) 31.12/10.46 31.12/10.46 Interpretation: 31.12/10.46 [ f11555_0_transfer_Load ] = 2*f11555_0_transfer_Load_5 + -2*f11555_0_transfer_Load_3 + 2*f11555_0_transfer_Load_4 + 2 31.12/10.46 [ f11686_0_transfer_NONNULL ] = -2*f11686_0_transfer_NONNULL_3 + 2*f11686_0_transfer_NONNULL_5 + 2*f11686_0_transfer_NONNULL_6 + 1 31.12/10.46 31.12/10.46 The following rules are decreasing: 31.12/10.46 f11555_0_transfer_Load(c, c1, x15:0, x13:0, x14:0) -> f11555_0_transfer_Load(c2, c3, c4, x13:0, x14:0) :|: c4 = x15:0 + 1 && (c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0))) && (x14:0 > -1 && x15:0 < x14:0) 31.12/10.46 f11555_0_transfer_Load(c5, c6, x2:0, x:0, x1:0) -> f11686_0_transfer_NONNULL(c7, c8, x2:0, x3:0, x:0, x1:0) :|: c8 = 0 && (c7 = 0 && (c6 = 0 && c5 = 0)) && (x:0 > x4:0 && x:0 > -1 && x1:0 > -1 && x2:0 < x1:0) 31.12/10.46 f11686_0_transfer_NONNULL(c9, c10, i4990:0:0, c11, i4831:0:0, i4989:0:0) -> f11555_0_transfer_Load(c12, c13, c14, i4831:0:0, i4989:0:0) :|: c14 = i4990:0:0 + 1 && (c13 = 0 && (c12 = 0 && (c11 = 0 && (c10 = 0 && c9 = 0)))) && TRUE 31.12/10.46 31.12/10.46 The following rules are bounded: 31.12/10.46 f11555_0_transfer_Load(c5, c6, x2:0, x:0, x1:0) -> f11686_0_transfer_NONNULL(c7, c8, x2:0, x3:0, x:0, x1:0) :|: c8 = 0 && (c7 = 0 && (c6 = 0 && c5 = 0)) && (x:0 > x4:0 && x:0 > -1 && x1:0 > -1 && x2:0 < x1:0) 31.12/10.46 31.12/10.46 31.12/10.46 31.12/10.46 - IntTRS 31.12/10.46 - RankingReductionPairProof 31.12/10.46 - IntTRS 31.12/10.46 - RankingReductionPairProof 31.12/10.46 31.12/10.46 Rules: 31.12/10.46 f11555_0_transfer_Load(c, c1, x15:0, x13:0, x14:0) -> f11555_0_transfer_Load(c2, c3, c4, x13:0, x14:0) :|: c4 = x15:0 + 1 && (c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0))) && (x14:0 > -1 && x15:0 < x14:0) 31.12/10.46 f11686_0_transfer_NONNULL(c9, c10, i4990:0:0, c11, i4831:0:0, i4989:0:0) -> f11555_0_transfer_Load(c12, c13, c14, i4831:0:0, i4989:0:0) :|: c14 = i4990:0:0 + 1 && (c13 = 0 && (c12 = 0 && (c11 = 0 && (c10 = 0 && c9 = 0)))) && TRUE 31.12/10.46 f11686_0_transfer_NONNULL(c15, c16, x10:0, c17, x8:0, x9:0) -> f11686_0_transfer_NONNULL(c18, c19, x10:0, x11:0, x8:0, x9:0) :|: c19 = 0 && (c18 = 0 && (c17 = 0 && (c16 = 0 && c15 = 0))) && (x8:0 > -1 && x8:0 > x12:0) 31.12/10.46 31.12/10.46 Interpretation: 31.12/10.46 [ f11555_0_transfer_Load ] = -1 31.12/10.46 [ f11686_0_transfer_NONNULL ] = 0 31.12/10.46 31.12/10.46 The following rules are decreasing: 31.12/10.46 f11686_0_transfer_NONNULL(c9, c10, i4990:0:0, c11, i4831:0:0, i4989:0:0) -> f11555_0_transfer_Load(c12, c13, c14, i4831:0:0, i4989:0:0) :|: c14 = i4990:0:0 + 1 && (c13 = 0 && (c12 = 0 && (c11 = 0 && (c10 = 0 && c9 = 0)))) && TRUE 31.12/10.46 31.12/10.46 The following rules are bounded: 31.12/10.46 f11555_0_transfer_Load(c, c1, x15:0, x13:0, x14:0) -> f11555_0_transfer_Load(c2, c3, c4, x13:0, x14:0) :|: c4 = x15:0 + 1 && (c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0))) && (x14:0 > -1 && x15:0 < x14:0) 31.12/10.46 f11686_0_transfer_NONNULL(c9, c10, i4990:0:0, c11, i4831:0:0, i4989:0:0) -> f11555_0_transfer_Load(c12, c13, c14, i4831:0:0, i4989:0:0) :|: c14 = i4990:0:0 + 1 && (c13 = 0 && (c12 = 0 && (c11 = 0 && (c10 = 0 && c9 = 0)))) && TRUE 31.12/10.46 f11686_0_transfer_NONNULL(c15, c16, x10:0, c17, x8:0, x9:0) -> f11686_0_transfer_NONNULL(c18, c19, x10:0, x11:0, x8:0, x9:0) :|: c19 = 0 && (c18 = 0 && (c17 = 0 && (c16 = 0 && c15 = 0))) && (x8:0 > -1 && x8:0 > x12:0) 31.12/10.46 31.12/10.46 31.12/10.46 31.12/10.46 - IntTRS 31.12/10.46 - RankingReductionPairProof 31.12/10.46 - IntTRS 31.12/10.46 - RankingReductionPairProof 31.12/10.46 - IntTRS 31.12/10.46 - PolynomialOrderProcessor 31.12/10.46 31.12/10.46 Rules: 31.12/10.46 f11555_0_transfer_Load(c, c1, x15:0, x13:0, x14:0) -> f11555_0_transfer_Load(c2, c3, c4, x13:0, x14:0) :|: c4 = x15:0 + 1 && (c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0))) && (x14:0 > -1 && x15:0 < x14:0) 31.12/10.46 f11686_0_transfer_NONNULL(c15, c16, x10:0, c17, x8:0, x9:0) -> f11686_0_transfer_NONNULL(c18, c19, x10:0, x11:0, x8:0, x9:0) :|: c19 = 0 && (c18 = 0 && (c17 = 0 && (c16 = 0 && c15 = 0))) && (x8:0 > -1 && x8:0 > x12:0) 31.12/10.46 31.12/10.46 Found the following polynomial interpretation: 31.12/10.46 [f11555_0_transfer_Load(x, x1, x2, x3, x4)] = c*x + c1*x1 - x2 + x4 31.12/10.46 [f11686_0_transfer_NONNULL(x5, x6, x7, x8, x9, x10)] = c5*x5 + c6*x6 31.12/10.46 31.12/10.46 The following rules are decreasing: 31.12/10.46 f11555_0_transfer_Load(c, c1, x15:0, x13:0, x14:0) -> f11555_0_transfer_Load(c2, c3, c4, x13:0, x14:0) :|: c4 = x15:0 + 1 && (c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0))) && (x14:0 > -1 && x15:0 < x14:0) 31.12/10.46 The following rules are bounded: 31.12/10.46 f11555_0_transfer_Load(c, c1, x15:0, x13:0, x14:0) -> f11555_0_transfer_Load(c2, c3, c4, x13:0, x14:0) :|: c4 = x15:0 + 1 && (c3 = 0 && (c2 = 0 && (c1 = 0 && c = 0))) && (x14:0 > -1 && x15:0 < x14:0) 31.12/10.46 f11686_0_transfer_NONNULL(c15, c16, x10:0, c17, x8:0, x9:0) -> f11686_0_transfer_NONNULL(c18, c19, x10:0, x11:0, x8:0, x9:0) :|: c19 = 0 && (c18 = 0 && (c17 = 0 && (c16 = 0 && c15 = 0))) && (x8:0 > -1 && x8:0 > x12:0) 31.12/10.46 31.12/10.46 31.12/10.46 - IntTRS 31.12/10.46 - RankingReductionPairProof 31.12/10.46 - IntTRS 31.12/10.46 - RankingReductionPairProof 31.12/10.46 - IntTRS 31.12/10.46 - PolynomialOrderProcessor 31.12/10.46 - IntTRS 31.12/10.46 31.12/10.46 Rules: 31.12/10.46 f11686_0_transfer_NONNULL(c15, c16, x10:0, c17, x8:0, x9:0) -> f11686_0_transfer_NONNULL(c18, c19, x10:0, x11:0, x8:0, x9:0) :|: c19 = 0 && (c18 = 0 && (c17 = 0 && (c16 = 0 && c15 = 0))) && (x8:0 > -1 && x8:0 > x12:0) 31.12/10.46 31.12/10.46 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (17) 31.12/10.46 Obligation: 31.12/10.46 Rules: 31.12/10.46 f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8:0)), java.lang.Object(ARRAY(x9:0)), x10:0, java.lang.Object(javaUtilEx.HashMap$Entry(x11:0)), x8:0, x9:0) -> f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8:0)), java.lang.Object(ARRAY(x9:0)), x10:0, x11:0, x8:0, x9:0) :|: x8:0 > -1 && x8:0 > x12:0 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (18) IRSwTTerminationDigraphProof (EQUIVALENT) 31.12/10.46 Constructed termination digraph! 31.12/10.46 Nodes: 31.12/10.46 (1) f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8:0)), java.lang.Object(ARRAY(x9:0)), x10:0, java.lang.Object(javaUtilEx.HashMap$Entry(x11:0)), x8:0, x9:0) -> f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8:0)), java.lang.Object(ARRAY(x9:0)), x10:0, x11:0, x8:0, x9:0) :|: x8:0 > -1 && x8:0 > x12:0 31.12/10.46 31.12/10.46 Arcs: 31.12/10.46 (1) -> (1) 31.12/10.46 31.12/10.46 This digraph is fully evaluated! 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (19) 31.12/10.46 Obligation: 31.12/10.46 31.12/10.46 Termination digraph: 31.12/10.46 Nodes: 31.12/10.46 (1) f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8:0)), java.lang.Object(ARRAY(x9:0)), x10:0, java.lang.Object(javaUtilEx.HashMap$Entry(x11:0)), x8:0, x9:0) -> f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8:0)), java.lang.Object(ARRAY(x9:0)), x10:0, x11:0, x8:0, x9:0) :|: x8:0 > -1 && x8:0 > x12:0 31.12/10.46 31.12/10.46 Arcs: 31.12/10.46 (1) -> (1) 31.12/10.46 31.12/10.46 This digraph is fully evaluated! 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (20) IntTRSUnneededArgumentFilterProof (EQUIVALENT) 31.12/10.46 Some arguments are removed because they cannot influence termination. We removed arguments according to the following replacements: 31.12/10.46 31.12/10.46 f11686_0_transfer_NONNULL(x1, x2, x3, x4, x5, x6) -> f11686_0_transfer_NONNULL(x1, x2, x4, x5, x6) 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (21) 31.12/10.46 Obligation: 31.12/10.46 Rules: 31.12/10.46 f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8:0)), java.lang.Object(ARRAY(x9:0)), java.lang.Object(javaUtilEx.HashMap$Entry(x11:0)), x8:0, x9:0) -> f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8:0)), java.lang.Object(ARRAY(x9:0)), x11:0, x8:0, x9:0) :|: x8:0 > -1 && x8:0 > x12:0 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (22) TempFilterProof (SOUND) 31.12/10.46 Used the following sort dictionary for filtering: 31.12/10.46 f11686_0_transfer_NONNULL(VARIABLE, VARIABLE, VARIABLE, INTEGER, VARIABLE) 31.12/10.46 java.lang.Object(VARIABLE) 31.12/10.46 ARRAY(VARIABLE) 31.12/10.46 javaUtilEx.HashMap$Entry(VARIABLE) 31.12/10.46 Removed predefined arithmetic. 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (23) 31.12/10.46 Obligation: 31.12/10.46 Rules: 31.12/10.46 f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8:0)), java.lang.Object(ARRAY(x9:0)), java.lang.Object(javaUtilEx.HashMap$Entry(x11:0)), x9:0) -> f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8:0)), java.lang.Object(ARRAY(x9:0)), x11:0, x9:0) 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (24) IRSwTToQDPProof (SOUND) 31.12/10.46 Removed the integers and created a QDP-Problem. 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (25) 31.12/10.46 Obligation: 31.12/10.46 Q DP problem: 31.12/10.46 The TRS P consists of the following rules: 31.12/10.46 31.12/10.46 f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8:0)), java.lang.Object(ARRAY(x9:0)), java.lang.Object(javaUtilEx.HashMap$Entry(x11:0)), x9:0) -> f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8:0)), java.lang.Object(ARRAY(x9:0)), x11:0, x9:0) 31.12/10.46 31.12/10.46 R is empty. 31.12/10.46 Q is empty. 31.12/10.46 We have to consider all (P,Q,R)-chains. 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (26) QDPSizeChangeProof (EQUIVALENT) 31.12/10.46 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. 31.12/10.46 31.12/10.46 From the DPs we obtained the following set of size-change graphs: 31.12/10.46 *f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8:0)), java.lang.Object(ARRAY(x9:0)), java.lang.Object(javaUtilEx.HashMap$Entry(x11:0)), x9:0) -> f11686_0_transfer_NONNULL(java.lang.Object(ARRAY(x8:0)), java.lang.Object(ARRAY(x9:0)), x11:0, x9:0) 31.12/10.46 The graph contains the following edges 1 >= 1, 2 >= 2, 3 > 3, 2 > 4, 4 >= 4 31.12/10.46 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (27) 31.12/10.46 YES 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (28) 31.12/10.46 Obligation: 31.12/10.46 SCC of termination graph based on JBC Program. 31.12/10.46 SCC contains nodes from the following methods: javaUtilEx.HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 31.12/10.46 SCC calls the following helper methods: javaUtilEx.Content.equals(Ljava/lang/Object;)Z 31.12/10.46 Performed SCC analyses: 31.12/10.46 *Used field analysis yielded the following read fields: 31.12/10.46 *javaUtilEx.HashMap$Entry: [hash, next, key] 31.12/10.46 *Marker field analysis yielded the following relations that could be markers: 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (29) SCCToIRSProof (SOUND) 31.12/10.46 Transformed FIGraph SCCs to intTRSs. Log: 31.12/10.46 Generated rules. Obtained 57 IRulesP rules: 31.12/10.46 f10961_0_put_NULL(EOS(STATIC_10961), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(o6847sub), java.lang.Object(o6847sub)) -> f10966_0_put_NULL(EOS(STATIC_10966), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(o6847sub), java.lang.Object(o6847sub)) :|: TRUE 31.12/10.46 f10966_0_put_NULL(EOS(STATIC_10966), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(o6847sub), java.lang.Object(o6847sub)) -> f10972_0_put_Load(EOS(STATIC_10972), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(o6847sub)) :|: TRUE 31.12/10.46 f10972_0_put_Load(EOS(STATIC_10972), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(o6847sub)) -> f10976_0_put_FieldAccess(EOS(STATIC_10976), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(o6847sub), java.lang.Object(o6847sub)) :|: TRUE 31.12/10.46 f10976_0_put_FieldAccess(EOS(STATIC_10976), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4599, o6861, o6859)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4599, o6861, o6859))) -> f10980_0_put_FieldAccess(EOS(STATIC_10980), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4599, o6861, o6859)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4599, o6861, o6859))) :|: TRUE 31.12/10.46 f10980_0_put_FieldAccess(EOS(STATIC_10980), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4599, o6861, o6859)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4599, o6861, o6859))) -> f10984_0_put_Load(EOS(STATIC_10984), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4599, o6861, o6859)), i4599) :|: TRUE 31.12/10.46 f10984_0_put_Load(EOS(STATIC_10984), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4599, o6861, o6859)), i4599) -> f10988_0_put_NE(EOS(STATIC_10988), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4599, o6861, o6859)), i4599, i4459) :|: TRUE 31.12/10.46 f10988_0_put_NE(EOS(STATIC_10988), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4599, o6861, o6859)), i4599, i4459) -> f10991_0_put_NE(EOS(STATIC_10991), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4599, o6861, o6859)), i4599, i4459) :|: !(i4599 = i4459) 31.12/10.46 f10988_0_put_NE(EOS(STATIC_10988), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, o6859)), i4459, i4459) -> f10992_0_put_NE(EOS(STATIC_10992), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, o6859)), i4459, i4459) :|: i4599 = i4459 31.12/10.46 f10991_0_put_NE(EOS(STATIC_10991), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4599, o6861, o6859)), i4599, i4459) -> f10995_0_put_Load(EOS(STATIC_10995), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4599, o6861, o6859))) :|: !(i4599 = i4459) 31.12/10.46 f10995_0_put_Load(EOS(STATIC_10995), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4599, o6861, o6859))) -> f10999_0_put_FieldAccess(EOS(STATIC_10999), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4599, o6861, o6859))) :|: TRUE 31.12/10.46 f10999_0_put_FieldAccess(EOS(STATIC_10999), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4599, o6861, o6859))) -> f11003_0_put_Store(EOS(STATIC_11003), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, o6861) :|: TRUE 31.12/10.46 f11003_0_put_Store(EOS(STATIC_11003), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, o6861) -> f11007_0_put_JMP(EOS(STATIC_11007), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, o6861) :|: TRUE 31.12/10.46 f11007_0_put_JMP(EOS(STATIC_11007), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, o6861) -> f11011_0_put_Load(EOS(STATIC_11011), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, o6861) :|: TRUE 31.12/10.46 f11011_0_put_Load(EOS(STATIC_11011), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, o6861) -> f10956_0_put_Load(EOS(STATIC_10956), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, o6861) :|: TRUE 31.12/10.46 f10956_0_put_Load(EOS(STATIC_10956), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, o6824) -> f10961_0_put_NULL(EOS(STATIC_10961), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, o6824, o6824) :|: TRUE 31.12/10.46 f10992_0_put_NE(EOS(STATIC_10992), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, o6859)), i4459, i4459) -> f10996_0_put_Load(EOS(STATIC_10996), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, o6859))) :|: TRUE 31.12/10.46 f10996_0_put_Load(EOS(STATIC_10996), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, o6859))) -> f11000_0_put_FieldAccess(EOS(STATIC_11000), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, o6859)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, o6859))) :|: TRUE 31.12/10.46 f11000_0_put_FieldAccess(EOS(STATIC_11000), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, o6859)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, o6859))) -> f11004_0_put_Duplicate(EOS(STATIC_11004), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, o6859)), o6859) :|: TRUE 31.12/10.46 f11004_0_put_Duplicate(EOS(STATIC_11004), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, o6859)), o6859) -> f11008_0_put_Store(EOS(STATIC_11008), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, o6859)), o6859, o6859) :|: TRUE 31.12/10.46 f11008_0_put_Store(EOS(STATIC_11008), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, o6859)), o6859, o6859) -> f11012_0_put_Load(EOS(STATIC_11012), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, o6859)), o6859, o6859) :|: TRUE 31.12/10.46 f11012_0_put_Load(EOS(STATIC_11012), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, o6859)), o6859, o6859) -> f11015_0_put_EQ(EOS(STATIC_11015), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, o6859)), o6859, o6859, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 31.12/10.46 f11015_0_put_EQ(EOS(STATIC_11015), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6876sub))), java.lang.Object(o6876sub), java.lang.Object(o6876sub), java.lang.Object(javaUtilEx.Content(EOC))) -> f11017_0_put_EQ(EOS(STATIC_11017), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6876sub))), java.lang.Object(o6876sub), java.lang.Object(o6876sub), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 31.12/10.46 f11015_0_put_EQ(EOS(STATIC_11015), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, NULL)), NULL, NULL, java.lang.Object(javaUtilEx.Content(EOC))) -> f11018_0_put_EQ(EOS(STATIC_11018), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, NULL)), NULL, NULL, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 31.12/10.46 f11017_0_put_EQ(EOS(STATIC_11017), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6876sub))), java.lang.Object(o6876sub), java.lang.Object(o6876sub), java.lang.Object(javaUtilEx.Content(EOC))) -> f11021_0_put_Load(EOS(STATIC_11021), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6876sub))), java.lang.Object(o6876sub)) :|: TRUE 31.12/10.46 f11021_0_put_Load(EOS(STATIC_11021), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6876sub))), java.lang.Object(o6876sub)) -> f11024_0_put_Load(EOS(STATIC_11024), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6876sub))), java.lang.Object(o6876sub), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 31.12/10.46 f11024_0_put_Load(EOS(STATIC_11024), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6876sub))), java.lang.Object(o6876sub), java.lang.Object(javaUtilEx.Content(EOC))) -> f11028_0_put_InvokeMethod(EOS(STATIC_11028), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6876sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6876sub)) :|: TRUE 31.12/10.46 f11028_0_put_InvokeMethod(EOS(STATIC_11028), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6876sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6876sub)) -> f11031_0_equals_Load(EOS(STATIC_11031), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6876sub), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6876sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6876sub)) :|: TRUE 31.12/10.46 f11028_0_put_InvokeMethod(EOS(STATIC_11028), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6876sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6876sub)) -> f11031_1_equals_Load(EOS(STATIC_11031), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6876sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6876sub)) :|: TRUE 31.12/10.46 f11031_0_equals_Load(EOS(STATIC_11031), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6876sub), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6876sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6876sub)) -> f11902_0_equals_Load(EOS(STATIC_11902), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6876sub), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6876sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6876sub)) :|: TRUE 31.12/10.46 f11050_0_equals_Return(EOS(STATIC_11050), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6950sub))), matching1) -> f11061_0_put_EQ(EOS(STATIC_11061), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6950sub))), 0) :|: TRUE && matching1 = 0 31.12/10.46 f11061_0_put_EQ(EOS(STATIC_11061), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6950sub))), matching1) -> f11065_0_put_Load(EOS(STATIC_11065), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6950sub)))) :|: TRUE && matching1 = 0 31.12/10.46 f11065_0_put_Load(EOS(STATIC_11065), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6950sub)))) -> f11071_0_put_FieldAccess(EOS(STATIC_11071), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6950sub)))) :|: TRUE 31.12/10.46 f11071_0_put_FieldAccess(EOS(STATIC_11071), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6950sub)))) -> f11077_0_put_Store(EOS(STATIC_11077), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, o6861) :|: TRUE 31.12/10.46 f11077_0_put_Store(EOS(STATIC_11077), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, o6861) -> f11003_0_put_Store(EOS(STATIC_11003), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, o6861) :|: TRUE 31.12/10.46 f11051_0_equals_Return(EOS(STATIC_11051), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(javaUtilEx.Content(EOC)))), matching1) -> f11053_0_equals_Return(EOS(STATIC_11053), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(javaUtilEx.Content(EOC)))), 0) :|: TRUE && matching1 = 0 31.12/10.46 f11053_0_equals_Return(EOS(STATIC_11053), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o7029, java.lang.Object(javaUtilEx.Content(EOC)))), i4722) -> f11062_0_put_EQ(EOS(STATIC_11062), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o7029, java.lang.Object(javaUtilEx.Content(EOC)))), i4722) :|: TRUE 31.12/10.46 f11062_0_put_EQ(EOS(STATIC_11062), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o7029, java.lang.Object(javaUtilEx.Content(EOC)))), matching1) -> f11067_0_put_EQ(EOS(STATIC_11067), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o7029, java.lang.Object(javaUtilEx.Content(EOC)))), 0) :|: TRUE && matching1 = 0 31.12/10.46 f11067_0_put_EQ(EOS(STATIC_11067), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o7029, java.lang.Object(javaUtilEx.Content(EOC)))), matching1) -> f11073_0_put_Load(EOS(STATIC_11073), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o7029, java.lang.Object(javaUtilEx.Content(EOC))))) :|: TRUE && matching1 = 0 31.12/10.46 f11073_0_put_Load(EOS(STATIC_11073), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o7029, java.lang.Object(javaUtilEx.Content(EOC))))) -> f11079_0_put_FieldAccess(EOS(STATIC_11079), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o7029, java.lang.Object(javaUtilEx.Content(EOC))))) :|: TRUE 31.12/10.46 f11079_0_put_FieldAccess(EOS(STATIC_11079), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o7029, java.lang.Object(javaUtilEx.Content(EOC))))) -> f11083_0_put_Store(EOS(STATIC_11083), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, o7029) :|: TRUE 31.12/10.46 f11083_0_put_Store(EOS(STATIC_11083), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, o7029) -> f11003_0_put_Store(EOS(STATIC_11003), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, o7029) :|: TRUE 31.12/10.46 f11052_0_equals_Return(EOS(STATIC_11052), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(javaUtilEx.Content(EOC)))), matching1) -> f11053_0_equals_Return(EOS(STATIC_11053), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(javaUtilEx.Content(EOC)))), 1) :|: TRUE && matching1 = 1 31.12/10.46 f11018_0_put_EQ(EOS(STATIC_11018), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, NULL)), NULL, NULL, java.lang.Object(javaUtilEx.Content(EOC))) -> f11022_0_put_Load(EOS(STATIC_11022), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, NULL)), NULL) :|: TRUE 31.12/10.46 f11022_0_put_Load(EOS(STATIC_11022), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, NULL)), NULL) -> f11025_0_put_Load(EOS(STATIC_11025), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, NULL)), NULL, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 31.12/10.46 f11025_0_put_Load(EOS(STATIC_11025), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, NULL)), NULL, java.lang.Object(javaUtilEx.Content(EOC))) -> f11029_0_put_InvokeMethod(EOS(STATIC_11029), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, NULL)), java.lang.Object(javaUtilEx.Content(EOC)), NULL) :|: TRUE 31.12/10.46 f11029_0_put_InvokeMethod(EOS(STATIC_11029), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, NULL)), java.lang.Object(javaUtilEx.Content(EOC)), NULL) -> f11032_0_equals_Load(EOS(STATIC_11032), java.lang.Object(javaUtilEx.Content(EOC)), NULL, java.lang.Object(javaUtilEx.Content(EOC)), NULL) :|: TRUE 31.12/10.46 f11029_0_put_InvokeMethod(EOS(STATIC_11029), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, NULL)), java.lang.Object(javaUtilEx.Content(EOC)), NULL) -> f11032_1_equals_Load(EOS(STATIC_11032), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, NULL)), java.lang.Object(javaUtilEx.Content(EOC)), NULL) :|: TRUE 31.12/10.46 f11032_0_equals_Load(EOS(STATIC_11032), java.lang.Object(javaUtilEx.Content(EOC)), NULL, java.lang.Object(javaUtilEx.Content(EOC)), NULL) -> f11958_0_equals_Load(EOS(STATIC_11958), java.lang.Object(javaUtilEx.Content(EOC)), NULL, java.lang.Object(javaUtilEx.Content(EOC)), NULL) :|: TRUE 31.12/10.46 f11055_0_equals_Return(EOS(STATIC_11055), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, NULL)), matching1) -> f11063_0_put_EQ(EOS(STATIC_11063), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, NULL)), 0) :|: TRUE && matching1 = 0 31.12/10.46 f11063_0_put_EQ(EOS(STATIC_11063), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, NULL)), matching1) -> f11068_0_put_Load(EOS(STATIC_11068), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, NULL))) :|: TRUE && matching1 = 0 31.12/10.46 f11068_0_put_Load(EOS(STATIC_11068), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, NULL))) -> f11074_0_put_FieldAccess(EOS(STATIC_11074), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, NULL))) :|: TRUE 31.12/10.46 f11074_0_put_FieldAccess(EOS(STATIC_11074), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, NULL))) -> f11080_0_put_Store(EOS(STATIC_11080), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, o6861) :|: TRUE 31.12/10.46 f11080_0_put_Store(EOS(STATIC_11080), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, o6861) -> f11003_0_put_Store(EOS(STATIC_11003), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, o6861) :|: TRUE 31.12/10.46 f11031_1_equals_Load(EOS(STATIC_11031), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6950sub))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6950sub)) -> f11050_0_equals_Return(EOS(STATIC_11050), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(o6950sub))), 0) :|: TRUE 31.12/10.46 f11031_1_equals_Load(EOS(STATIC_11031), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(javaUtilEx.Content(EOC)))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f11051_0_equals_Return(EOS(STATIC_11051), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(javaUtilEx.Content(EOC)))), 0) :|: TRUE 31.12/10.46 f11031_1_equals_Load(EOS(STATIC_11031), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(javaUtilEx.Content(EOC)))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f11052_0_equals_Return(EOS(STATIC_11052), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, java.lang.Object(javaUtilEx.Content(EOC)))), 1) :|: TRUE 31.12/10.46 f11032_1_equals_Load(EOS(STATIC_11032), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, NULL)), java.lang.Object(javaUtilEx.Content(EOC)), NULL) -> f11055_0_equals_Return(EOS(STATIC_11055), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459, o6861, NULL)), 0) :|: TRUE 31.12/10.46 Combined rules. Obtained 7 IRulesP rules: 31.12/10.46 f10961_0_put_NULL(EOS(STATIC_10961), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4599:0, o6861:0, o6859:0)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4599:0, o6861:0, o6859:0))) -> f10961_0_put_NULL(EOS(STATIC_10961), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459:0, o6861:0, o6861:0) :|: i4599:0 < i4459:0 31.12/10.46 f10961_0_put_NULL(EOS(STATIC_10961), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4599:0, o6861:0, o6859:0)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4599:0, o6861:0, o6859:0))) -> f10961_0_put_NULL(EOS(STATIC_10961), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459:0, o6861:0, o6861:0) :|: i4599:0 > i4459:0 31.12/10.46 f10961_0_put_NULL(EOS(STATIC_10961), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459:0, o6861:0, java.lang.Object(o6876sub:0))), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459:0, o6861:0, java.lang.Object(o6876sub:0)))) -> f10961_0_put_NULL(EOS(STATIC_10961), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459:0, o6861:0, o6861:0) :|: TRUE 31.12/10.46 f10961_0_put_NULL(EOS(STATIC_10961), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459:0, o6861:0, java.lang.Object(javaUtilEx.Content(EOC)))), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459:0, o6861:0, java.lang.Object(javaUtilEx.Content(EOC))))) -> f10961_0_put_NULL(EOS(STATIC_10961), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459:0, o6861:0, o6861:0) :|: TRUE 31.12/10.46 f10961_0_put_NULL(EOS(STATIC_10961), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459:0, o6861:0, NULL)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459:0, o6861:0, NULL))) -> f10961_0_put_NULL(EOS(STATIC_10961), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459:0, o6861:0, o6861:0) :|: TRUE 31.12/10.46 Removed following non-SCC rules: 31.12/10.46 f10961_0_put_NULL(EOS(STATIC_10961), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459:0, o6861:0, java.lang.Object(o6876sub:0))), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459:0, o6861:0, java.lang.Object(o6876sub:0)))) -> f11902_0_equals_Load(EOS(STATIC_11902), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6876sub:0), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459:0, o6861:0, java.lang.Object(o6876sub:0))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6876sub:0)) :|: TRUE 31.12/10.46 f10961_0_put_NULL(EOS(STATIC_10961), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4459:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459:0, o6861:0, NULL)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, i4459:0, o6861:0, NULL))) -> f11958_0_equals_Load(EOS(STATIC_11958), java.lang.Object(javaUtilEx.Content(EOC)), NULL, java.lang.Object(javaUtilEx.Content(EOC)), NULL) :|: TRUE 31.12/10.46 Filtered constant ground arguments: 31.12/10.46 f10961_0_put_NULL(x1, x2, x3, x4, x5, x6, x7) -> f10961_0_put_NULL(x5, x6, x7) 31.12/10.46 EOS(x1) -> EOS 31.12/10.46 javaUtilEx.AbstractMap(x1) -> javaUtilEx.AbstractMap 31.12/10.46 javaUtilEx.Content(x1) -> javaUtilEx.Content 31.12/10.46 javaUtilEx.HashMap$Entry(x1, x2, x3, x4) -> javaUtilEx.HashMap$Entry(x2, x3, x4) 31.12/10.46 javaUtilEx.HashMap(x1) -> javaUtilEx.HashMap 31.12/10.46 Filtered duplicate arguments: 31.12/10.46 f10961_0_put_NULL(x1, x2, x3) -> f10961_0_put_NULL(x1, x3) 31.12/10.46 Finished conversion. Obtained 5 rules.P rules: 31.12/10.46 f10961_0_put_NULL(i4459:0, java.lang.Object(javaUtilEx.HashMap$Entry(i4599:0, o6861:0, o6859:0))) -> f10961_0_put_NULL(i4459:0, o6861:0) :|: i4599:0 < i4459:0 31.12/10.46 f10961_0_put_NULL(i4459:0, java.lang.Object(javaUtilEx.HashMap$Entry(i4599:0, o6861:0, o6859:0))) -> f10961_0_put_NULL(i4459:0, o6861:0) :|: i4599:0 > i4459:0 31.12/10.46 f10961_0_put_NULL(i4459:0, java.lang.Object(javaUtilEx.HashMap$Entry(i4459:0, o6861:0, java.lang.Object(o6876sub:0)))) -> f10961_0_put_NULL(i4459:0, o6861:0) :|: TRUE 31.12/10.46 f10961_0_put_NULL(i4459:0, java.lang.Object(javaUtilEx.HashMap$Entry(i4459:0, o6861:0, java.lang.Object(javaUtilEx.Content)))) -> f10961_0_put_NULL(i4459:0, o6861:0) :|: TRUE 31.12/10.46 f10961_0_put_NULL(i4459:0, java.lang.Object(javaUtilEx.HashMap$Entry(i4459:0, o6861:0, NULL))) -> f10961_0_put_NULL(i4459:0, o6861:0) :|: TRUE 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (30) 31.12/10.46 Obligation: 31.12/10.46 Rules: 31.12/10.46 f10961_0_put_NULL(i4459:0, java.lang.Object(javaUtilEx.HashMap$Entry(i4599:0, o6861:0, o6859:0))) -> f10961_0_put_NULL(i4459:0, o6861:0) :|: i4599:0 < i4459:0 31.12/10.46 f10961_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x1, x2, x3))) -> f10961_0_put_NULL(x, x2) :|: x1 > x 31.12/10.46 f10961_0_put_NULL(x4, java.lang.Object(javaUtilEx.HashMap$Entry(x4, x5, java.lang.Object(x6)))) -> f10961_0_put_NULL(x4, x5) :|: TRUE 31.12/10.46 f10961_0_put_NULL(x7, java.lang.Object(javaUtilEx.HashMap$Entry(x7, x8, java.lang.Object(javaUtilEx.Content)))) -> f10961_0_put_NULL(x7, x8) :|: TRUE 31.12/10.46 f10961_0_put_NULL(x9, java.lang.Object(javaUtilEx.HashMap$Entry(x9, x10, NULL))) -> f10961_0_put_NULL(x9, x10) :|: TRUE 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (31) IRSFormatTransformerProof (EQUIVALENT) 31.12/10.46 Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (32) 31.12/10.46 Obligation: 31.12/10.46 Rules: 31.12/10.46 f10961_0_put_NULL(i4459:0, java.lang.Object(javaUtilEx.HashMap$Entry(i4599:0, o6861:0, o6859:0))) -> f10961_0_put_NULL(i4459:0, o6861:0) :|: i4599:0 < i4459:0 31.12/10.46 f10961_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x1, x2, x3))) -> f10961_0_put_NULL(x, x2) :|: x1 > x 31.12/10.46 f10961_0_put_NULL(x4, java.lang.Object(javaUtilEx.HashMap$Entry(x4, x5, java.lang.Object(x6)))) -> f10961_0_put_NULL(x4, x5) :|: TRUE 31.12/10.46 f10961_0_put_NULL(x7, java.lang.Object(javaUtilEx.HashMap$Entry(x7, x8, java.lang.Object(javaUtilEx.Content)))) -> f10961_0_put_NULL(x7, x8) :|: TRUE 31.12/10.46 f10961_0_put_NULL(x9, java.lang.Object(javaUtilEx.HashMap$Entry(x9, x10, NULL))) -> f10961_0_put_NULL(x9, x10) :|: TRUE 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (33) IRSwTTerminationDigraphProof (EQUIVALENT) 31.12/10.46 Constructed termination digraph! 31.12/10.46 Nodes: 31.12/10.46 (1) f10961_0_put_NULL(i4459:0, java.lang.Object(javaUtilEx.HashMap$Entry(i4599:0, o6861:0, o6859:0))) -> f10961_0_put_NULL(i4459:0, o6861:0) :|: i4599:0 < i4459:0 31.12/10.46 (2) f10961_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x1, x2, x3))) -> f10961_0_put_NULL(x, x2) :|: x1 > x 31.12/10.46 (3) f10961_0_put_NULL(x4, java.lang.Object(javaUtilEx.HashMap$Entry(x4, x5, java.lang.Object(x6)))) -> f10961_0_put_NULL(x4, x5) :|: TRUE 31.12/10.46 (4) f10961_0_put_NULL(x7, java.lang.Object(javaUtilEx.HashMap$Entry(x7, x8, java.lang.Object(javaUtilEx.Content)))) -> f10961_0_put_NULL(x7, x8) :|: TRUE 31.12/10.46 (5) f10961_0_put_NULL(x9, java.lang.Object(javaUtilEx.HashMap$Entry(x9, x10, NULL))) -> f10961_0_put_NULL(x9, x10) :|: TRUE 31.12/10.46 31.12/10.46 Arcs: 31.12/10.46 (1) -> (1), (2), (3), (4), (5) 31.12/10.46 (2) -> (1), (2), (3), (4), (5) 31.12/10.46 (3) -> (1), (2), (3), (4), (5) 31.12/10.46 (4) -> (1), (2), (3), (4), (5) 31.12/10.46 (5) -> (1), (2), (3), (4), (5) 31.12/10.46 31.12/10.46 This digraph is fully evaluated! 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (34) 31.12/10.46 Obligation: 31.12/10.46 31.12/10.46 Termination digraph: 31.12/10.46 Nodes: 31.12/10.46 (1) f10961_0_put_NULL(i4459:0, java.lang.Object(javaUtilEx.HashMap$Entry(i4599:0, o6861:0, o6859:0))) -> f10961_0_put_NULL(i4459:0, o6861:0) :|: i4599:0 < i4459:0 31.12/10.46 (2) f10961_0_put_NULL(x, java.lang.Object(javaUtilEx.HashMap$Entry(x1, x2, x3))) -> f10961_0_put_NULL(x, x2) :|: x1 > x 31.12/10.46 (3) f10961_0_put_NULL(x4, java.lang.Object(javaUtilEx.HashMap$Entry(x4, x5, java.lang.Object(x6)))) -> f10961_0_put_NULL(x4, x5) :|: TRUE 31.12/10.46 (4) f10961_0_put_NULL(x7, java.lang.Object(javaUtilEx.HashMap$Entry(x7, x8, java.lang.Object(javaUtilEx.Content)))) -> f10961_0_put_NULL(x7, x8) :|: TRUE 31.12/10.46 (5) f10961_0_put_NULL(x9, java.lang.Object(javaUtilEx.HashMap$Entry(x9, x10, NULL))) -> f10961_0_put_NULL(x9, x10) :|: TRUE 31.12/10.46 31.12/10.46 Arcs: 31.12/10.46 (1) -> (1), (2), (3), (4), (5) 31.12/10.46 (2) -> (1), (2), (3), (4), (5) 31.12/10.46 (3) -> (1), (2), (3), (4), (5) 31.12/10.46 (4) -> (1), (2), (3), (4), (5) 31.12/10.46 (5) -> (1), (2), (3), (4), (5) 31.12/10.46 31.12/10.46 This digraph is fully evaluated! 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (35) IntTRSCompressionProof (EQUIVALENT) 31.12/10.46 Compressed rules. 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (36) 31.12/10.46 Obligation: 31.12/10.46 Rules: 31.12/10.46 f10961_0_put_NULL(i4459:0:0, java.lang.Object(javaUtilEx.HashMap$Entry(i4599:0:0, o6861:0:0, o6859:0:0))) -> f10961_0_put_NULL(i4459:0:0, o6861:0:0) :|: i4599:0:0 < i4459:0:0 31.12/10.46 f10961_0_put_NULL(x7:0, java.lang.Object(javaUtilEx.HashMap$Entry(x7:0, x8:0, java.lang.Object(javaUtilEx.Content)))) -> f10961_0_put_NULL(x7:0, x8:0) :|: TRUE 31.12/10.46 f10961_0_put_NULL(x:0, java.lang.Object(javaUtilEx.HashMap$Entry(x1:0, x2:0, x3:0))) -> f10961_0_put_NULL(x:0, x2:0) :|: x:0 < x1:0 31.12/10.46 f10961_0_put_NULL(x9:0, java.lang.Object(javaUtilEx.HashMap$Entry(x9:0, x10:0, NULL))) -> f10961_0_put_NULL(x9:0, x10:0) :|: TRUE 31.12/10.46 f10961_0_put_NULL(x4:0, java.lang.Object(javaUtilEx.HashMap$Entry(x4:0, x5:0, java.lang.Object(x6:0)))) -> f10961_0_put_NULL(x4:0, x5:0) :|: TRUE 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (37) TempFilterProof (SOUND) 31.12/10.46 Used the following sort dictionary for filtering: 31.12/10.46 f10961_0_put_NULL(VARIABLE, VARIABLE) 31.12/10.46 java.lang.Object(VARIABLE) 31.12/10.46 javaUtilEx.HashMap$Entry(VARIABLE, VARIABLE, VARIABLE) 31.12/10.46 javaUtilEx.Content() 31.12/10.46 NULL() 31.12/10.46 Removed predefined arithmetic. 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (38) 31.12/10.46 Obligation: 31.12/10.46 Rules: 31.12/10.46 f10961_0_put_NULL(i4459:0:0, java.lang.Object(javaUtilEx.HashMap$Entry(i4599:0:0, o6861:0:0, o6859:0:0))) -> f10961_0_put_NULL(i4459:0:0, o6861:0:0) 31.12/10.46 f10961_0_put_NULL(x7:0, java.lang.Object(javaUtilEx.HashMap$Entry(x7:0, x8:0, java.lang.Object(javaUtilEx.Content)))) -> f10961_0_put_NULL(x7:0, x8:0) 31.12/10.46 f10961_0_put_NULL(x9:0, java.lang.Object(javaUtilEx.HashMap$Entry(x9:0, x10:0, NULL))) -> f10961_0_put_NULL(x9:0, x10:0) 31.12/10.46 f10961_0_put_NULL(x4:0, java.lang.Object(javaUtilEx.HashMap$Entry(x4:0, x5:0, java.lang.Object(x6:0)))) -> f10961_0_put_NULL(x4:0, x5:0) 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (39) IRSwTToQDPProof (SOUND) 31.12/10.46 Removed the integers and created a QDP-Problem. 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (40) 31.12/10.46 Obligation: 31.12/10.46 Q DP problem: 31.12/10.46 The TRS P consists of the following rules: 31.12/10.46 31.12/10.46 f10961_0_put_NULL(i4459:0:0, java.lang.Object(javaUtilEx.HashMap$Entry(i4599:0:0, o6861:0:0, o6859:0:0))) -> f10961_0_put_NULL(i4459:0:0, o6861:0:0) 31.12/10.46 f10961_0_put_NULL(x7:0, java.lang.Object(javaUtilEx.HashMap$Entry(x7:0, x8:0, java.lang.Object(javaUtilEx.Content)))) -> f10961_0_put_NULL(x7:0, x8:0) 31.12/10.46 f10961_0_put_NULL(x9:0, java.lang.Object(javaUtilEx.HashMap$Entry(x9:0, x10:0, NULL))) -> f10961_0_put_NULL(x9:0, x10:0) 31.12/10.46 f10961_0_put_NULL(x4:0, java.lang.Object(javaUtilEx.HashMap$Entry(x4:0, x5:0, java.lang.Object(x6:0)))) -> f10961_0_put_NULL(x4:0, x5:0) 31.12/10.46 31.12/10.46 R is empty. 31.12/10.46 Q is empty. 31.12/10.46 We have to consider all (P,Q,R)-chains. 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (41) QDPSizeChangeProof (EQUIVALENT) 31.12/10.46 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. 31.12/10.46 31.12/10.46 From the DPs we obtained the following set of size-change graphs: 31.12/10.46 *f10961_0_put_NULL(i4459:0:0, java.lang.Object(javaUtilEx.HashMap$Entry(i4599:0:0, o6861:0:0, o6859:0:0))) -> f10961_0_put_NULL(i4459:0:0, o6861:0:0) 31.12/10.46 The graph contains the following edges 1 >= 1, 2 > 2 31.12/10.46 31.12/10.46 31.12/10.46 *f10961_0_put_NULL(x7:0, java.lang.Object(javaUtilEx.HashMap$Entry(x7:0, x8:0, java.lang.Object(javaUtilEx.Content)))) -> f10961_0_put_NULL(x7:0, x8:0) 31.12/10.46 The graph contains the following edges 1 >= 1, 2 > 1, 2 > 2 31.12/10.46 31.12/10.46 31.12/10.46 *f10961_0_put_NULL(x9:0, java.lang.Object(javaUtilEx.HashMap$Entry(x9:0, x10:0, NULL))) -> f10961_0_put_NULL(x9:0, x10:0) 31.12/10.46 The graph contains the following edges 1 >= 1, 2 > 1, 2 > 2 31.12/10.46 31.12/10.46 31.12/10.46 *f10961_0_put_NULL(x4:0, java.lang.Object(javaUtilEx.HashMap$Entry(x4:0, x5:0, java.lang.Object(x6:0)))) -> f10961_0_put_NULL(x4:0, x5:0) 31.12/10.46 The graph contains the following edges 1 >= 1, 2 > 1, 2 > 2 31.12/10.46 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (42) 31.12/10.46 YES 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (43) 31.12/10.46 Obligation: 31.12/10.46 SCC of termination graph based on JBC Program. 31.12/10.46 SCC contains nodes from the following methods: javaUtilEx.HashMap.containsValue(Ljava/lang/Object;)Z 31.12/10.46 SCC calls the following helper methods: javaUtilEx.Content.equals(Ljava/lang/Object;)Z 31.12/10.46 Performed SCC analyses: 31.12/10.46 *Used field analysis yielded the following read fields: 31.12/10.46 *javaUtilEx.HashMap$Entry: [value, next] 31.12/10.46 *Marker field analysis yielded the following relations that could be markers: 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (44) SCCToIRSProof (SOUND) 31.12/10.46 Transformed FIGraph SCCs to intTRSs. Log: 31.12/10.46 Generated rules. Obtained 47 IRulesP rules: 31.12/10.46 f10782_0_containsValue_Load(EOS(STATIC_10782), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, i4447) -> f10784_0_containsValue_ArrayLength(EOS(STATIC_10784), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, i4447, java.lang.Object(ARRAY(i4446))) :|: TRUE 31.12/10.46 f10784_0_containsValue_ArrayLength(EOS(STATIC_10784), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, i4447, java.lang.Object(ARRAY(i4446))) -> f10786_0_containsValue_GE(EOS(STATIC_10786), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, i4447, i4446) :|: i4446 >= 0 31.12/10.46 f10786_0_containsValue_GE(EOS(STATIC_10786), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, i4447, i4446) -> f10789_0_containsValue_GE(EOS(STATIC_10789), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, i4447, i4446) :|: i4447 < i4446 31.12/10.46 f10789_0_containsValue_GE(EOS(STATIC_10789), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, i4447, i4446) -> f10792_0_containsValue_Load(EOS(STATIC_10792), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447) :|: i4447 < i4446 31.12/10.46 f10792_0_containsValue_Load(EOS(STATIC_10792), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447) -> f10795_0_containsValue_Load(EOS(STATIC_10795), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(ARRAY(i4446))) :|: TRUE 31.12/10.46 f10795_0_containsValue_Load(EOS(STATIC_10795), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(ARRAY(i4446))) -> f10798_0_containsValue_ArrayAccess(EOS(STATIC_10798), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(ARRAY(i4446)), i4447) :|: TRUE 31.12/10.46 f10798_0_containsValue_ArrayAccess(EOS(STATIC_10798), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(ARRAY(i4446)), i4447) -> f10800_0_containsValue_ArrayAccess(EOS(STATIC_10800), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(ARRAY(i4446)), i4447) :|: TRUE 31.12/10.46 f10800_0_containsValue_ArrayAccess(EOS(STATIC_10800), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(ARRAY(i4446)), i4447) -> f10804_0_containsValue_Store(EOS(STATIC_10804), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, o6502) :|: i4447 < i4446 31.12/10.46 f10804_0_containsValue_Store(EOS(STATIC_10804), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, o6502) -> f10807_0_containsValue_Load(EOS(STATIC_10807), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, o6502) :|: TRUE 31.12/10.46 f10807_0_containsValue_Load(EOS(STATIC_10807), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, o6502) -> f10876_0_containsValue_Load(EOS(STATIC_10876), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, o6502) :|: TRUE 31.12/10.46 f10876_0_containsValue_Load(EOS(STATIC_10876), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, o6661) -> f10880_0_containsValue_NULL(EOS(STATIC_10880), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, o6661, o6661) :|: TRUE 31.12/10.46 f10880_0_containsValue_NULL(EOS(STATIC_10880), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(o6672sub), java.lang.Object(o6672sub)) -> f10884_0_containsValue_NULL(EOS(STATIC_10884), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(o6672sub), java.lang.Object(o6672sub)) :|: TRUE 31.12/10.46 f10880_0_containsValue_NULL(EOS(STATIC_10880), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, NULL, NULL) -> f10885_0_containsValue_NULL(EOS(STATIC_10885), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, NULL, NULL) :|: TRUE 31.12/10.46 f10884_0_containsValue_NULL(EOS(STATIC_10884), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(o6672sub), java.lang.Object(o6672sub)) -> f10888_0_containsValue_Load(EOS(STATIC_10888), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(o6672sub)) :|: TRUE 31.12/10.46 f10888_0_containsValue_Load(EOS(STATIC_10888), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(o6672sub)) -> f10893_0_containsValue_Load(EOS(STATIC_10893), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(o6672sub), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 31.12/10.46 f10893_0_containsValue_Load(EOS(STATIC_10893), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(o6672sub), java.lang.Object(javaUtilEx.Content(EOC))) -> f10899_0_containsValue_FieldAccess(EOS(STATIC_10899), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(o6672sub), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6672sub)) :|: TRUE 31.12/10.46 f10899_0_containsValue_FieldAccess(EOS(STATIC_10899), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6679, o6680)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6679, o6680))) -> f10904_0_containsValue_FieldAccess(EOS(STATIC_10904), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6679, o6680)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6679, o6680))) :|: TRUE 31.12/10.46 f10904_0_containsValue_FieldAccess(EOS(STATIC_10904), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6679, o6680)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6679, o6680))) -> f10909_0_containsValue_InvokeMethod(EOS(STATIC_10909), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6679, o6680)), java.lang.Object(javaUtilEx.Content(EOC)), o6679) :|: TRUE 31.12/10.46 f10909_0_containsValue_InvokeMethod(EOS(STATIC_10909), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6679, o6680)), java.lang.Object(javaUtilEx.Content(EOC)), o6679) -> f10914_0_equals_Load(EOS(STATIC_10914), java.lang.Object(javaUtilEx.Content(EOC)), o6679, java.lang.Object(ARRAY(i4446)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6679, o6680)), java.lang.Object(javaUtilEx.Content(EOC)), o6679) :|: i4446 >= 1 && i4447 < i4446 31.12/10.46 f10909_0_containsValue_InvokeMethod(EOS(STATIC_10909), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6679, o6680)), java.lang.Object(javaUtilEx.Content(EOC)), o6679) -> f10914_1_equals_Load(EOS(STATIC_10914), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6679, o6680)), java.lang.Object(javaUtilEx.Content(EOC)), o6679) :|: i4446 >= 1 && i4447 < i4446 31.12/10.46 f10914_0_equals_Load(EOS(STATIC_10914), java.lang.Object(javaUtilEx.Content(EOC)), o6679, java.lang.Object(ARRAY(i4446)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6679, o6680)), java.lang.Object(javaUtilEx.Content(EOC)), o6679) -> f12078_0_equals_Load(EOS(STATIC_12078), java.lang.Object(javaUtilEx.Content(EOC)), o6679, java.lang.Object(ARRAY(i4446)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6679, o6680)), java.lang.Object(javaUtilEx.Content(EOC)), o6679) :|: TRUE 31.12/10.46 f10937_0_equals_Return(EOS(STATIC_10937), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, NULL, o6680)), matching1) -> f10939_0_equals_Return(EOS(STATIC_10939), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, NULL, o6680)), 0) :|: TRUE && matching1 = 0 31.12/10.46 f10939_0_equals_Return(EOS(STATIC_10939), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6780, o6779)), matching1) -> f10947_0_containsValue_EQ(EOS(STATIC_10947), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6780, o6779)), 0) :|: TRUE && matching1 = 0 31.12/10.46 f10947_0_containsValue_EQ(EOS(STATIC_10947), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6780, o6779)), matching1) -> f10952_0_containsValue_Load(EOS(STATIC_10952), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6780, o6779))) :|: TRUE && matching1 = 0 31.12/10.46 f10952_0_containsValue_Load(EOS(STATIC_10952), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6780, o6779))) -> f10958_0_containsValue_FieldAccess(EOS(STATIC_10958), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6780, o6779))) :|: TRUE 31.12/10.46 f10958_0_containsValue_FieldAccess(EOS(STATIC_10958), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6780, o6779))) -> f10963_0_containsValue_Store(EOS(STATIC_10963), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, o6779) :|: TRUE 31.12/10.46 f10963_0_containsValue_Store(EOS(STATIC_10963), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, o6779) -> f10969_0_containsValue_JMP(EOS(STATIC_10969), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, o6779) :|: TRUE 31.12/10.46 f10969_0_containsValue_JMP(EOS(STATIC_10969), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, o6779) -> f10975_0_containsValue_Load(EOS(STATIC_10975), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, o6779) :|: TRUE 31.12/10.46 f10975_0_containsValue_Load(EOS(STATIC_10975), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, o6779) -> f10876_0_containsValue_Load(EOS(STATIC_10876), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, o6779) :|: TRUE 31.12/10.46 f10938_0_equals_Return(EOS(STATIC_10938), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(o6738sub), o6680)), matching1) -> f10939_0_equals_Return(EOS(STATIC_10939), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(o6738sub), o6680)), 0) :|: TRUE && matching1 = 0 31.12/10.46 f10940_0_equals_Return(EOS(STATIC_10940), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(javaUtilEx.Content(EOC)), o6680)), matching1) -> f10942_0_equals_Return(EOS(STATIC_10942), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(javaUtilEx.Content(EOC)), o6680)), 0) :|: TRUE && matching1 = 0 31.12/10.46 f10942_0_equals_Return(EOS(STATIC_10942), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(javaUtilEx.Content(EOC)), o6794)), i4578) -> f10948_0_containsValue_EQ(EOS(STATIC_10948), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(javaUtilEx.Content(EOC)), o6794)), i4578) :|: TRUE 31.12/10.46 f10948_0_containsValue_EQ(EOS(STATIC_10948), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(javaUtilEx.Content(EOC)), o6794)), matching1) -> f10954_0_containsValue_EQ(EOS(STATIC_10954), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(javaUtilEx.Content(EOC)), o6794)), 0) :|: TRUE && matching1 = 0 31.12/10.46 f10954_0_containsValue_EQ(EOS(STATIC_10954), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(javaUtilEx.Content(EOC)), o6794)), matching1) -> f10960_0_containsValue_Load(EOS(STATIC_10960), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(javaUtilEx.Content(EOC)), o6794))) :|: TRUE && matching1 = 0 31.12/10.46 f10960_0_containsValue_Load(EOS(STATIC_10960), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(javaUtilEx.Content(EOC)), o6794))) -> f10965_0_containsValue_FieldAccess(EOS(STATIC_10965), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(javaUtilEx.Content(EOC)), o6794))) :|: TRUE 31.12/10.46 f10965_0_containsValue_FieldAccess(EOS(STATIC_10965), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(javaUtilEx.Content(EOC)), o6794))) -> f10971_0_containsValue_Store(EOS(STATIC_10971), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, o6794) :|: TRUE 31.12/10.46 f10971_0_containsValue_Store(EOS(STATIC_10971), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, o6794) -> f10963_0_containsValue_Store(EOS(STATIC_10963), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, o6794) :|: TRUE 31.12/10.46 f10941_0_equals_Return(EOS(STATIC_10941), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(javaUtilEx.Content(EOC)), o6680)), matching1) -> f10942_0_equals_Return(EOS(STATIC_10942), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(javaUtilEx.Content(EOC)), o6680)), 1) :|: TRUE && matching1 = 1 31.12/10.46 f10885_0_containsValue_NULL(EOS(STATIC_10885), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, NULL, NULL) -> f10889_0_containsValue_Inc(EOS(STATIC_10889), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447) :|: TRUE 31.12/10.46 f10889_0_containsValue_Inc(EOS(STATIC_10889), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447) -> f10894_0_containsValue_JMP(EOS(STATIC_10894), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447 + 1) :|: TRUE 31.12/10.46 f10894_0_containsValue_JMP(EOS(STATIC_10894), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4527) -> f10900_0_containsValue_Load(EOS(STATIC_10900), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4527) :|: TRUE 31.12/10.46 f10900_0_containsValue_Load(EOS(STATIC_10900), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4527) -> f10780_0_containsValue_Load(EOS(STATIC_10780), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4527) :|: TRUE 31.12/10.46 f10780_0_containsValue_Load(EOS(STATIC_10780), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447) -> f10782_0_containsValue_Load(EOS(STATIC_10782), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, i4447) :|: TRUE 31.12/10.46 f10914_1_equals_Load(EOS(STATIC_10914), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, NULL, o6680)), java.lang.Object(javaUtilEx.Content(EOC)), NULL) -> f10937_0_equals_Return(EOS(STATIC_10937), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, NULL, o6680)), 0) :|: TRUE 31.12/10.46 f10914_1_equals_Load(EOS(STATIC_10914), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(o6738sub), o6680)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6738sub)) -> f10938_0_equals_Return(EOS(STATIC_10938), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(o6738sub), o6680)), 0) :|: TRUE 31.12/10.46 f10914_1_equals_Load(EOS(STATIC_10914), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(javaUtilEx.Content(EOC)), o6680)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f10940_0_equals_Return(EOS(STATIC_10940), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(javaUtilEx.Content(EOC)), o6680)), 0) :|: TRUE 31.12/10.46 f10914_1_equals_Load(EOS(STATIC_10914), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(javaUtilEx.Content(EOC)), o6680)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f10941_0_equals_Return(EOS(STATIC_10941), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446)), i4447, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(javaUtilEx.Content(EOC)), o6680)), 1) :|: TRUE 31.12/10.46 Combined rules. Obtained 5 IRulesP rules: 31.12/10.46 f10880_0_containsValue_NULL(EOS(STATIC_10880), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446:0)), i4447:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, NULL, o6680:0)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, NULL, o6680:0))) -> f10880_0_containsValue_NULL(EOS(STATIC_10880), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446:0)), i4447:0, o6680:0, o6680:0) :|: i4446:0 > 0 && i4447:0 < i4446:0 31.12/10.46 f10880_0_containsValue_NULL(EOS(STATIC_10880), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446:0)), i4447:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(o6738sub:0), o6680:0)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(o6738sub:0), o6680:0))) -> f10880_0_containsValue_NULL(EOS(STATIC_10880), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446:0)), i4447:0, o6680:0, o6680:0) :|: i4446:0 > 0 && i4447:0 < i4446:0 31.12/10.46 f10880_0_containsValue_NULL(EOS(STATIC_10880), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446:0)), i4447:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(javaUtilEx.Content(EOC)), o6680:0)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, java.lang.Object(javaUtilEx.Content(EOC)), o6680:0))) -> f10880_0_containsValue_NULL(EOS(STATIC_10880), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446:0)), i4447:0, o6680:0, o6680:0) :|: i4446:0 > 0 && i4447:0 < i4446:0 31.12/10.46 f10880_0_containsValue_NULL(EOS(STATIC_10880), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446:0)), i4447:0, NULL, NULL) -> f10880_0_containsValue_NULL(EOS(STATIC_10880), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446:0)), i4447:0 + 1, o6502:0, o6502:0) :|: i4446:0 > -1 && i4447:0 + 1 < i4446:0 31.12/10.46 Removed following non-SCC rules: 31.12/10.46 f10880_0_containsValue_NULL(EOS(STATIC_10880), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4446:0)), i4447:0, java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6679:0, o6680:0)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6679:0, o6680:0))) -> f12078_0_equals_Load(EOS(STATIC_12078), java.lang.Object(javaUtilEx.Content(EOC)), o6679:0, java.lang.Object(ARRAY(i4446:0)), java.lang.Object(javaUtilEx.HashMap$Entry(EOC, o6679:0, o6680:0)), java.lang.Object(javaUtilEx.Content(EOC)), o6679:0) :|: i4446:0 > 0 && i4447:0 < i4446:0 31.12/10.46 Filtered constant ground arguments: 31.12/10.46 f10880_0_containsValue_NULL(x1, x2, x3, x4, x5, x6) -> f10880_0_containsValue_NULL(x3, x4, x5, x6) 31.12/10.46 EOS(x1) -> EOS 31.12/10.46 javaUtilEx.Content(x1) -> javaUtilEx.Content 31.12/10.46 javaUtilEx.HashMap$Entry(x1, x2, x3) -> javaUtilEx.HashMap$Entry(x2, x3) 31.12/10.46 Filtered duplicate arguments: 31.12/10.46 f10880_0_containsValue_NULL(x1, x2, x3, x4) -> f10880_0_containsValue_NULL(x1, x2, x4) 31.12/10.46 Finished conversion. Obtained 4 rules.P rules: 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0)), i4447:0, java.lang.Object(javaUtilEx.HashMap$Entry(NULL, o6680:0)), i4446:0) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0)), i4447:0, o6680:0, i4446:0) :|: i4446:0 > 0 && i4447:0 < i4446:0 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0)), i4447:0, java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(o6738sub:0), o6680:0)), i4446:0) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0)), i4447:0, o6680:0, i4446:0) :|: i4446:0 > 0 && i4447:0 < i4446:0 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0)), i4447:0, java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(javaUtilEx.Content), o6680:0)), i4446:0) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0)), i4447:0, o6680:0, i4446:0) :|: i4446:0 > 0 && i4447:0 < i4446:0 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0)), i4447:0, NULL, i4446:0) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0)), i4447:0 + 1, o6502:0, i4446:0) :|: i4446:0 > -1 && i4447:0 + 1 < i4446:0 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (45) 31.12/10.46 Obligation: 31.12/10.46 Rules: 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0)), i4447:0, java.lang.Object(javaUtilEx.HashMap$Entry(NULL, o6680:0)), i4446:0) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0)), i4447:0, o6680:0, i4446:0) :|: i4446:0 > 0 && i4447:0 < i4446:0 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x)), x1, java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(x2), x3)), x) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x)), x1, x3, x) :|: x > 0 && x1 < x 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x4)), x5, java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(javaUtilEx.Content), x6)), x4) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x4)), x5, x6, x4) :|: x4 > 0 && x5 < x4 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x7)), x8, NULL, x7) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x7)), x8 + 1, x9, x7) :|: x7 > -1 && x8 + 1 < x7 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (46) IRSFormatTransformerProof (EQUIVALENT) 31.12/10.46 Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (47) 31.12/10.46 Obligation: 31.12/10.46 Rules: 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0)), i4447:0, java.lang.Object(javaUtilEx.HashMap$Entry(NULL, o6680:0)), i4446:0) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0)), i4447:0, o6680:0, i4446:0) :|: i4446:0 > 0 && i4447:0 < i4446:0 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x)), x1, java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(x2), x3)), x) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x)), x1, x3, x) :|: x > 0 && x1 < x 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x4)), x5, java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(javaUtilEx.Content), x6)), x4) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x4)), x5, x6, x4) :|: x4 > 0 && x5 < x4 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x7)), x8, NULL, x7) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x7)), arith, x9, x7) :|: x7 > -1 && x8 + 1 < x7 && arith = x8 + 1 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (48) IRSwTTerminationDigraphProof (EQUIVALENT) 31.12/10.46 Constructed termination digraph! 31.12/10.46 Nodes: 31.12/10.46 (1) f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0)), i4447:0, java.lang.Object(javaUtilEx.HashMap$Entry(NULL, o6680:0)), i4446:0) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0)), i4447:0, o6680:0, i4446:0) :|: i4446:0 > 0 && i4447:0 < i4446:0 31.12/10.46 (2) f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x)), x1, java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(x2), x3)), x) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x)), x1, x3, x) :|: x > 0 && x1 < x 31.12/10.46 (3) f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x4)), x5, java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(javaUtilEx.Content), x6)), x4) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x4)), x5, x6, x4) :|: x4 > 0 && x5 < x4 31.12/10.46 (4) f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x7)), x8, NULL, x7) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x7)), arith, x9, x7) :|: x7 > -1 && x8 + 1 < x7 && arith = x8 + 1 31.12/10.46 31.12/10.46 Arcs: 31.12/10.46 (1) -> (1), (2), (3), (4) 31.12/10.46 (2) -> (1), (2), (3), (4) 31.12/10.46 (3) -> (1), (2), (3), (4) 31.12/10.46 (4) -> (1), (2), (3), (4) 31.12/10.46 31.12/10.46 This digraph is fully evaluated! 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (49) 31.12/10.46 Obligation: 31.12/10.46 31.12/10.46 Termination digraph: 31.12/10.46 Nodes: 31.12/10.46 (1) f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0)), i4447:0, java.lang.Object(javaUtilEx.HashMap$Entry(NULL, o6680:0)), i4446:0) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0)), i4447:0, o6680:0, i4446:0) :|: i4446:0 > 0 && i4447:0 < i4446:0 31.12/10.46 (2) f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x)), x1, java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(x2), x3)), x) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x)), x1, x3, x) :|: x > 0 && x1 < x 31.12/10.46 (3) f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x4)), x5, java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(javaUtilEx.Content), x6)), x4) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x4)), x5, x6, x4) :|: x4 > 0 && x5 < x4 31.12/10.46 (4) f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x7)), x8, NULL, x7) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x7)), arith, x9, x7) :|: x7 > -1 && x8 + 1 < x7 && arith = x8 + 1 31.12/10.46 31.12/10.46 Arcs: 31.12/10.46 (1) -> (1), (2), (3), (4) 31.12/10.46 (2) -> (1), (2), (3), (4) 31.12/10.46 (3) -> (1), (2), (3), (4) 31.12/10.46 (4) -> (1), (2), (3), (4) 31.12/10.46 31.12/10.46 This digraph is fully evaluated! 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (50) IntTRSCompressionProof (EQUIVALENT) 31.12/10.46 Compressed rules. 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (51) 31.12/10.46 Obligation: 31.12/10.46 Rules: 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x7:0)), x8:0, NULL, x7:0) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x7:0)), x8:0 + 1, x9:0, x7:0) :|: x7:0 > -1 && x8:0 + 1 < x7:0 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x4:0)), x5:0, java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(javaUtilEx.Content), x6:0)), x4:0) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x4:0)), x5:0, x6:0, x4:0) :|: x4:0 > 0 && x5:0 < x4:0 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0:0)), i4447:0:0, java.lang.Object(javaUtilEx.HashMap$Entry(NULL, o6680:0:0)), i4446:0:0) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0:0)), i4447:0:0, o6680:0:0, i4446:0:0) :|: i4446:0:0 > 0 && i4447:0:0 < i4446:0:0 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x:0)), x1:0, java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(x2:0), x3:0)), x:0) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x:0)), x1:0, x3:0, x:0) :|: x:0 > 0 && x:0 > x1:0 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (52) TempFilterProof (SOUND) 31.12/10.46 Used the following sort dictionary for filtering: 31.12/10.46 f10880_0_containsValue_NULL(VARIABLE, INTEGER, VARIABLE, INTEGER) 31.12/10.46 java.lang.Object(VARIABLE) 31.12/10.46 ARRAY(INTEGER) 31.12/10.46 NULL() 31.12/10.46 javaUtilEx.HashMap$Entry(VARIABLE, VARIABLE) 31.12/10.46 javaUtilEx.Content() 31.12/10.46 Replaced non-predefined constructor symbols by 0.The following proof was generated: 31.12/10.46 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 31.12/10.46 31.12/10.46 31.12/10.46 Termination of the given IntTRS could not be shown: 31.12/10.46 31.12/10.46 31.12/10.46 31.12/10.46 - IntTRS 31.12/10.46 - PolynomialOrderProcessor 31.12/10.46 31.12/10.46 Rules: 31.12/10.46 f10880_0_containsValue_NULL(c, x8:0, c1, x7:0) -> f10880_0_containsValue_NULL(c2, c3, x9:0, x7:0) :|: c3 = x8:0 + 1 && (c2 = 0 && (c1 = 0 && c = 0)) && (x7:0 > -1 && x8:0 + 1 < x7:0) 31.12/10.46 f10880_0_containsValue_NULL(c4, x5:0, c5, x4:0) -> f10880_0_containsValue_NULL(c6, x5:0, x6:0, x4:0) :|: c6 = 0 && (c5 = 0 && c4 = 0) && (x4:0 > 0 && x5:0 < x4:0) 31.12/10.46 f10880_0_containsValue_NULL(c10, x1:0, c11, x:0) -> f10880_0_containsValue_NULL(c12, x1:0, x3:0, x:0) :|: c12 = 0 && (c11 = 0 && c10 = 0) && (x:0 > 0 && x:0 > x1:0) 31.12/10.46 31.12/10.46 Found the following polynomial interpretation: 31.12/10.46 [f10880_0_containsValue_NULL(x, x1, x2, x3)] = c*x - x1 + x3 31.12/10.46 31.12/10.46 The following rules are decreasing: 31.12/10.46 f10880_0_containsValue_NULL(c, x8:0, c1, x7:0) -> f10880_0_containsValue_NULL(c2, c3, x9:0, x7:0) :|: c3 = x8:0 + 1 && (c2 = 0 && (c1 = 0 && c = 0)) && (x7:0 > -1 && x8:0 + 1 < x7:0) 31.12/10.46 The following rules are bounded: 31.12/10.46 f10880_0_containsValue_NULL(c, x8:0, c1, x7:0) -> f10880_0_containsValue_NULL(c2, c3, x9:0, x7:0) :|: c3 = x8:0 + 1 && (c2 = 0 && (c1 = 0 && c = 0)) && (x7:0 > -1 && x8:0 + 1 < x7:0) 31.12/10.46 f10880_0_containsValue_NULL(c4, x5:0, c5, x4:0) -> f10880_0_containsValue_NULL(c6, x5:0, x6:0, x4:0) :|: c6 = 0 && (c5 = 0 && c4 = 0) && (x4:0 > 0 && x5:0 < x4:0) 31.12/10.46 f10880_0_containsValue_NULL(c10, x1:0, c11, x:0) -> f10880_0_containsValue_NULL(c12, x1:0, x3:0, x:0) :|: c12 = 0 && (c11 = 0 && c10 = 0) && (x:0 > 0 && x:0 > x1:0) 31.12/10.46 31.12/10.46 31.12/10.46 - IntTRS 31.12/10.46 - PolynomialOrderProcessor 31.12/10.46 - IntTRS 31.12/10.46 31.12/10.46 Rules: 31.12/10.46 f10880_0_containsValue_NULL(c4, x5:0, c5, x4:0) -> f10880_0_containsValue_NULL(c6, x5:0, x6:0, x4:0) :|: c6 = 0 && (c5 = 0 && c4 = 0) && (x4:0 > 0 && x5:0 < x4:0) 31.12/10.46 f10880_0_containsValue_NULL(c10, x1:0, c11, x:0) -> f10880_0_containsValue_NULL(c12, x1:0, x3:0, x:0) :|: c12 = 0 && (c11 = 0 && c10 = 0) && (x:0 > 0 && x:0 > x1:0) 31.12/10.46 31.12/10.46 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (53) 31.12/10.46 Obligation: 31.12/10.46 Rules: 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x4:0)), x5:0, java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(javaUtilEx.Content), x6:0)), x4:0) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x4:0)), x5:0, x6:0, x4:0) :|: x4:0 > 0 && x5:0 < x4:0 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0:0)), i4447:0:0, java.lang.Object(javaUtilEx.HashMap$Entry(NULL, o6680:0:0)), i4446:0:0) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0:0)), i4447:0:0, o6680:0:0, i4446:0:0) :|: i4446:0:0 > 0 && i4447:0:0 < i4446:0:0 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x:0)), x1:0, java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(x2:0), x3:0)), x:0) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x:0)), x1:0, x3:0, x:0) :|: x:0 > 0 && x:0 > x1:0 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (54) IRSwTTerminationDigraphProof (EQUIVALENT) 31.12/10.46 Constructed termination digraph! 31.12/10.46 Nodes: 31.12/10.46 (1) f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x4:0)), x5:0, java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(javaUtilEx.Content), x6:0)), x4:0) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x4:0)), x5:0, x6:0, x4:0) :|: x4:0 > 0 && x5:0 < x4:0 31.12/10.46 (2) f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0:0)), i4447:0:0, java.lang.Object(javaUtilEx.HashMap$Entry(NULL, o6680:0:0)), i4446:0:0) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0:0)), i4447:0:0, o6680:0:0, i4446:0:0) :|: i4446:0:0 > 0 && i4447:0:0 < i4446:0:0 31.12/10.46 (3) f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x:0)), x1:0, java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(x2:0), x3:0)), x:0) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x:0)), x1:0, x3:0, x:0) :|: x:0 > 0 && x:0 > x1:0 31.12/10.46 31.12/10.46 Arcs: 31.12/10.46 (1) -> (1), (2), (3) 31.12/10.46 (2) -> (1), (2), (3) 31.12/10.46 (3) -> (1), (2), (3) 31.12/10.46 31.12/10.46 This digraph is fully evaluated! 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (55) 31.12/10.46 Obligation: 31.12/10.46 31.12/10.46 Termination digraph: 31.12/10.46 Nodes: 31.12/10.46 (1) f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x4:0)), x5:0, java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(javaUtilEx.Content), x6:0)), x4:0) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x4:0)), x5:0, x6:0, x4:0) :|: x4:0 > 0 && x5:0 < x4:0 31.12/10.46 (2) f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0:0)), i4447:0:0, java.lang.Object(javaUtilEx.HashMap$Entry(NULL, o6680:0:0)), i4446:0:0) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(i4446:0:0)), i4447:0:0, o6680:0:0, i4446:0:0) :|: i4446:0:0 > 0 && i4447:0:0 < i4446:0:0 31.12/10.46 (3) f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x:0)), x1:0, java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(x2:0), x3:0)), x:0) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY(x:0)), x1:0, x3:0, x:0) :|: x:0 > 0 && x:0 > x1:0 31.12/10.46 31.12/10.46 Arcs: 31.12/10.46 (1) -> (1), (2), (3) 31.12/10.46 (2) -> (1), (2), (3) 31.12/10.46 (3) -> (1), (2), (3) 31.12/10.46 31.12/10.46 This digraph is fully evaluated! 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (56) TempFilterProof (SOUND) 31.12/10.46 Used the following sort dictionary for filtering: 31.12/10.46 f10880_0_containsValue_NULL(VARIABLE, INTEGER, VARIABLE, INTEGER) 31.12/10.46 java.lang.Object(VARIABLE) 31.12/10.46 ARRAY(INTEGER) 31.12/10.46 javaUtilEx.HashMap$Entry(VARIABLE, VARIABLE) 31.12/10.46 javaUtilEx.Content() 31.12/10.46 NULL() 31.12/10.46 Removed predefined arithmetic. 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (57) 31.12/10.46 Obligation: 31.12/10.46 Rules: 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY), java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(javaUtilEx.Content), x6:0))) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY), x6:0) 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY), java.lang.Object(javaUtilEx.HashMap$Entry(NULL, o6680:0:0))) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY), o6680:0:0) 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY), java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(x2:0), x3:0))) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY), x3:0) 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (58) IRSwTToQDPProof (SOUND) 31.12/10.46 Removed the integers and created a QDP-Problem. 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (59) 31.12/10.46 Obligation: 31.12/10.46 Q DP problem: 31.12/10.46 The TRS P consists of the following rules: 31.12/10.46 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY), java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(javaUtilEx.Content), x6:0))) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY), x6:0) 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY), java.lang.Object(javaUtilEx.HashMap$Entry(NULL, o6680:0:0))) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY), o6680:0:0) 31.12/10.46 f10880_0_containsValue_NULL(java.lang.Object(ARRAY), java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(x2:0), x3:0))) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY), x3:0) 31.12/10.46 31.12/10.46 R is empty. 31.12/10.46 Q is empty. 31.12/10.46 We have to consider all (P,Q,R)-chains. 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (60) QDPSizeChangeProof (EQUIVALENT) 31.12/10.46 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. 31.12/10.46 31.12/10.46 From the DPs we obtained the following set of size-change graphs: 31.12/10.46 *f10880_0_containsValue_NULL(java.lang.Object(ARRAY), java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(javaUtilEx.Content), x6:0))) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY), x6:0) 31.12/10.46 The graph contains the following edges 1 >= 1, 2 > 2 31.12/10.46 31.12/10.46 31.12/10.46 *f10880_0_containsValue_NULL(java.lang.Object(ARRAY), java.lang.Object(javaUtilEx.HashMap$Entry(NULL, o6680:0:0))) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY), o6680:0:0) 31.12/10.46 The graph contains the following edges 1 >= 1, 2 > 2 31.12/10.46 31.12/10.46 31.12/10.46 *f10880_0_containsValue_NULL(java.lang.Object(ARRAY), java.lang.Object(javaUtilEx.HashMap$Entry(java.lang.Object(x2:0), x3:0))) -> f10880_0_containsValue_NULL(java.lang.Object(ARRAY), x3:0) 31.12/10.46 The graph contains the following edges 1 >= 1, 2 > 2 31.12/10.46 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (61) 31.12/10.46 YES 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (62) 31.12/10.46 Obligation: 31.12/10.46 SCC of termination graph based on JBC Program. 31.12/10.46 SCC contains nodes from the following methods: javaUtilEx.juHashMapCreateContainsValue.createMap(I)LjavaUtilEx/HashMap; 31.12/10.46 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 31.12/10.46 Performed SCC analyses: 31.12/10.46 *Used field analysis yielded the following read fields: 31.12/10.46 *java.lang.String: [count] 31.12/10.46 *Marker field analysis yielded the following relations that could be markers: 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (63) SCCToIRSProof (SOUND) 31.12/10.46 Transformed FIGraph SCCs to intTRSs. Log: 31.12/10.46 Generated rules. Obtained 81 IRulesP rules: 31.12/10.46 f10256_0_createMap_LE(EOS(STATIC_10256(java.lang.Object(o6175sub), i4059)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4078) -> f10260_0_createMap_LE(EOS(STATIC_10260(java.lang.Object(o6175sub), i4059)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4078) :|: TRUE 31.12/10.46 f10260_0_createMap_LE(EOS(STATIC_10260(java.lang.Object(o6175sub), i4059)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4078) -> f10265_0_createMap_New(EOS(STATIC_10265(java.lang.Object(o6175sub), i4059)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: i4078 > 0 31.12/10.46 f10265_0_createMap_New(EOS(STATIC_10265(java.lang.Object(o6175sub), i4059)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f10270_0_createMap_Duplicate(EOS(STATIC_10270(java.lang.Object(o6175sub), i4059)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 31.12/10.46 f10270_0_createMap_Duplicate(EOS(STATIC_10270(java.lang.Object(o6175sub), i4059)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) -> f10274_0_createMap_InvokeMethod(EOS(STATIC_10274(java.lang.Object(o6175sub), i4059)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 31.12/10.46 f10274_0_createMap_InvokeMethod(EOS(STATIC_10274(java.lang.Object(o6175sub), i4059)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f10278_0_random_FieldAccess(EOS(STATIC_10278(java.lang.Object(o6175sub), i4059)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 31.12/10.46 f10278_0_random_FieldAccess(EOS(STATIC_10278(java.lang.Object(o6175sub), i4059)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f10288_0_random_FieldAccess(EOS(STATIC_10288(java.lang.Object(o6175sub), i4059)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6175sub)) :|: TRUE 31.12/10.46 f10288_0_random_FieldAccess(EOS(STATIC_10288(java.lang.Object(o6175sub), i4059)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6175sub)) -> f10293_0_random_ArrayAccess(EOS(STATIC_10293(java.lang.Object(o6175sub), i4059)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6175sub), i4059) :|: TRUE 31.12/10.46 f10293_0_random_ArrayAccess(EOS(STATIC_10293(java.lang.Object(ARRAY(i4106)), i4059)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4106)), i4059) -> f10298_0_random_ArrayAccess(EOS(STATIC_10298(java.lang.Object(ARRAY(i4106)), i4059)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4106)), i4059) :|: i4106 >= 0 31.12/10.46 f10298_0_random_ArrayAccess(EOS(STATIC_10298(java.lang.Object(ARRAY(i4106)), i4108)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4106)), i4108) -> f10304_0_random_ArrayAccess(EOS(STATIC_10304(java.lang.Object(ARRAY(i4106)), i4108)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4106)), i4108) :|: TRUE 31.12/10.46 f10304_0_random_ArrayAccess(EOS(STATIC_10304(java.lang.Object(ARRAY(i4106)), i4108)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4106)), i4108) -> f10311_0_random_ArrayAccess(EOS(STATIC_10311(java.lang.Object(ARRAY(i4106)), i4108)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4106)), i4108) :|: TRUE 31.12/10.46 f10311_0_random_ArrayAccess(EOS(STATIC_10311(java.lang.Object(ARRAY(i4106)), i4108)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(ARRAY(i4106)), i4108) -> f10317_0_random_Store(EOS(STATIC_10317(java.lang.Object(ARRAY(i4106)), i4108)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o6207) :|: i4108 < i4106 31.12/10.46 f10317_0_random_Store(EOS(STATIC_10317(java.lang.Object(ARRAY(i4106)), i4108)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o6207) -> f10322_0_random_FieldAccess(EOS(STATIC_10322(java.lang.Object(ARRAY(i4106)), i4108)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o6207) :|: TRUE 31.12/10.46 f10322_0_random_FieldAccess(EOS(STATIC_10322(java.lang.Object(ARRAY(i4106)), i4108)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o6207) -> f10328_0_random_ConstantStackPush(EOS(STATIC_10328(java.lang.Object(ARRAY(i4106)), i4108)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o6207, i4108) :|: TRUE 31.12/10.46 f10328_0_random_ConstantStackPush(EOS(STATIC_10328(java.lang.Object(ARRAY(i4106)), i4108)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o6207, i4108) -> f10334_0_random_IntArithmetic(EOS(STATIC_10334(java.lang.Object(ARRAY(i4106)), i4108)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o6207, i4108, 1) :|: TRUE 31.12/10.46 f10334_0_random_IntArithmetic(EOS(STATIC_10334(java.lang.Object(ARRAY(i4106)), i4108)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o6207, i4108, matching1) -> f10341_0_random_FieldAccess(EOS(STATIC_10341(java.lang.Object(ARRAY(i4106)), i4108)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o6207, i4108 + 1) :|: i4108 >= 0 && matching1 = 1 31.12/10.46 f10341_0_random_FieldAccess(EOS(STATIC_10341(java.lang.Object(ARRAY(i4106)), i4108)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o6207, i4117) -> f10350_0_random_Load(EOS(STATIC_10350(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o6207) :|: TRUE 31.12/10.46 f10350_0_random_Load(EOS(STATIC_10350(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o6207) -> f10358_0_random_InvokeMethod(EOS(STATIC_10358(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), o6207) :|: TRUE 31.12/10.46 f10358_0_random_InvokeMethod(EOS(STATIC_10358(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6225sub)) -> f10364_0_random_InvokeMethod(EOS(STATIC_10364(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6225sub)) :|: TRUE 31.12/10.46 f10364_0_random_InvokeMethod(EOS(STATIC_10364(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6233sub)) -> f10373_0_random_InvokeMethod(EOS(STATIC_10373(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6233sub)) :|: TRUE 31.12/10.46 f10373_0_random_InvokeMethod(EOS(STATIC_10373(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6233sub)) -> f10381_0_length_Load(EOS(STATIC_10381(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6233sub)) :|: TRUE 31.12/10.46 f10381_0_length_Load(EOS(STATIC_10381(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6233sub)) -> f10397_0_length_FieldAccess(EOS(STATIC_10397(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(o6233sub)) :|: TRUE 31.12/10.46 f10397_0_length_FieldAccess(EOS(STATIC_10397(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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, i4137))) -> f10405_0_length_FieldAccess(EOS(STATIC_10405(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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, i4137))) :|: i4137 >= 0 31.12/10.46 f10405_0_length_FieldAccess(EOS(STATIC_10405(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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, i4137))) -> f10412_0_length_Return(EOS(STATIC_10412(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i4137) :|: TRUE 31.12/10.46 f10412_0_length_Return(EOS(STATIC_10412(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i4137) -> f10421_0_random_Return(EOS(STATIC_10421(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i4137) :|: TRUE 31.12/10.46 f10421_0_random_Return(EOS(STATIC_10421(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i4137) -> f10429_0_createMap_InvokeMethod(EOS(STATIC_10429(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i4137) :|: TRUE 31.12/10.46 f10429_0_createMap_InvokeMethod(EOS(STATIC_10429(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i4137) -> f10435_0__init__Load(EOS(STATIC_10435(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i4137) :|: TRUE 31.12/10.46 f10435_0__init__Load(EOS(STATIC_10435(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i4137) -> f10452_0__init__InvokeMethod(EOS(STATIC_10452(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i4137, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 31.12/10.46 f10452_0__init__InvokeMethod(EOS(STATIC_10452(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i4137, java.lang.Object(javaUtilEx.Content(EOC))) -> f10459_0__init__Load(EOS(STATIC_10459(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i4137) :|: TRUE 31.12/10.46 f10459_0__init__Load(EOS(STATIC_10459(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i4137) -> f10469_0__init__Load(EOS(STATIC_10469(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4137, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 31.12/10.46 f10469_0__init__Load(EOS(STATIC_10469(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), i4137, java.lang.Object(javaUtilEx.Content(EOC))) -> f10478_0__init__FieldAccess(EOS(STATIC_10478(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i4137) :|: TRUE 31.12/10.46 f10478_0__init__FieldAccess(EOS(STATIC_10478(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i4137) -> f10488_0__init__Return(EOS(STATIC_10488(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 31.12/10.46 f10488_0__init__Return(EOS(STATIC_10488(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) -> f10497_0_createMap_Store(EOS(STATIC_10497(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 31.12/10.46 f10497_0_createMap_Store(EOS(STATIC_10497(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) -> f10506_0_createMap_New(EOS(STATIC_10506(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 31.12/10.46 f10506_0_createMap_New(EOS(STATIC_10506(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC))) -> f10516_0_createMap_Duplicate(EOS(STATIC_10516(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 31.12/10.46 f10516_0_createMap_Duplicate(EOS(STATIC_10516(java.lang.Object(ARRAY(i4106)), i4117)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f10526_0_createMap_InvokeMethod(EOS(STATIC_10526(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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 31.12/10.46 f10526_0_createMap_InvokeMethod(EOS(STATIC_10526(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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))) -> f10536_0_random_FieldAccess(EOS(STATIC_10536(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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 31.12/10.46 f10536_0_random_FieldAccess(EOS(STATIC_10536(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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))) -> f10553_0_random_FieldAccess(EOS(STATIC_10553(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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(i4106))) :|: TRUE 31.12/10.46 f10553_0_random_FieldAccess(EOS(STATIC_10553(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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(i4106))) -> f10561_0_random_ArrayAccess(EOS(STATIC_10561(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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(i4106)), i4117) :|: TRUE 31.12/10.46 f10561_0_random_ArrayAccess(EOS(STATIC_10561(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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(i4106)), i4117) -> f10569_0_random_ArrayAccess(EOS(STATIC_10569(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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(i4106)), i4117) :|: TRUE 31.12/10.46 f10569_0_random_ArrayAccess(EOS(STATIC_10569(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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(i4106)), i4117) -> f10577_0_random_Store(EOS(STATIC_10577(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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)), o6378) :|: i4117 < i4106 31.12/10.46 f10577_0_random_Store(EOS(STATIC_10577(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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)), o6378) -> f10585_0_random_FieldAccess(EOS(STATIC_10585(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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)), o6378) :|: TRUE 31.12/10.46 f10585_0_random_FieldAccess(EOS(STATIC_10585(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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)), o6378) -> f10589_0_random_ConstantStackPush(EOS(STATIC_10589(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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)), o6378, i4117) :|: TRUE 31.12/10.46 f10589_0_random_ConstantStackPush(EOS(STATIC_10589(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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)), o6378, i4117) -> f10595_0_random_IntArithmetic(EOS(STATIC_10595(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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)), o6378, i4117, 1) :|: TRUE 31.12/10.46 f10595_0_random_IntArithmetic(EOS(STATIC_10595(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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)), o6378, i4117, matching1) -> f10599_0_random_FieldAccess(EOS(STATIC_10599(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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)), o6378, i4117 + 1) :|: i4117 > 0 && matching1 = 1 31.12/10.46 f10599_0_random_FieldAccess(EOS(STATIC_10599(java.lang.Object(ARRAY(i4106)), i4117)), i4078, 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)), o6378, i4306) -> f10602_0_random_Load(EOS(STATIC_10602(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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)), o6378) :|: TRUE 31.12/10.46 f10602_0_random_Load(EOS(STATIC_10602(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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)), o6378) -> f10606_0_random_InvokeMethod(EOS(STATIC_10606(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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)), o6378) :|: TRUE 31.12/10.46 f10606_0_random_InvokeMethod(EOS(STATIC_10606(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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(o6404sub)) -> f10609_0_random_InvokeMethod(EOS(STATIC_10609(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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(o6404sub)) :|: TRUE 31.12/10.46 f10609_0_random_InvokeMethod(EOS(STATIC_10609(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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(o6405sub)) -> f10612_0_random_InvokeMethod(EOS(STATIC_10612(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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(o6405sub)) :|: TRUE 31.12/10.46 f10612_0_random_InvokeMethod(EOS(STATIC_10612(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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(o6405sub)) -> f10616_0_length_Load(EOS(STATIC_10616(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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(o6405sub)) :|: TRUE 31.12/10.46 f10616_0_length_Load(EOS(STATIC_10616(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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(o6405sub)) -> f10621_0_length_FieldAccess(EOS(STATIC_10621(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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(o6405sub)) :|: TRUE 31.12/10.46 f10621_0_length_FieldAccess(EOS(STATIC_10621(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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, i4319))) -> f10625_0_length_FieldAccess(EOS(STATIC_10625(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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, i4319))) :|: i4319 >= 0 31.12/10.46 f10625_0_length_FieldAccess(EOS(STATIC_10625(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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, i4319))) -> f10629_0_length_Return(EOS(STATIC_10629(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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)), i4319) :|: TRUE 31.12/10.46 f10629_0_length_Return(EOS(STATIC_10629(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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)), i4319) -> f10633_0_random_Return(EOS(STATIC_10633(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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)), i4319) :|: TRUE 31.12/10.46 f10633_0_random_Return(EOS(STATIC_10633(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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)), i4319) -> f10638_0_createMap_InvokeMethod(EOS(STATIC_10638(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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)), i4319) :|: TRUE 31.12/10.46 f10638_0_createMap_InvokeMethod(EOS(STATIC_10638(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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)), i4319) -> f10642_0__init__Load(EOS(STATIC_10642(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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)), i4319) :|: TRUE 31.12/10.46 f10642_0__init__Load(EOS(STATIC_10642(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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)), i4319) -> f10650_0__init__InvokeMethod(EOS(STATIC_10650(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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)), i4319, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 31.12/10.46 f10650_0__init__InvokeMethod(EOS(STATIC_10650(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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)), i4319, java.lang.Object(javaUtilEx.Content(EOC))) -> f10654_0__init__Load(EOS(STATIC_10654(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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)), i4319) :|: TRUE 31.12/10.46 f10654_0__init__Load(EOS(STATIC_10654(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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)), i4319) -> f10660_0__init__Load(EOS(STATIC_10660(java.lang.Object(ARRAY(i4106)), i4306)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i4319, java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 31.12/10.46 f10660_0__init__Load(EOS(STATIC_10660(java.lang.Object(ARRAY(i4106)), i4306)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC)), i4319, java.lang.Object(javaUtilEx.Content(EOC))) -> f10666_0__init__FieldAccess(EOS(STATIC_10666(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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)), i4319) :|: TRUE 31.12/10.46 f10666_0__init__FieldAccess(EOS(STATIC_10666(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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)), i4319) -> f10671_0__init__Return(EOS(STATIC_10671(java.lang.Object(ARRAY(i4106)), i4306)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 31.12/10.46 f10671_0__init__Return(EOS(STATIC_10671(java.lang.Object(ARRAY(i4106)), i4306)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f10677_0_createMap_Store(EOS(STATIC_10677(java.lang.Object(ARRAY(i4106)), i4306)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 31.12/10.46 f10677_0_createMap_Store(EOS(STATIC_10677(java.lang.Object(ARRAY(i4106)), i4306)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f10681_0_createMap_Load(EOS(STATIC_10681(java.lang.Object(ARRAY(i4106)), i4306)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) :|: TRUE 31.12/10.46 f10681_0_createMap_Load(EOS(STATIC_10681(java.lang.Object(ARRAY(i4106)), i4306)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), java.lang.Object(javaUtilEx.Content(EOC)), java.lang.Object(javaUtilEx.Content(EOC))) -> f10685_0_createMap_Load(EOS(STATIC_10685(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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 31.12/10.46 f10685_0_createMap_Load(EOS(STATIC_10685(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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)))) -> f10689_0_createMap_Load(EOS(STATIC_10689(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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 31.12/10.46 f10689_0_createMap_Load(EOS(STATIC_10689(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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))) -> f10694_0_createMap_InvokeMethod(EOS(STATIC_10694(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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 31.12/10.46 f10694_0_createMap_InvokeMethod(EOS(STATIC_10694(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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))) -> f10699_0_put_Load(EOS(STATIC_10699(java.lang.Object(ARRAY(i4106)), i4306)), 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))) :|: i4079 >= 1 && i4078 >= 1 && i4306 > 1 && i4079 >= i4078 31.12/10.46 f10694_0_createMap_InvokeMethod(EOS(STATIC_10694(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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))) -> f10699_1_put_Load(EOS(STATIC_10699(java.lang.Object(ARRAY(i4106)), i4306)), i4078, 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))) :|: i4079 >= 1 && i4078 >= 1 && i4306 > 1 && i4079 >= i4078 31.12/10.46 f10699_0_put_Load(EOS(STATIC_10699(java.lang.Object(ARRAY(i4106)), i4306)), 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))) -> f12340_0_put_Load(EOS(STATIC_12340(java.lang.Object(ARRAY(i4106)), i4306)), 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 31.12/10.46 f11117_0_put_Return(EOS(STATIC_11117(java.lang.Object(ARRAY(i4773)), i4775)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f11120_0_createMap_StackPop(EOS(STATIC_11120(java.lang.Object(ARRAY(i4773)), i4775)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 31.12/10.46 f11120_0_createMap_StackPop(EOS(STATIC_11120(java.lang.Object(ARRAY(i4773)), i4775)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f11123_0_createMap_Inc(EOS(STATIC_11123(java.lang.Object(ARRAY(i4773)), i4775)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 31.12/10.46 f11123_0_createMap_Inc(EOS(STATIC_11123(java.lang.Object(ARRAY(i4773)), i4775)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f11126_0_createMap_JMP(EOS(STATIC_11126(java.lang.Object(ARRAY(i4773)), i4775)), i4078 + -1, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 31.12/10.46 f11126_0_createMap_JMP(EOS(STATIC_11126(java.lang.Object(ARRAY(i4773)), i4775)), i4776, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f11129_0_createMap_Load(EOS(STATIC_11129(java.lang.Object(ARRAY(i4773)), i4775)), i4776, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 31.12/10.46 f11129_0_createMap_Load(EOS(STATIC_11129(java.lang.Object(ARRAY(i4773)), i4775)), i4776, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f10253_0_createMap_Load(EOS(STATIC_10253(java.lang.Object(ARRAY(i4773)), i4775)), i4776, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 31.12/10.46 f10253_0_createMap_Load(EOS(STATIC_10253(java.lang.Object(o6175sub), i4059)), i4061, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f10256_0_createMap_LE(EOS(STATIC_10256(java.lang.Object(o6175sub), i4059)), i4061, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4061) :|: TRUE 31.12/10.46 f11173_0_put_Return(EOS(STATIC_11173(java.lang.Object(ARRAY(i4808)), i4810)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) -> f11176_0_createMap_StackPop(EOS(STATIC_11176(java.lang.Object(ARRAY(i4808)), i4810)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) :|: TRUE 31.12/10.46 f11176_0_createMap_StackPop(EOS(STATIC_11176(java.lang.Object(ARRAY(i4808)), i4810)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) -> f11179_0_createMap_Inc(EOS(STATIC_11179(java.lang.Object(ARRAY(i4808)), i4810)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 31.12/10.46 f11179_0_createMap_Inc(EOS(STATIC_11179(java.lang.Object(ARRAY(i4808)), i4810)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) -> f11123_0_createMap_Inc(EOS(STATIC_11123(java.lang.Object(ARRAY(i4808)), i4810)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 31.12/10.46 f11613_0_put_Return(EOS(STATIC_11613(java.lang.Object(ARRAY(i5009)), i5011)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) -> f11173_0_put_Return(EOS(STATIC_11173(java.lang.Object(ARRAY(i5009)), i5011)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) :|: TRUE 31.12/10.46 f10699_1_put_Load(EOS(STATIC_10699(java.lang.Object(ARRAY(i4773)), i4775)), i4078, 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))) -> f11117_0_put_Return(EOS(STATIC_11117(java.lang.Object(ARRAY(i4773)), i4775)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC)))) :|: TRUE 31.12/10.46 f10699_1_put_Load(EOS(STATIC_10699(java.lang.Object(ARRAY(i4808)), i4810)), i4078, 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))) -> f11173_0_put_Return(EOS(STATIC_11173(java.lang.Object(ARRAY(i4808)), i4810)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) :|: TRUE 31.12/10.46 f10699_1_put_Load(EOS(STATIC_10699(java.lang.Object(ARRAY(i5009)), i5011)), i4078, 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))) -> f11613_0_put_Return(EOS(STATIC_11613(java.lang.Object(ARRAY(i5009)), i5011)), i4078, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), NULL) :|: TRUE 31.12/10.46 Combined rules. Obtained 2 IRulesP rules: 31.12/10.46 f10256_0_createMap_LE(EOS(STATIC_10256(java.lang.Object(ARRAY(i4106:0)), i4059:0)), i4078:0, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4078:0) -> f10256_0_createMap_LE(EOS(STATIC_10256(java.lang.Object(ARRAY(i4106:0)), i4059:0 + 2)), i4078:0 - 1, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4078:0 - 1) :|: i4106:0 > i4059:0 + 1 && i4078:0 > 0 && i4106:0 > -1 && i4059:0 > -1 && i4137:0 > -1 && i4319:0 > -1 && i4079:0 > 0 && i4079:0 >= i4078:0 31.12/10.46 Removed following non-SCC rules: 31.12/10.46 f10256_0_createMap_LE(EOS(STATIC_10256(java.lang.Object(ARRAY(i4106:0)), i4059:0)), i4078:0, java.lang.Object(javaUtilEx.AbstractMap(javaUtilEx.HashMap(EOC))), i4078:0) -> f12340_0_put_Load(EOS(STATIC_12340(java.lang.Object(ARRAY(i4106:0)), i4059: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))) :|: i4106:0 > i4059:0 + 1 && i4078:0 > 0 && i4106:0 > -1 && i4059:0 > -1 && i4137:0 > -1 && i4319:0 > -1 && i4079:0 > 0 && i4079:0 >= i4078:0 31.12/10.46 Filtered constant ground arguments: 31.12/10.46 f10256_0_createMap_LE(x1, x2, x3, x4) -> f10256_0_createMap_LE(x1, x2, x4) 31.12/10.46 javaUtilEx.AbstractMap(x1) -> javaUtilEx.AbstractMap 31.12/10.46 javaUtilEx.HashMap(x1) -> javaUtilEx.HashMap 31.12/10.46 Filtered duplicate arguments: 31.12/10.46 f10256_0_createMap_LE(x1, x2, x3) -> f10256_0_createMap_LE(x1, x3) 31.12/10.46 Finished conversion. Obtained 1 rules.P rules: 31.12/10.46 f10256_0_createMap_LE(i4078:0, i4106:0, i4059:0) -> f10256_0_createMap_LE(i4078:0 - 1, i4106:0, i4059:0 + 2) :|: i4078:0 > 0 && i4106:0 > i4059:0 + 1 && i4106:0 > -1 && i4059:0 > -1 && i4137:0 > -1 && i4319:0 > -1 && i4079:0 >= i4078:0 && i4079:0 > 0 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (64) 31.12/10.46 Obligation: 31.12/10.46 Rules: 31.12/10.46 f10256_0_createMap_LE(i4078:0, i4106:0, i4059:0) -> f10256_0_createMap_LE(i4078:0 - 1, i4106:0, i4059:0 + 2) :|: i4078:0 > 0 && i4106:0 > i4059:0 + 1 && i4106:0 > -1 && i4059:0 > -1 && i4137:0 > -1 && i4319:0 > -1 && i4079:0 >= i4078:0 && i4079:0 > 0 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (65) IRSFormatTransformerProof (EQUIVALENT) 31.12/10.46 Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (66) 31.12/10.46 Obligation: 31.12/10.46 Rules: 31.12/10.46 f10256_0_createMap_LE(i4078:0, i4106:0, i4059:0) -> f10256_0_createMap_LE(arith, i4106:0, arith1) :|: i4078:0 > 0 && i4106:0 > i4059:0 + 1 && i4106:0 > -1 && i4059:0 > -1 && i4137:0 > -1 && i4319:0 > -1 && i4079:0 >= i4078:0 && i4079:0 > 0 && arith = i4078:0 - 1 && arith1 = i4059:0 + 2 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (67) IRSwTTerminationDigraphProof (EQUIVALENT) 31.12/10.46 Constructed termination digraph! 31.12/10.46 Nodes: 31.12/10.46 (1) f10256_0_createMap_LE(i4078:0, i4106:0, i4059:0) -> f10256_0_createMap_LE(arith, i4106:0, arith1) :|: i4078:0 > 0 && i4106:0 > i4059:0 + 1 && i4106:0 > -1 && i4059:0 > -1 && i4137:0 > -1 && i4319:0 > -1 && i4079:0 >= i4078:0 && i4079:0 > 0 && arith = i4078:0 - 1 && arith1 = i4059:0 + 2 31.12/10.46 31.12/10.46 Arcs: 31.12/10.46 (1) -> (1) 31.12/10.46 31.12/10.46 This digraph is fully evaluated! 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (68) 31.12/10.46 Obligation: 31.12/10.46 31.12/10.46 Termination digraph: 31.12/10.46 Nodes: 31.12/10.46 (1) f10256_0_createMap_LE(i4078:0, i4106:0, i4059:0) -> f10256_0_createMap_LE(arith, i4106:0, arith1) :|: i4078:0 > 0 && i4106:0 > i4059:0 + 1 && i4106:0 > -1 && i4059:0 > -1 && i4137:0 > -1 && i4319:0 > -1 && i4079:0 >= i4078:0 && i4079:0 > 0 && arith = i4078:0 - 1 && arith1 = i4059:0 + 2 31.12/10.46 31.12/10.46 Arcs: 31.12/10.46 (1) -> (1) 31.12/10.46 31.12/10.46 This digraph is fully evaluated! 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (69) IntTRSCompressionProof (EQUIVALENT) 31.12/10.46 Compressed rules. 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (70) 31.12/10.46 Obligation: 31.12/10.46 Rules: 31.12/10.46 f10256_0_createMap_LE(i4078:0:0, i4106:0:0, i4059:0:0) -> f10256_0_createMap_LE(i4078:0:0 - 1, i4106:0:0, i4059:0:0 + 2) :|: i4079:0:0 >= i4078:0:0 && i4079:0:0 > 0 && i4319:0:0 > -1 && i4137:0:0 > -1 && i4059:0:0 > -1 && i4106:0:0 > -1 && i4106:0:0 > i4059:0:0 + 1 && i4078:0:0 > 0 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (71) TempFilterProof (SOUND) 31.12/10.46 Used the following sort dictionary for filtering: 31.12/10.46 f10256_0_createMap_LE(INTEGER, INTEGER, INTEGER) 31.12/10.46 Replaced non-predefined constructor symbols by 0. 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (72) 31.12/10.46 Obligation: 31.12/10.46 Rules: 31.12/10.46 f10256_0_createMap_LE(i4078:0:0, i4106:0:0, i4059:0:0) -> f10256_0_createMap_LE(c, i4106:0:0, c1) :|: c1 = i4059:0:0 + 2 && c = i4078:0:0 - 1 && (i4079:0:0 >= i4078:0:0 && i4079:0:0 > 0 && i4319:0:0 > -1 && i4137:0:0 > -1 && i4059:0:0 > -1 && i4106:0:0 > -1 && i4106:0:0 > i4059:0:0 + 1 && i4078:0:0 > 0) 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (73) PolynomialOrderProcessor (EQUIVALENT) 31.12/10.46 Found the following polynomial interpretation: 31.12/10.46 [f10256_0_createMap_LE(x, x1, x2)] = x 31.12/10.46 31.12/10.46 The following rules are decreasing: 31.12/10.46 f10256_0_createMap_LE(i4078:0:0, i4106:0:0, i4059:0:0) -> f10256_0_createMap_LE(c, i4106:0:0, c1) :|: c1 = i4059:0:0 + 2 && c = i4078:0:0 - 1 && (i4079:0:0 >= i4078:0:0 && i4079:0:0 > 0 && i4319:0:0 > -1 && i4137:0:0 > -1 && i4059:0:0 > -1 && i4106:0:0 > -1 && i4106:0:0 > i4059:0:0 + 1 && i4078:0:0 > 0) 31.12/10.46 The following rules are bounded: 31.12/10.46 f10256_0_createMap_LE(i4078:0:0, i4106:0:0, i4059:0:0) -> f10256_0_createMap_LE(c, i4106:0:0, c1) :|: c1 = i4059:0:0 + 2 && c = i4078:0:0 - 1 && (i4079:0:0 >= i4078:0:0 && i4079:0:0 > 0 && i4319:0:0 > -1 && i4137:0:0 > -1 && i4059:0:0 > -1 && i4106:0:0 > -1 && i4106:0:0 > i4059:0:0 + 1 && i4078:0:0 > 0) 31.12/10.46 31.12/10.46 ---------------------------------------- 31.12/10.46 31.12/10.46 (74) 31.12/10.46 YES 31.16/10.52 EOF