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

Public Member Functions

 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.
 

Properties

int Count [get]
 
bool IsReadOnly [get]
 

Detailed Description

Definition at line 9 of file CollectionWrapper.cs.

Constructor & Destructor Documentation

◆ CollectionWrapper()

java.util.CollectionWrapper< T >.CollectionWrapper ( Collection collection)

Initializes a new instance.

Parameters
collection
Exceptions
ArgumentNullException

Definition at line 19 of file CollectionWrapper.cs.

19 : base(collection)
20 {
21 _collection = collection ?? throw new ArgumentNullException(nameof(collection));
22 }

Member Function Documentation

◆ Add()

void java.util.CollectionWrapper< T >.Add ( T item)

◆ Clear()

void java.util.CollectionWrapper< T >.Clear ( )

◆ Contains()

bool java.util.CollectionWrapper< T >.Contains ( T item)

◆ CopyTo()

void java.util.CollectionWrapper< T >.CopyTo ( T[] array,
int arrayIndex )

Definition at line 40 of file CollectionWrapper.cs.

41 {
42 foreach (var entry in this)
43 array[arrayIndex++] = entry;
44 }

◆ Remove()

bool java.util.CollectionWrapper< T >.Remove ( T item)

Property Documentation

◆ Count

int java.util.CollectionWrapper< T >.Count
get

Definition at line 25 of file CollectionWrapper.cs.

◆ IsReadOnly

bool java.util.CollectionWrapper< T >.IsReadOnly
get

Definition at line 28 of file CollectionWrapper.cs.


The documentation for this class was generated from the following file: