2
* The contents of this file are subject to the terms of either the GNU
3
* General Public License Version 2 only ("GPL") or the Common
4
* Development and Distribution License ("CDDL") (collectively, the
5
* "License"). You may not use this file except in compliance with the
6
* License. You can obtain a copy of the License at
7
* http://www.netbeans.org/cddl-gplv2.html. See the License for the
8
* specific language governing permissions and limitations under the
9
* License. When distributing the software, include this License Header
10
* Notice in each file. This particular file is subject to the "Classpath"
11
* exception as provided in the GPL Version 2 section of the License file
12
* that accompanied this code. If applicable, add the following below the
13
* License Header, with the fields enclosed by brackets [] replaced by
14
* your own identifying information:
15
* "Portions Copyrighted [year] [name of copyright owner]"
17
* The Original Software is SezPoz. The Initial Developer of the Original
18
* Software is Sun Microsystems, Inc. Portions Copyright 2006-2010 Sun
19
* Microsystems, Inc. All Rights Reserved.
21
* If you wish your version of this file to be governed by only the CDDL
22
* or only the GPL Version 2, indicate your decision by adding
23
* "[Contributor] elects to include this software in this distribution
24
* under the [CDDL or GPL Version 2] license." If you do not indicate a
25
* single choice of license, a recipient has the option to distribute
26
* your version of this file under either the CDDL, the GPL Version 2 or
27
* to extend the choice of license to its licensees as provided above.
28
* However, if you add GPL Version 2 code and therefore, elected the GPL
29
* Version 2 license, then the option applies only if the new code is
30
* made subject to such option by the copyright holder.
33
package net.java.sezpoz.impl;
35
import java.io.Serializable;
38
* Representation of one class constant.
40
public final class SerTypeConst implements Serializable {
42
private static final long serialVersionUID = 1L;
44
/** fully qualified name of class */
45
public final String name;
47
SerTypeConst(String name) {
51
public int hashCode() {
52
return name.hashCode();
55
public boolean equals(Object obj) {
56
return obj instanceof SerTypeConst && name.equals(((SerTypeConst) obj).name);
59
public String toString() {