Conversations/src/eu/siacs/conversations/entities/AbstractEntity.java

22 lines
397 B
Java
Raw Normal View History

2014-02-28 18:46:01 +01:00
package eu.siacs.conversations.entities;
import android.content.ContentValues;
2014-07-18 21:57:10 +02:00
public abstract class AbstractEntity {
public static final String UUID = "uuid";
2014-08-31 16:28:21 +02:00
protected String uuid;
2014-08-31 16:28:21 +02:00
public String getUuid() {
return this.uuid;
}
2014-08-31 16:28:21 +02: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
}