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

            while (iterator.HasNext)
            {
                this.collection.Add(iterator.Next());
            }
            return(true);
        }
Exemplo n.º 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);
        }
Exemplo n.º 4
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public ValueCollection(Dictionary <TKey, TValue> dictionary)
 {
     values = dictionary.map.Values();
 }
Exemplo n.º 5
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public KeyCollection(Dictionary <TKey, TValue> dictionary)
 {
     keys = dictionary.map.KeySet();
 }
Exemplo n.º 6
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public JavaCollection(Java.Util.ICollection<object> values)
 {
     this.values = values;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public JavaCollection(Java.Util.ICollection <object> values)
 {
     this.values = values;
 }
Exemplo n.º 8
0
 public bool RetainAll(Java.Util.ICollection <object> other)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 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();
 }