Definition at line 8 of file SetWrapper.cs.
◆ SetWrapper()
Initializes a new instance.
- Parameters
-
- Exceptions
-
Definition at line 18 of file SetWrapper.cs.
18 :
19 base(set)
20 {
21 _set = set ?? throw new ArgumentNullException(nameof(set));
22 }
◆ ExceptWith()
Definition at line 25 of file SetWrapper.cs.
26 {
27 if (other is T[] array)
28 _set.removeAll(Arrays.asList(array));
29 else if (other is Collection c)
30 _set.removeAll(c);
32 _set.removeAll(wrapper._collection);
33 else
34 _set.removeAll(Arrays.asList(other.ToArray()));
35 }
CollectionWrapper(Collection collection)
Initializes a new instance.
◆ IntersectWith()
Definition at line 38 of file SetWrapper.cs.
39 {
40 if (other is T[] array)
41 _set.retainAll(Arrays.asList(array));
42 else if (other is Collection c)
43 _set.retainAll(c);
45 _set.retainAll(wrapper._collection);
46 else
47 _set.retainAll(Arrays.asList(other.ToArray()));
48 }
◆ IsProperSubsetOf()
Definition at line 51 of file SetWrapper.cs.
52 {
53 throw new NotImplementedException();
54 }
◆ IsProperSupersetOf()
Definition at line 57 of file SetWrapper.cs.
58 {
59 throw new NotImplementedException();
60 }
◆ IsSubsetOf()
Definition at line 63 of file SetWrapper.cs.
64 {
65 throw new NotImplementedException();
66 }
◆ IsSupersetOf()
Definition at line 69 of file SetWrapper.cs.
70 {
71 throw new NotImplementedException();
72 }
◆ Overlaps()
Definition at line 75 of file SetWrapper.cs.
76 {
77 throw new NotImplementedException();
78 }
◆ SetEquals()
Definition at line 81 of file SetWrapper.cs.
82 {
83 throw new NotImplementedException();
84 }
◆ SymmetricExceptWith()
Definition at line 87 of file SetWrapper.cs.
88 {
89 throw new NotImplementedException();
90 }
◆ UnionWith()
Definition at line 93 of file SetWrapper.cs.
94 {
95 if (other is T[] array)
96 _set.addAll(Arrays.asList(array));
97 else if (other is Collection c)
98 _set.addAll(c);
100 _set.addAll(wrapper._collection);
101 else
102 _set.addAll(Arrays.asList(other.ToArray()));
103 }
The documentation for this class was generated from the following file: