Code example for Field

Methods: hashCode

0
      } 
    } 
 
    @Override 
    public int hashCode() { 
      return field.hashCode();
    } 
 
    @Override 
    public boolean equals(Object obj) {
      if (obj != null && obj.getClass().equals(this.getClass())) {
        DirectAccessFieldDescriptor that = (DirectAccessFieldDescriptor) obj;
        return this.field.equals(that.field);
      } else { 
        return false; 
      } 
    } 
  } 
 
  /** 
   * A field descriptor accessing the value via a getter and setter.