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

26 lines
527 B
Java
Raw Normal View History

2014-02-28 17:46:01 +00:00
package eu.siacs.conversations.entities;
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());
}
}