@Override
    public boolean equals(Object mc){
        if ((mc == null)|| !(mc instanceof MessageContent)){
            return false;
        }
        if (this.size() != ((MessageContent)mc).size()){
            return false;
        }
        for (int i = 0; i < this.size(); i++) {
            //if (this.getValue(i) != ((MessageContent)mc).getValue(i)){
            if (!this.getValue(i).equals( ((MessageContent)mc).getValue(i) )){
                return false;
            }
        }
        return true;
    }