/** * Create an instance of {@link UserDTO } * */ public UserDTO createUserDTO() { return new UserDTO(); }
public UserDTO withDescription(String value) { setDescription(value); return this; }
public UserDTO withFullName(String value) { setFullName(value); return this; }
public UserDTO convert(final hudson.model.User source) { assert source != null; log.trace("Converting: {}", source); UserDTO target = new UserDTO(); target.setId(source.getId()); target.setFullName(source.getFullName()); target.setDescription(source.getDescription()); return target; } }
@Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (this == obj) { return true; } if (!(obj instanceof UserDTO)) { return false; } final UserDTO that = ((UserDTO) obj); final EqualsBuilder builder = new EqualsBuilder(); builder.append(this.getId(), that.getId()); builder.append(this.getFullName(), that.getFullName()); builder.append(this.getDescription(), that.getDescription()); return builder.build(); }
public UserDTO withId(String value) { setId(value); return this; }
@Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (this == obj) { return true; } if (!(obj instanceof UserDTO)) { return false; } final UserDTO that = ((UserDTO) obj); final EqualsBuilder builder = new EqualsBuilder(); builder.append(this.getId(), that.getId()); builder.append(this.getFullName(), that.getFullName()); builder.append(this.getDescription(), that.getDescription()); return builder.build(); }
public UserDTO withId(String value) { setId(value); return this; }
@Override public int hashCode() { final HashCodeBuilder builder = new HashCodeBuilder(); builder.append(this.getId()); builder.append(this.getFullName()); builder.append(this.getDescription()); return builder.build(); }
/** * Create an instance of {@link UserDTO } * */ public UserDTO createUserDTO() { return new UserDTO(); }
public UserDTO withDescription(String value) { setDescription(value); return this; }
public UserDTO withFullName(String value) { setFullName(value); return this; }
@Override public int hashCode() { final HashCodeBuilder builder = new HashCodeBuilder(); builder.append(this.getId()); builder.append(this.getFullName()); builder.append(this.getDescription()); return builder.build(); }