equals(), hashCode() and toString()

 

 

 

 

 

@Override

 

 

public boolean

equals(Object object)

{

 

 

return EqualsBuilder.reflectionEquals( this

, object);

}

 

 

 

@Override

 

 

public int

hashCode()

{

 

 

return HashCodeBuilder.reflectionHashCode( this

);

}

 

 

 

@Override

 

 

public

String toString()

{

 

 

return ToStringBuilder.reflectionToString( this

);

你可能感兴趣的:(hashCode())