Пример #1
0
        public Boolean equals(Object o)
        {
            if (o is XPathFilterExpr)
            {
                XPathFilterExpr fe = (XPathFilterExpr)o;

                ArrayList a = new ArrayList();
                for (int i = 0; i < predicates.Length; i++)
                {
                    a.Add(predicates[i]);
                }
                ArrayList b = new ArrayList();
                for (int i = 0; i < fe.predicates.Length; i++)
                {
                    b.Add(fe.predicates[i]);
                }

                return(x.Equals(fe.x) && ExtUtil.vectorEquals(a, b));
            }
            else
            {
                return(false);
            }
        }