Example #1
0
        public bool AddAll(Java.Util.ICollection <T> collection)
        {
            var iterator = collection.Iterator();

            while (iterator.HasNext)
            {
                this.collection.Add(iterator.Next());
            }
            return(true);
        }
Example #2
0
        public bool RemoveAll(Java.Util.ICollection <object> other)
        {
            var iterator = other.Iterator();

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