예제 #1
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public JavaCollectionWrapper(Java.Util.ICollection <T> collection)
 {
     if (collection == null)
     {
         throw new ArgumentNullException("collection");
     }
     this.collection = collection;
 }
예제 #2
0
        public bool AddAll(Java.Util.ICollection <T> collection)
        {
            var iterator = collection.Iterator();

            while (iterator.HasNext)
            {
                this.collection.Add(iterator.Next());
            }
            return(true);
        }
예제 #3
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);
        }
예제 #4
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public ValueCollection(Dictionary <TKey, TValue> dictionary)
 {
     values = dictionary.map.Values();
 }
예제 #5
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public KeyCollection(Dictionary <TKey, TValue> dictionary)
 {
     keys = dictionary.map.KeySet();
 }
예제 #6
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public JavaCollection(Java.Util.ICollection<object> values)
 {
     this.values = values;
 }
예제 #7
0
파일: SortedList.cs 프로젝트: goupviet/api
 /// <summary>
 /// Default ctor
 /// </summary>
 public JavaCollection(Java.Util.ICollection <object> values)
 {
     this.values = values;
 }
예제 #8
0
 public bool RetainAll(Java.Util.ICollection <object> other)
 {
     throw new NotImplementedException();
 }
예제 #9
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public ValueCollection(DictionaryImplHashMap <TKey, TValue> dictionary)
 {
     values = dictionary.map.Values();
 }
 /// <summary>
 /// Default ctor
 /// </summary>
 public ValueCollection(DictionaryImplHashMapWithComparerWrapper <TKey, TValue> dictionary)
 {
     values = dictionary.map.Values();
 }
 /// <summary>
 /// Default ctor
 /// </summary>
 public KeyCollection(DictionaryImplHashMapWithComparerWrapper <TKey, TValue> dictionary)
 {
     comparer = dictionary.Comparer;
     keys     = dictionary.map.KeySet();
 }