1 /* |
1 /* |
2 * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
62 static final long serialVersionUID = -4867215622149721849L; |
62 static final long serialVersionUID = -4867215622149721849L; |
63 |
63 |
64 /** |
64 /** |
65 * @serial The open mbean attribute's <i>open type</i> |
65 * @serial The open mbean attribute's <i>open type</i> |
66 */ |
66 */ |
|
67 @SuppressWarnings("serial") // Not statically typed as Serializable |
67 private OpenType<?> openType; |
68 private OpenType<?> openType; |
68 |
69 |
69 /** |
70 /** |
70 * @serial The open mbean attribute's default value |
71 * @serial The open mbean attribute's default value |
71 */ |
72 */ |
|
73 @SuppressWarnings("serial") // Not statically typed as Serializable |
72 private final Object defaultValue; |
74 private final Object defaultValue; |
73 |
75 |
74 /** |
76 /** |
75 * @serial The open mbean attribute's legal values. This {@link |
77 * @serial The open mbean attribute's legal values. This {@link |
76 * Set} is unmodifiable |
78 * Set} is unmodifiable |
77 */ |
79 */ |
|
80 @SuppressWarnings("serial") // Conditionally serializable |
78 private final Set<?> legalValues; // to be constructed unmodifiable |
81 private final Set<?> legalValues; // to be constructed unmodifiable |
79 |
82 |
80 /** |
83 /** |
81 * @serial The open mbean attribute's min value |
84 * @serial The open mbean attribute's min value |
82 */ |
85 */ |
|
86 @SuppressWarnings("serial") // Conditionally serializable |
83 private final Comparable<?> minValue; |
87 private final Comparable<?> minValue; |
84 |
88 |
85 /** |
89 /** |
86 * @serial The open mbean attribute's max value |
90 * @serial The open mbean attribute's max value |
87 */ |
91 */ |
|
92 @SuppressWarnings("serial") // Conditionally serializable |
88 private final Comparable<?> maxValue; |
93 private final Comparable<?> maxValue; |
89 |
94 |
90 |
95 |
91 // As this instance is immutable, these two values need only |
96 // As this instance is immutable, these two values need only |
92 // be calculated once. |
97 // be calculated once. |