author | lana |
Thu, 23 Oct 2014 13:45:30 -0700 | |
changeset 27219 | c4918033790e |
parent 25859 | 3317bb8137f4 |
permissions | -rw-r--r-- |
2 | 1 |
/* |
14342
8435a30053c1
7197491: update copyright year to match last edit in jdk8 jdk repository
alanb
parents:
11530
diff
changeset
|
2 |
* Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
5506 | 7 |
* published by the Free Software Foundation. Oracle designates this |
2 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
* |
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
5506 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
2 | 24 |
*/ |
25 |
||
26 |
package sun.management.snmp.jvmmib; |
|
27 |
||
28 |
// |
|
29 |
// Generated by mibgen version 5.0 (06/02/03) when compiling JVM-MANAGEMENT-MIB. |
|
30 |
// |
|
31 |
||
32 |
// java imports |
|
33 |
// |
|
34 |
import java.io.Serializable; |
|
35 |
import java.util.Hashtable; |
|
36 |
||
37 |
// RI imports |
|
38 |
// |
|
39 |
import com.sun.jmx.snmp.Enumerated; |
|
40 |
||
41 |
/** |
|
42 |
* The class is used for representing "JvmMemPoolState". |
|
43 |
*/ |
|
44 |
public class EnumJvmMemPoolState extends Enumerated implements Serializable { |
|
45 |
||
11530
a9d059c15b80
7117570: Warnings in sun.mangement.* and its subpackages
mchung
parents:
5506
diff
changeset
|
46 |
static final long serialVersionUID = 3038175407527743027L; |
2 | 47 |
protected static Hashtable<Integer, String> intTable = |
11530
a9d059c15b80
7117570: Warnings in sun.mangement.* and its subpackages
mchung
parents:
5506
diff
changeset
|
48 |
new Hashtable<>(); |
2 | 49 |
protected static Hashtable<String, Integer> stringTable = |
11530
a9d059c15b80
7117570: Warnings in sun.mangement.* and its subpackages
mchung
parents:
5506
diff
changeset
|
50 |
new Hashtable<>(); |
2 | 51 |
static { |
25522
10d789df41bb
8049892: Replace uses of 'new Integer()' with appropriate alternative across core classes
prr
parents:
14342
diff
changeset
|
52 |
intTable.put(2, "valid"); |
10d789df41bb
8049892: Replace uses of 'new Integer()' with appropriate alternative across core classes
prr
parents:
14342
diff
changeset
|
53 |
intTable.put(1, "invalid"); |
10d789df41bb
8049892: Replace uses of 'new Integer()' with appropriate alternative across core classes
prr
parents:
14342
diff
changeset
|
54 |
stringTable.put("valid", 2); |
10d789df41bb
8049892: Replace uses of 'new Integer()' with appropriate alternative across core classes
prr
parents:
14342
diff
changeset
|
55 |
stringTable.put("invalid", 1); |
2 | 56 |
} |
57 |
||
58 |
public EnumJvmMemPoolState(int valueIndex) throws IllegalArgumentException { |
|
59 |
super(valueIndex); |
|
60 |
} |
|
61 |
||
62 |
public EnumJvmMemPoolState(Integer valueIndex) throws IllegalArgumentException { |
|
63 |
super(valueIndex); |
|
64 |
} |
|
65 |
||
66 |
public EnumJvmMemPoolState() throws IllegalArgumentException { |
|
67 |
super(); |
|
68 |
} |
|
69 |
||
70 |
public EnumJvmMemPoolState(String x) throws IllegalArgumentException { |
|
71 |
super(x); |
|
72 |
} |
|
73 |
||
11530
a9d059c15b80
7117570: Warnings in sun.mangement.* and its subpackages
mchung
parents:
5506
diff
changeset
|
74 |
protected Hashtable<Integer,String> getIntTable() { |
2 | 75 |
return intTable ; |
76 |
} |
|
77 |
||
11530
a9d059c15b80
7117570: Warnings in sun.mangement.* and its subpackages
mchung
parents:
5506
diff
changeset
|
78 |
protected Hashtable<String,Integer> getStringTable() { |
2 | 79 |
return stringTable ; |
80 |
} |
|
81 |
||
82 |
} |