/[classpath]/classpath/java/beans/PropertyDescriptor.java
ViewVC logotype

Diff of /classpath/java/beans/PropertyDescriptor.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by mark, Sat Jul 2 20:32:37 2005 UTC revision 1.16 by tromey, Thu Sep 29 22:35:39 2005 UTC
# Line 61  import java.lang.reflect.Method; Line 61  import java.lang.reflect.Method;
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;
# Line 521  public class PropertyDescriptor extends Line 520  public class PropertyDescriptor extends
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

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26