aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/lib/java/util/Collections$7.class
blob: 8f6f01d1a549e9c0e35dc36754a4013173e547da (plain)
ofshex dumpascii
0000 ca fe ba be 00 00 00 31 00 59 07 00 02 01 00 17 6a 61 76 61 2f 75 74 69 6c 2f 43 6f 6c 6c 65 63 .......1.Y......java/util/Collec
0020 74 69 6f 6e 73 24 37 07 00 04 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 07 00 06 tions$7......java/lang/Object...
0040 01 00 13 6a 61 76 61 2f 75 74 69 6c 2f 4d 61 70 24 45 6e 74 72 79 01 00 06 74 68 69 73 24 33 01 ...java/util/Map$Entry...this$3.
0060 00 19 4c 6a 61 76 61 2f 75 74 69 6c 2f 43 6f 6c 6c 65 63 74 69 6f 6e 73 24 36 3b 01 00 05 76 61 ..Ljava/util/Collections$6;...va
0080 6c 24 65 01 00 15 4c 6a 61 76 61 2f 75 74 69 6c 2f 4d 61 70 24 45 6e 74 72 79 3b 01 00 06 3c 69 l$e...Ljava/util/Map$Entry;...<i
00a0 6e 69 74 3e 01 00 31 28 4c 6a 61 76 61 2f 75 74 69 6c 2f 43 6f 6c 6c 65 63 74 69 6f 6e 73 24 36 nit>..1(Ljava/util/Collections$6
00c0 3b 4c 6a 61 76 61 2f 75 74 69 6c 2f 4d 61 70 24 45 6e 74 72 79 3b 29 56 01 00 04 43 6f 64 65 09 ;Ljava/util/Map$Entry;)V...Code.
00e0 00 01 00 0f 0c 00 07 00 08 09 00 01 00 11 0c 00 09 00 0a 0a 00 03 00 13 0c 00 0b 00 14 01 00 03 ................................
0100 28 29 56 01 00 0f 4c 69 6e 65 4e 75 6d 62 65 72 54 61 62 6c 65 01 00 12 4c 6f 63 61 6c 56 61 72 ()V...LineNumberTable...LocalVar
0120 69 61 62 6c 65 54 61 62 6c 65 01 00 04 74 68 69 73 01 00 19 4c 6a 61 76 61 2f 75 74 69 6c 2f 43 iableTable...this...Ljava/util/C
0140 6f 6c 6c 65 63 74 69 6f 6e 73 24 37 3b 01 00 06 65 71 75 61 6c 73 01 00 15 28 4c 6a 61 76 61 2f ollections$7;...equals...(Ljava/
0160 6c 61 6e 67 2f 4f 62 6a 65 63 74 3b 29 5a 0b 00 05 00 1c 0c 00 19 00 1a 01 00 01 6f 01 00 12 4c lang/Object;)Z.............o...L
0180 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 3b 01 00 06 67 65 74 4b 65 79 01 00 14 28 29 4c java/lang/Object;...getKey...()L
01a0 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 3b 0b 00 05 00 22 0c 00 1f 00 20 01 00 08 67 65 java/lang/Object;...."........ge
01c0 74 56 61 6c 75 65 0b 00 05 00 25 0c 00 23 00 20 01 00 08 68 61 73 68 43 6f 64 65 01 00 03 28 29 tValue....%..#.....hashCode...()
01e0 49 0b 00 05 00 29 0c 00 26 00 27 01 00 08 73 65 74 56 61 6c 75 65 01 00 26 28 4c 6a 61 76 61 2f I....)..&.'...setValue..&(Ljava/
0200 6c 61 6e 67 2f 4f 62 6a 65 63 74 3b 29 4c 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 3b 0a lang/Object;)Ljava/lang/Object;.
0220 00 2d 00 2f 07 00 2e 01 00 17 6a 61 76 61 2f 75 74 69 6c 2f 43 6f 6c 6c 65 63 74 69 6f 6e 73 24 .-./......java/util/Collections$
0240 36 0c 00 30 00 31 01 00 08 61 63 63 65 73 73 24 30 01 00 4d 28 4c 6a 61 76 61 2f 75 74 69 6c 2f 6..0.1...access$0..M(Ljava/util/
0260 43 6f 6c 6c 65 63 74 69 6f 6e 73 24 36 3b 29 4c 6a 61 76 61 2f 75 74 69 6c 2f 43 6f 6c 6c 65 63 Collections$6;)Ljava/util/Collec
0280 74 69 6f 6e 73 24 43 68 65 63 6b 65 64 4d 61 70 24 43 68 65 63 6b 65 64 45 6e 74 72 79 53 65 74 tions$CheckedMap$CheckedEntrySet
02a0 3b 0a 00 33 00 35 07 00 34 01 00 30 6a 61 76 61 2f 75 74 69 6c 2f 43 6f 6c 6c 65 63 74 69 6f 6e ;..3.5..4..0java/util/Collection
02c0 73 24 43 68 65 63 6b 65 64 4d 61 70 24 43 68 65 63 6b 65 64 45 6e 74 72 79 53 65 74 0c 00 30 00 s$CheckedMap$CheckedEntrySet..0.
02e0 36 01 00 45 28 4c 6a 61 76 61 2f 75 74 69 6c 2f 43 6f 6c 6c 65 63 74 69 6f 6e 73 24 43 68 65 63 6..E(Ljava/util/Collections$Chec
0300 6b 65 64 4d 61 70 24 43 68 65 63 6b 65 64 45 6e 74 72 79 53 65 74 3b 29 4c 6a 61 76 61 2f 6c 61 kedMap$CheckedEntrySet;)Ljava/la
0320 6e 67 2f 43 6c 61 73 73 3b 0a 00 38 00 3a 07 00 39 01 00 0f 6a 61 76 61 2f 6c 61 6e 67 2f 43 6c ng/Class;..8.:..9...java/lang/Cl
0340 61 73 73 0c 00 3b 00 1a 01 00 0a 69 73 49 6e 73 74 61 6e 63 65 0b 00 05 00 3d 0c 00 2a 00 2b 07 ass..;.....isInstance....=..*.+.
0360 00 3f 01 00 1c 6a 61 76 61 2f 6c 61 6e 67 2f 43 6c 61 73 73 43 61 73 74 45 78 63 65 70 74 69 6f .?...java/lang/ClassCastExceptio
0380 6e 08 00 41 01 00 1f 54 68 65 20 76 61 6c 75 65 20 69 73 20 6f 66 20 74 68 65 20 77 72 6f 6e 67 n..A...The.value.is.of.the.wrong
03a0 20 74 79 70 65 2e 0a 00 3e 00 43 0c 00 0b 00 44 01 00 15 28 4c 6a 61 76 61 2f 6c 61 6e 67 2f 53 .type...>.C....D...(Ljava/lang/S
03c0 74 72 69 6e 67 3b 29 56 01 00 05 76 61 6c 75 65 01 00 08 74 6f 53 74 72 69 6e 67 01 00 14 28 29 tring;)V...value...toString...()
03e0 4c 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 3b 0a 00 03 00 49 0c 00 46 00 47 01 00 0a 53 Ljava/lang/String;....I..F.G...S
0400 6f 75 72 63 65 46 69 6c 65 01 00 10 43 6f 6c 6c 65 63 74 69 6f 6e 73 2e 6a 61 76 61 01 00 0f 45 ourceFile...Collections.java...E
0420 6e 63 6c 6f 73 69 6e 67 4d 65 74 68 6f 64 0c 00 4e 00 20 01 00 04 6e 65 78 74 01 00 0c 49 6e 6e nclosingMethod..N.....next...Inn
0440 65 72 43 6c 61 73 73 65 73 07 00 51 01 00 20 6a 61 76 61 2f 75 74 69 6c 2f 43 6f 6c 6c 65 63 74 erClasses..Q...java/util/Collect
0460 69 6f 6e 73 24 43 68 65 63 6b 65 64 4d 61 70 07 00 53 01 00 15 6a 61 76 61 2f 75 74 69 6c 2f 43 ions$CheckedMap..S...java/util/C
0480 6f 6c 6c 65 63 74 69 6f 6e 73 01 00 0a 43 68 65 63 6b 65 64 4d 61 70 01 00 0f 43 68 65 63 6b 65 ollections...CheckedMap...Checke
04a0 64 45 6e 74 72 79 53 65 74 07 00 57 01 00 0d 6a 61 76 61 2f 75 74 69 6c 2f 4d 61 70 01 00 05 45 dEntrySet..W...java/util/Map...E
04c0 6e 74 72 79 00 30 00 01 00 03 00 01 00 05 00 02 10 10 00 07 00 08 00 00 10 12 00 09 00 0a 00 00 ntry.0..........................
04e0 00 07 00 00 00 0b 00 0c 00 01 00 0d 00 00 00 3d 00 02 00 03 00 00 00 0f 2a 2b b5 00 0e 2a 2c b5 ...............=........*+...*,.
0500 00 10 2a b7 00 12 b1 00 00 00 02 00 15 00 00 00 0a 00 02 00 00 00 01 00 0a 1a 27 00 16 00 00 00 ..*.......................'.....
0520 0c 00 01 00 00 00 0f 00 17 00 18 00 00 00 01 00 19 00 1a 00 01 00 0d 00 00 00 3f 00 02 00 02 00 ..........................?.....
0540 00 00 0b 2a b4 00 10 2b b9 00 1b 02 00 ac 00 00 00 02 00 15 00 00 00 06 00 01 00 00 1a 32 00 16 ...*...+.....................2..
0560 00 00 00 16 00 02 00 00 00 0b 00 17 00 18 00 00 00 00 00 0b 00 1d 00 1e 00 01 00 01 00 1f 00 20 ................................
0580 00 01 00 0d 00 00 00 34 00 01 00 01 00 00 00 0a 2a b4 00 10 b9 00 21 01 00 b0 00 00 00 02 00 15 .......4........*.....!.........
05a0 00 00 00 06 00 01 00 00 1a 3c 00 16 00 00 00 0c 00 01 00 00 00 0a 00 17 00 18 00 00 00 01 00 23 .........<.....................#
05c0 00 20 00 01 00 0d 00 00 00 34 00 01 00 01 00 00 00 0a 2a b4 00 10 b9 00 24 01 00 b0 00 00 00 02 .........4........*.....$.......
05e0 00 15 00 00 00 06 00 01 00 00 1a 46 00 16 00 00 00 0c 00 01 00 00 00 0a 00 17 00 18 00 00 00 01 ...........F....................
0600 00 26 00 27 00 01 00 0d 00 00 00 34 00 01 00 01 00 00 00 0a 2a b4 00 10 b9 00 28 01 00 ac 00 00 .&.'.......4........*.....(.....
0620 00 02 00 15 00 00 00 06 00 01 00 00 1a 53 00 16 00 00 00 0c 00 01 00 00 00 0a 00 17 00 18 00 00 .............S..................
0640 00 01 00 2a 00 2b 00 01 00 0d 00 00 00 62 00 03 00 02 00 00 00 26 2a b4 00 0e b8 00 2c b8 00 32 ...*.+.......b.......&*.....,..2
0660 2b b6 00 37 99 00 0e 2a b4 00 10 2b b9 00 3c 02 00 b0 bb 00 3e 59 12 40 b7 00 42 bf 00 00 00 02 +..7...*...+..<.....>Y.@..B.....
0680 00 15 00 00 00 0e 00 03 00 00 1a 61 00 11 1a 62 00 1c 1a 64 00 16 00 00 00 16 00 02 00 00 00 26 ...........a...b...d...........&
06a0 00 17 00 18 00 00 00 00 00 26 00 45 00 1e 00 01 00 01 00 46 00 47 00 01 00 0d 00 00 00 32 00 01 .........&.E.......F.G.......2..
06c0 00 01 00 00 00 08 2a b4 00 10 b6 00 48 b0 00 00 00 02 00 15 00 00 00 06 00 01 00 00 1a 6e 00 16 ......*.....H................n..
06e0 00 00 00 0c 00 01 00 00 00 08 00 17 00 18 00 00 00 03 00 4a 00 00 00 02 00 4b 00 4c 00 00 00 04 ...................J.....K.L....
0700 00 2d 00 4d 00 4f 00 00 00 2a 00 05 00 2d 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 50 00 52 .-.M.O...*...-...............P.R
0720 00 54 00 0a 00 33 00 50 00 55 00 1a 00 05 00 56 00 58 06 09 .T...3.P.U.....V.X..
>/* Short.java -- object wrapper for short Copyright (C) 1998, 2001, 2002, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * Instances of class <code>Short</code> represent primitive * <code>short</code> values. * * Additionally, this class provides various helper functions and variables * related to shorts. * * @author Paul Fisher * @author John Keiser * @author Eric Blake (ebb9@email.byu.edu) * @author Tom Tromey (tromey@redhat.com) * @author Andrew John Hughes (gnu_andrew@member.fsf.org) * @since 1.1 * @status updated to 1.5 */ public final class Short extends Number implements Comparable<Short> { /** * Compatible with JDK 1.1+. */ private static final long serialVersionUID = 7515723908773894738L; /** * The minimum value a <code>short</code> can represent is -32768 (or * -2<sup>15</sup>). */ public static final short MIN_VALUE = -32768; /** * The minimum value a <code>short</code> can represent is 32767 (or * 2<sup>15</sup>). */ public static final short MAX_VALUE = 32767; /** * The primitive type <code>short</code> is represented by this * <code>Class</code> object. */ public static final Class<Short> TYPE = (Class<Short>) VMClassLoader.getPrimitiveClass('S'); /** * The number of bits needed to represent a <code>short</code>. * @since 1.5 */ public static final int SIZE = 16; // This caches some Short values, and is used by boxing conversions // via valueOf(). We must cache at least -128..127; these constants // control how much we actually cache. private static final int MIN_CACHE = -128; private static final int MAX_CACHE = 127; private static Short[] shortCache = new Short[MAX_CACHE - MIN_CACHE + 1]; static { for (short i=MIN_CACHE; i <= MAX_CACHE; i++) shortCache[i - MIN_CACHE] = new Short(i); } /** * The immutable value of this Short. * * @serial the wrapped short */ private final short value; /** * Create a <code>Short</code> object representing the value of the * <code>short</code> argument. * * @param value the value to use */ public Short(short value) { this.value = value; } /** * Create a <code>Short</code> object representing the value of the * argument after conversion to a <code>short</code>. * * @param s the string to convert * @throws NumberFormatException if the String cannot be parsed */ public Short(String s) { value = parseShort(s, 10); } /** * Converts the <code>short</code> to a <code>String</code> and assumes * a radix of 10. * * @param s the <code>short</code> to convert to <code>String</code> * @return the <code>String</code> representation of the argument */ public static String toString(short s) { return String.valueOf(s); } /** * Converts the specified <code>String</code> into a <code>short</code>. * This function assumes a radix of 10. * * @param s the <code>String</code> to convert * @return the <code>short</code> value of <code>s</code> * @throws NumberFormatException if <code>s</code> cannot be parsed as a * <code>short</code> */ public static short parseShort(String s) { return parseShort(s, 10); } /** * Converts the specified <code>String</code> into a <code>short</code> * using the specified radix (base). The string must not be <code>null</code> * or empty. It may begin with an optional '-', which will negate the answer, * provided that there are also valid digits. Each digit is parsed as if by * <code>Character.digit(d, radix)</code>, and must be in the range * <code>0</code> to <code>radix - 1</code>. Finally, the result must be * within <code>MIN_VALUE</code> to <code>MAX_VALUE</code>, inclusive. * Unlike Double.parseDouble, you may not have a leading '+'. * * @param s the <code>String</code> to convert * @param radix the radix (base) to use in the conversion * @return the <code>String</code> argument converted to <code>short</code> * @throws NumberFormatException if <code>s</code> cannot be parsed as a * <code>short</code> */ public static short parseShort(String s, int radix) { int i = Integer.parseInt(s, radix, false); if ((short) i != i) throw new NumberFormatException(); return (short) i; } /** * Creates a new <code>Short</code> object using the <code>String</code> * and specified radix (base). * * @param s the <code>String</code> to convert * @param radix the radix (base) to convert with * @return the new <code>Short</code> * @throws NumberFormatException if <code>s</code> cannot be parsed as a * <code>short</code> * @see #parseShort(String, int) */ public static Short valueOf(String s, int radix) { return valueOf(parseShort(s, radix)); } /** * Creates a new <code>Short</code> object using the <code>String</code>, * assuming a radix of 10. *