2014-02-28 18:46:01 +01:00
|
|
|
package eu.siacs.conversations.entities;
|
2014-01-25 19:33:12 +01:00
|
|
|
|
|
|
|
import android.content.ContentValues;
|
|
|
|
|
2014-07-18 21:57:10 +02:00
|
|
|
public abstract class AbstractEntity {
|
2014-01-25 19:33:12 +01:00
|
|
|
|
|
|
|
public static final String UUID = "uuid";
|
2014-08-31 16:28:21 +02:00
|
|
|
|
2014-01-25 19:33:12 +01:00
|
|
|
protected String uuid;
|
2014-08-31 16:28:21 +02:00
|
|
|
|
2014-01-25 19:33:12 +01:00
|
|
|
public String getUuid() {
|
|
|
|
return this.uuid;
|
|
|
|
}
|
2014-08-31 16:28:21 +02:00
|
|
|
|
2014-01-25 19:33:12 +01:00
|
|
|
public abstract ContentValues getContentValues();
|
2014-08-31 16:28:21 +02:00
|
|
|
|
2014-02-01 15:07:20 +01:00
|
|
|
public boolean equals(AbstractEntity entity) {
|
|
|
|
return this.getUuid().equals(entity.getUuid());
|
|
|
|
}
|
2014-08-31 16:28:21 +02:00
|
|
|
|
2014-01-25 19:33:12 +01:00
|
|
|
}
|