Back to project page jogjakota-perizinan.
The source code is released under:
MIT License
If you think the Android project jogjakota-perizinan listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package id.go.jogjakota.perizinan.domain; //from w w w . ja v a2 s . c o m import android.os.Parcel; import android.os.Parcelable; public class User implements Parcelable { private String username; private String fullName; private String email; private String password; public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getFullName() { return fullName; } public void setFullName(String fullName) { this.fullName = fullName; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; User user = (User) o; return email.equals(user.email); } @Override public int hashCode() { return email.hashCode(); } @Override public int describeContents() { return 0; } @Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(this.username); dest.writeString(this.fullName); dest.writeString(this.email); dest.writeString(this.password); } public User() { } private User(Parcel in) { this.username = in.readString(); this.fullName = in.readString(); this.email = in.readString(); this.password = in.readString(); } public static final Parcelable.Creator<User> CREATOR = new Parcelable.Creator<User>() { public User createFromParcel(Parcel source) { return new User(source); } public User[] newArray(int size) { return new User[size]; } }; }