Setter methods now just have to start with 'set' not 'set[A-Z_]'
parent
2580de8f42
commit
6ba284e8c2
@ -0,0 +1,28 @@
|
||||
package com.moparisthebest.jdbc.dto;
|
||||
|
||||
public class CaseSensitivePerson {
|
||||
private String mPersonFirstName;
|
||||
|
||||
public String getmPersonFirstName() {
|
||||
return mPersonFirstName;
|
||||
}
|
||||
|
||||
public void setmPersonFirstName(final String mPersonFirstName) {
|
||||
this.mPersonFirstName = mPersonFirstName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(final Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
final CaseSensitivePerson that = (CaseSensitivePerson) o;
|
||||
|
||||
return mPersonFirstName != null ? mPersonFirstName.equals(that.mPersonFirstName) : that.mPersonFirstName == null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return mPersonFirstName != null ? mPersonFirstName.hashCode() : 0;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue