com.sirolf2009.objectchain.example.common.model.ClaimUsername Maven / Gradle / Ivy
The newest version!
package com.sirolf2009.objectchain.example.common.model;
import org.eclipse.xtend.lib.annotations.Accessors;
import org.eclipse.xtend.lib.annotations.EqualsHashCode;
import org.eclipse.xtend.lib.annotations.ToString;
import org.eclipse.xtext.xbase.lib.Pure;
import org.eclipse.xtext.xbase.lib.util.ToStringBuilder;
@ToString
@Accessors
@EqualsHashCode
@SuppressWarnings("all")
public class ClaimUsername {
private String username;
@Override
@Pure
public String toString() {
ToStringBuilder b = new ToStringBuilder(this);
b.add("username", this.username);
return b.toString();
}
@Pure
public String getUsername() {
return this.username;
}
public void setUsername(final String username) {
this.username = username;
}
@Override
@Pure
public boolean equals(final Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
ClaimUsername other = (ClaimUsername) obj;
if (this.username == null) {
if (other.username != null)
return false;
} else if (!this.username.equals(other.username))
return false;
return true;
}
@Override
@Pure
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((this.username== null) ? 0 : this.username.hashCode());
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy