+/*
+ * <p>iParapheur Android<br/>
+ * Copyright (C) 2016 Adullact-Projet.</p>
+ *
+ * <p>This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.</p>
+ *
+ * <p>This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.</p>
+ *
+ * <p>You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.</p>
+ */
package org.adullact.iparapheur.model;
import android.os.Parcel;
import android.os.Parcelable;
+import android.text.TextUtils;
+
public class Bureau implements Parcelable {
return mLateCount;
}
- @Override
- public String toString() {
+ @Override public String toString() {
return mTitle;
}
+ @Override public boolean equals(Object o) {
+ return (o != null) && (o instanceof Bureau) && TextUtils.equals(mId, ((Bureau) o).getId());
+ }
+
// <editor-fold desc="Parcelable">
- @Override
- public int describeContents() {
+ @Override public int describeContents() {
return 0;
}
- @Override
- public void writeToParcel(Parcel dest, int flags) {
+ @Override public void writeToParcel(Parcel dest, int flags) {
dest.writeString(mId);
dest.writeString(mTitle);
dest.writeInt(mTodoCount);