package com.alwaysallthetime.adnlibutils.db;

import java.util.LinkedHashSet;
import java.util.Set;

public abstract class MessageEntityInstances {
    protected LinkedHashSet<String> mMessageIds;

    public MessageEntityInstances() {
        mMessageIds = new LinkedHashSet<String>();
    }

    public void addInstance(String messageId) {
        mMessageIds.add(messageId);
    }

    public void addAll(Set<String> messageIds) {
        mMessageIds.addAll(messageIds);
    }

    public int getNumInstances() {
        return mMessageIds.size();
    }

    public LinkedHashSet<String> getMessageIds() {
        return mMessageIds;
    }

    public abstract String getName();
}

@@ -466,32 +466,144 @@
 ageIds);%0A    %7D%0A%0A
+    public boolean removeAll(Set%3CString%3E messageIds) %7B%0A        return mMessageIds.removeAll(messageIds);%0A    %7D%0A%0A
     public int g

add removeAll() method to MessageEntityInstances