55 |
* @author Michael Koch (konqueror@gmx.de) |
* @author Michael Koch (konqueror@gmx.de) |
56 |
* @author Andrew John Hughes (gnu_andrew@member.fsf.org) |
* @author Andrew John Hughes (gnu_andrew@member.fsf.org) |
57 |
*/ |
*/ |
58 |
public class ObjectStreamField implements Comparable |
public class ObjectStreamField |
59 |
|
implements Comparable<Object> |
60 |
{ |
{ |
61 |
private String name; |
private String name; |
62 |
private Class<?> type; |
private Class<?> type; |
81 |
* @param name Name of the field to export. |
* @param name Name of the field to export. |
82 |
* @param type Type of the field in the concerned class. |
* @param type Type of the field in the concerned class. |
83 |
*/ |
*/ |
84 |
public ObjectStreamField (String name, Class type) |
public ObjectStreamField (String name, Class<?> type) |
85 |
{ |
{ |
86 |
this (name, type, false); |
this (name, type, false); |
87 |
} |
} |
95 |
* @param type Type of the field in the concerned class. |
* @param type Type of the field in the concerned class. |
96 |
* @param unshared true if field will be unshared, false otherwise. |
* @param unshared true if field will be unshared, false otherwise. |
97 |
*/ |
*/ |
98 |
public ObjectStreamField (String name, Class type, boolean unshared) |
public ObjectStreamField (String name, Class<?> type, boolean unshared) |
99 |
{ |
{ |
100 |
if (name == null) |
if (name == null) |
101 |
throw new NullPointerException(); |
throw new NullPointerException(); |