61 |
** @since 1.1 |
** @since 1.1 |
62 |
** @status updated to 1.4 |
** @status updated to 1.4 |
63 |
**/ |
**/ |
|
|
|
64 |
public class PropertyDescriptor extends FeatureDescriptor |
public class PropertyDescriptor extends FeatureDescriptor |
65 |
{ |
{ |
66 |
Class propertyType; |
Class propertyType; |
520 |
return newPropertyType; |
return newPropertyType; |
521 |
} |
} |
522 |
|
|
523 |
|
/** |
524 |
|
* Return a hash code for this object, conforming to the contract described |
525 |
|
* in {@link Object#hashCode()}. |
526 |
|
* @return the hash code |
527 |
|
* @since 1.5 |
528 |
|
*/ |
529 |
|
public int hashCode() |
530 |
|
{ |
531 |
|
return ((propertyType == null ? 0 : propertyType.hashCode()) |
532 |
|
| (propertyEditorClass == null ? 0 : propertyEditorClass.hashCode()) |
533 |
|
| (bound ? Boolean.TRUE : Boolean.FALSE).hashCode() |
534 |
|
| (constrained ? Boolean.TRUE : Boolean.FALSE).hashCode() |
535 |
|
| (getMethod == null ? 0 : getMethod.hashCode()) |
536 |
|
| (setMethod == null ? 0 : setMethod.hashCode())); |
537 |
|
} |
538 |
|
|
539 |
/** Compares this <code>PropertyDescriptor</code> against the |
/** Compares this <code>PropertyDescriptor</code> against the |
540 |
* given object. |
* given object. |
541 |
* Two PropertyDescriptors are equals if |
* Two PropertyDescriptors are equals if |