public class NonGenericList extends Object implements com.aspose.ms.System.Collections.IList
Non generic list of objects
| Constructor and Description |
|---|
NonGenericList(com.aspose.ms.System.Collections.Generic.List list)
Initializes a new instance of the
NonGenericList class. |
| Modifier and Type | Method and Description |
|---|---|
int |
addItem(Object value)
Adds an item to the
T:System.Collections.IList. |
void |
clear()
Removes all items from the
T:System.Collections.IList. |
boolean |
contains(Object value)
Determines whether the
T:System.Collections.IList contains a specific value. |
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies the elements of the
T:System.Collections.ICollection to an T:System.Array, starting at a particular T:System.Array index. |
Object |
get_Item(int index)
Gets or sets the element at the specified index.
|
Object |
getSyncRoot()
Gets an object that can be used to synchronize access to the
T:System.Collections.ICollection. |
int |
indexOf(Object value)
Determines the index of a specific item in the
T:System.Collections.IList. |
void |
insertItem(int index,
Object value)
Inserts an item to the
T:System.Collections.IList at the specified index. |
boolean |
isFixedSize()
Gets a value indicating whether the
T:System.Collections.IList has a fixed size. |
boolean |
isReadOnly()
Gets a value indicating whether the
T:System.Collections.IList is read-only. |
boolean |
isSynchronized()
Gets a value indicating whether access to the
T:System.Collections.ICollection is synchronized (thread safe). |
com.aspose.ms.System.Collections.IEnumerator |
iterator()
Returns an enumerator that iterates through a collection.
|
void |
removeAt(int index)
Removes the
T:System.Collections.IList item at the specified index. |
void |
removeItem(Object value)
Removes the first occurrence of a specific object from the
T:System.Collections.IList. |
void |
set_Item(int index,
Object value)
Gets or sets the element at the specified index.
|
int |
size()
Gets the number of elements contained in the
T:System.Collections.ICollection. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic NonGenericList(com.aspose.ms.System.Collections.Generic.List list)
Initializes a new instance of the NonGenericList class.
list - The list - container of objects.public int addItem(Object value)
Adds an item to the T:System.Collections.IList.
addItem in interface com.aspose.ms.System.Collections.IListvalue - The T:System.Object to add to the T:System.Collections.IList.public void clear()
Removes all items from the T:System.Collections.IList.
clear in interface com.aspose.ms.System.Collections.IListpublic boolean contains(Object value)
Determines whether the T:System.Collections.IList contains a specific value.
contains in interface com.aspose.ms.System.Collections.IListvalue - The T:System.Object to locate in the T:System.Collections.IList.T:System.Object is found in the T:System.Collections.IList; otherwise, false.public int indexOf(Object value)
Determines the index of a specific item in the T:System.Collections.IList.
indexOf in interface com.aspose.ms.System.Collections.IListvalue - The T:System.Object to locate in the T:System.Collections.IList.value if found in the list; otherwise, -1.public void insertItem(int index,
Object value)
Inserts an item to the T:System.Collections.IList at the specified index.
insertItem in interface com.aspose.ms.System.Collections.IListindex - The zero-based index at which value should be inserted.value - The T:System.Object to insert into the T:System.Collections.IList.public boolean isFixedSize()
Gets a value indicating whether the T:System.Collections.IList has a fixed size.
isFixedSize in interface com.aspose.ms.System.Collections.IListpublic boolean isReadOnly()
Gets a value indicating whether the T:System.Collections.IList is read-only.
isReadOnly in interface com.aspose.ms.System.Collections.IListpublic Object get_Item(int index)
Gets or sets the element at the specified index.
get_Item in interface com.aspose.ms.System.Collections.IListindex - The index.public void set_Item(int index,
Object value)
Gets or sets the element at the specified index.
set_Item in interface com.aspose.ms.System.Collections.IListindex - The index.public void removeItem(Object value)
Removes the first occurrence of a specific object from the T:System.Collections.IList.
removeItem in interface com.aspose.ms.System.Collections.IListvalue - The T:System.Object to remove from the T:System.Collections.IList.public void removeAt(int index)
Removes the T:System.Collections.IList item at the specified index.
removeAt in interface com.aspose.ms.System.Collections.IListindex - The zero-based index of the item to remove.public void copyTo(com.aspose.ms.System.Array array,
int index)
Copies the elements of the T:System.Collections.ICollection to an T:System.Array, starting at a particular T:System.Array index.
copyTo in interface com.aspose.ms.System.Collections.ICollectionarray - The one-dimensional T:System.Array that is the destination of the elements copied from T:System.Collections.ICollection. The T:System.Array must have zero-based indexing.index - The zero-based index in array at which copying begins.public int size()
Gets the number of elements contained in the T:System.Collections.ICollection.
size in interface com.aspose.ms.System.Collections.ICollectionpublic boolean isSynchronized()
Gets a value indicating whether access to the T:System.Collections.ICollection is synchronized (thread safe).
isSynchronized in interface com.aspose.ms.System.Collections.ICollectionpublic Object getSyncRoot()
Gets an object that can be used to synchronize access to the T:System.Collections.ICollection.
getSyncRoot in interface com.aspose.ms.System.Collections.ICollectionpublic com.aspose.ms.System.Collections.IEnumerator iterator()
Returns an enumerator that iterates through a collection.