2014-02-28 17:46:01 +00:00
|
|
|
package eu.siacs.conversations.entities;
|
2014-01-25 18:33:12 +00:00
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
|
|
import android.content.ContentValues;
|
|
|
|
|
|
|
|
public abstract class AbstractEntity implements Serializable {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = -1895605706690653719L;
|
|
|
|
|
|
|
|
public static final String UUID = "uuid";
|
|
|
|
|
|
|
|
protected String uuid;
|
|
|
|
|
|
|
|
public String getUuid() {
|
|
|
|
return this.uuid;
|
|
|
|
}
|
|
|
|
|
|
|
|
public abstract ContentValues getContentValues();
|
|
|
|
|
2014-02-01 14:07:20 +00:00
|
|
|
public boolean equals(AbstractEntity entity) {
|
|
|
|
return this.getUuid().equals(entity.getUuid());
|
|
|
|
}
|
|
|
|
|
2014-01-25 18:33:12 +00:00
|
|
|
}
|