public boolean equals (Object o)
    {

        if (o instanceof QueueElement)
        {
            QueueElement temp = (QueueElement) o;
            if ((sub == temp.sub) && (set.size() == temp.set.size()))
                return (true);
        }
        return (false);
    }