IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
java.util.SetWrapper< T > Class Template Reference
Inheritance diagram for java.util.SetWrapper< T >:
java.util.CollectionWrapper< T > java.lang.IterableWrapper< T > java.util.TreeSetWrapper< T >

Public Member Functions

 SetWrapper (Set set)
 Initializes a new instance.
 
void ExceptWith (IEnumerable< T > other)
 
void IntersectWith (IEnumerable< T > other)
 
bool IsProperSubsetOf (IEnumerable< T > other)
 
bool IsProperSupersetOf (IEnumerable< T > other)
 
bool IsSubsetOf (IEnumerable< T > other)
 
bool IsSupersetOf (IEnumerable< T > other)
 
bool Overlaps (IEnumerable< T > other)
 
bool SetEquals (IEnumerable< T > other)
 
void SymmetricExceptWith (IEnumerable< T > other)
 
void UnionWith (IEnumerable< T > other)
 
- Public Member Functions inherited from java.util.CollectionWrapper< T >
 CollectionWrapper (Collection collection)
 Initializes a new instance.
 
void Add (T item)
 
void Clear ()
 
bool Contains (T item)
 
void CopyTo (T[] array, int arrayIndex)
 
bool Remove (T item)
 
- Public Member Functions inherited from java.lang.IterableWrapper< T >
 IterableWrapper (Iterable iterable)
 Initializes a new instance.
 
IEnumerator< T > GetEnumerator ()
 Returns an enumerator that wraps the given iterable.
 

Additional Inherited Members

- Package Attributes inherited from java.util.CollectionWrapper< T >
- Properties inherited from java.util.CollectionWrapper< T >
int Count [get]
 
bool IsReadOnly [get]
 

Detailed Description

Definition at line 8 of file SetWrapper.cs.

Constructor & Destructor Documentation

◆ SetWrapper()

Initializes a new instance.

Parameters
set
Exceptions
ArgumentNullException

Definition at line 18 of file SetWrapper.cs.

18 :
19 base(set)
20 {
21 _set = set ?? throw new ArgumentNullException(nameof(set));
22 }

Member Function Documentation

◆ ExceptWith()

void java.util.SetWrapper< T >.ExceptWith ( IEnumerable< T > other)

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);
31 else if (other is CollectionWrapper<T> wrapper)
32 _set.removeAll(wrapper._collection);
33 else
34 _set.removeAll(Arrays.asList(other.ToArray()));
35 }
CollectionWrapper(Collection collection)
Initializes a new instance.

◆ IntersectWith()

void java.util.SetWrapper< T >.IntersectWith ( IEnumerable< T > other)

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);
44 else if (other is CollectionWrapper<T> wrapper)
45 _set.retainAll(wrapper._collection);
46 else
47 _set.retainAll(Arrays.asList(other.ToArray()));
48 }

◆ IsProperSubsetOf()

bool java.util.SetWrapper< T >.IsProperSubsetOf ( IEnumerable< T > other)

Definition at line 51 of file SetWrapper.cs.

52 {
53 throw new NotImplementedException();
54 }

◆ IsProperSupersetOf()

bool java.util.SetWrapper< T >.IsProperSupersetOf ( IEnumerable< T > other)

Definition at line 57 of file SetWrapper.cs.

58 {
59 throw new NotImplementedException();
60 }

◆ IsSubsetOf()

bool java.util.SetWrapper< T >.IsSubsetOf ( IEnumerable< T > other)

Definition at line 63 of file SetWrapper.cs.

64 {
65 throw new NotImplementedException();
66 }

◆ IsSupersetOf()

bool java.util.SetWrapper< T >.IsSupersetOf ( IEnumerable< T > other)

Definition at line 69 of file SetWrapper.cs.

70 {
71 throw new NotImplementedException();
72 }

◆ Overlaps()

bool java.util.SetWrapper< T >.Overlaps ( IEnumerable< T > other)

Definition at line 75 of file SetWrapper.cs.

76 {
77 throw new NotImplementedException();
78 }

◆ SetEquals()

bool java.util.SetWrapper< T >.SetEquals ( IEnumerable< T > other)

Definition at line 81 of file SetWrapper.cs.

82 {
83 throw new NotImplementedException();
84 }

◆ SymmetricExceptWith()

void java.util.SetWrapper< T >.SymmetricExceptWith ( IEnumerable< T > other)

Definition at line 87 of file SetWrapper.cs.

88 {
89 throw new NotImplementedException();
90 }

◆ UnionWith()

void java.util.SetWrapper< T >.UnionWith ( IEnumerable< T > other)

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);
99 else if (other is CollectionWrapper<T> wrapper)
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: