/** * Returns a hash code value for this object. * * @return a hash code value for this object. */ public int hashCode() { return this.getName().hashCode() + this.getType().hashCode() + ( this.getValue() == null ? 0 : this.getValue().hashCode() ); }
/** * Indicates whether some other object is equal to this one by comparing * the values of all properties. * * @param o the reference object with which to compare. * * @return {@code true} if this object is the same as {@code o}; * {@code false} otherwise. */ public boolean equals( final Object o ) { boolean equal = this == o; if ( !equal && o instanceof Property ) { final Property that = (Property) o; equal = this.getName().equals( that.getName() ) && this.getType().equals( that.getType() ) && ( this.getValue() == null ? that.getValue() == null : this.getValue().equals( that.getValue() ) ); } return equal; }
if ( !implementedProperty.getType(). equals( alreadyImplemented.getType() ) ) implementedProperty.getType(), alreadyImplemented.getType() ); implementedProperty.getName() ); if ( !property.getType(). equals( implementedProperty.getType() ) ) property.getName(), property.getType(), implementedProperty.getType() ); !property.getType().equals( specified.getType() ) ) property.getName(), property.getType(), specified.getType() );
if ( !declaredProperty.getType().equals( superProperty.getType() ) ) declaredProperty.getType(), superProperty.getType() ); !alreadyImplemented.getType().equals( implementedProperty.getType() ) ) implementedProperty.getType(), alreadyImplemented.getType() ); if ( !declaredProperty.getType().equals( implementedProperty.getType() ) ) declaredProperty.getType(), implementedProperty.getType() );