2using System.Collections.Generic;
21 _set =
set ??
throw new ArgumentNullException(nameof(
set));
27 if (other is T[] array)
28 _set.removeAll(Arrays.asList(array));
29 else if (other is Collection c)
32 _set.removeAll(wrapper._collection);
34 _set.removeAll(Arrays.asList(other.ToArray()));
40 if (other is T[] array)
41 _set.retainAll(Arrays.asList(array));
42 else if (other is Collection c)
45 _set.retainAll(wrapper._collection);
47 _set.retainAll(Arrays.asList(other.ToArray()));
53 throw new NotImplementedException();
59 throw new NotImplementedException();
65 throw new NotImplementedException();
71 throw new NotImplementedException();
77 throw new NotImplementedException();
83 throw new NotImplementedException();
89 throw new NotImplementedException();
95 if (other is T[] array)
96 _set.addAll(Arrays.asList(array));
97 else if (other is Collection c)
100 _set.addAll(wrapper._collection);
102 _set.addAll(Arrays.asList(other.ToArray()));
106 bool ISet<T>.Add(T item)
108 return _set.add(item);
void UnionWith(IEnumerable< T > other)
bool IsSubsetOf(IEnumerable< T > other)
void ExceptWith(IEnumerable< T > other)
bool Overlaps(IEnumerable< T > other)
bool SetEquals(IEnumerable< T > other)
void SymmetricExceptWith(IEnumerable< T > other)
bool IsSupersetOf(IEnumerable< T > other)
void IntersectWith(IEnumerable< T > other)
SetWrapper(Set set)
Initializes a new instance.
bool IsProperSupersetOf(IEnumerable< T > other)
bool IsProperSubsetOf(IEnumerable< T > other)