conversations-classic/src/main/java/eu/siacs/conversations/entities/AbstractEntity.java

21 lines
396 B
Java

package eu.siacs.conversations.entities;
import android.content.ContentValues;
public abstract class AbstractEntity {
public static final String UUID = "uuid";
protected String uuid;
public String getUuid() {
return this.uuid;
}
public abstract ContentValues getContentValues();
public boolean equals(AbstractEntity entity) {
return this.getUuid().equals(entity.getUuid());
}
}