return user != null ? user.equals(that.user) : that.user == null;
}
+ //CHECKSTYLE_OFF:Magic Number
@Override
public int hashCode() {
int result = id != null ? id.hashCode() : 0;
result = 31 * result + (user != null ? user.hashCode() : 0);
return result;
}
+ //CHECKSTYLE_ON:Magic Number
/**
* Gets user.
/**
* Authentication information
*/
+ //CHECKSTYLE_OFF:Magic Number
@Column(length = 4444)
@Type(type = "org.hibernate.type.BinaryType")
private byte[] authentication;
+ //CHECKSTYLE_ON:Magic Number
/**
* Refresh token
/**
* Authentication information
*/
+ //CHECKSTYLE_OFF:Magic Number
@Column(length = 32768)
@Type(type = "org.hibernate.type.BinaryType")
private byte[] authentication;
+ //CHECKSTYLE_ON:Magic Number
/**
* Public constructor for class OAuthCode. Creates object OAuthCode.
private Long id;
/** User name, must be more than 2 characters */
+ //CHECKSTYLE_OFF:Magic Number
@Length(min = 2, max = 50, message = "must be more than 2 characters")
private String name;
+ //CHECKSTYLE_ON:Magic Number
/** Email string. Can't be empty */
@Email(message = "required field")
* User password.
* Must be more than 2 characters and less than 50.
*/
+ //CHECKSTYLE_OFF:Magic Number
@Size(min = 6, max = 50, message = "must be more than 6 characters")
private String password;
+ //CHECKSTYLE_ON:Magic Number
/**
* Password confirmation (repeat)
return name != null ? name.equals(restAgent.name) : restAgent.name == null;
}
+ //CHECKSTYLE_OFF:Magic Number
@Override
public int hashCode() {
int result = uuid != null ? uuid.hashCode() : 0;
result = 31 * result + (name != null ? name.hashCode() : 0);
return result;
}
+ //CHECKSTYLE_ON:Magic Number
@Override
public String toString() {
.append(items, policy.items).isEquals();
}
+ //CHECKSTYLE_OFF:Magic Number
@Override
public int hashCode() {
return new HashCodeBuilder(17, 37).append(name).append(state).append(items).toHashCode();
}
+ //CHECKSTYLE_ON:Magic Number
@Override
public String toString() {