示例#1
0
        public bool RemoveAll(FwNs.Core.LC.cLib.ICollection <T> c)
        {
            Iterator <T> iterator = c.GetIterator();
            bool         flag     = true;

            while (iterator.HasNext())
            {
                flag &= this.Remove(iterator.Next());
            }
            return(flag);
        }
示例#2
0
        public bool AddAll <TT>(FwNs.Core.LC.cLib.ICollection <TT> c) where TT : T
        {
            bool          flag     = false;
            Iterator <TT> iterator = c.GetIterator();

            while (iterator.HasNext())
            {
                flag |= this.Add(iterator.Next());
            }
            return(flag);
        }
示例#3
0
        public bool AddAll(FwNs.Core.LC.cLib.ICollection <object> other)
        {
            bool flag = false;
            Iterator <object> iterator = other.GetIterator();

            while (iterator.HasNext())
            {
                flag = true;
                this.Add(iterator.Next());
            }
            return(flag);
        }
示例#4
0
        public bool ContainsAll(FwNs.Core.LC.cLib.ICollection <T> col)
        {
            Iterator <T> iterator = col.GetIterator();

            while (iterator.HasNext())
            {
                if (!this.Contains(iterator.Next()))
                {
                    return(false);
                }
            }
            return(true);
        }