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

22 lines
397 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());
}
}