public class NonGenericList extends Object
Non generic list of objects
Constructor and Description |
---|
NonGenericList(List list) |
Modifier and Type | Method and Description |
---|---|
int |
add(Object value) |
int |
addItem(Object value)
Deprecated.
|
void |
clear()
Removes all items from the
IList . |
boolean |
contains(Object value)
Determines whether the
IList contains a specific value. |
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies the elements of the
ICollection to an Array , starting at a particular Array index. |
void |
copyTo(Object array,
int index) |
Object |
get_Item(int index)
Gets or sets the element at the specified index.
|
int |
getCount() |
com.aspose.ms.System.Collections.IEnumerator |
getEnumerator() |
Object |
getSyncRoot()
Gets an object that can be used to synchronize access to the
ICollection . |
int |
indexOf(Object value)
Determines the index of a specific item in the
IList . |
void |
insert(int index,
Object value) |
void |
insertItem(int index,
Object value)
Deprecated.
|
boolean |
isFixedSize()
Gets a value indicating whether the
IList has a fixed size. |
boolean |
isReadOnly()
Gets a value indicating whether the
IList is read-only. |
boolean |
isSynchronized()
Gets a value indicating whether access to the
ICollection is synchronized (thread safe). |
com.aspose.ms.System.Collections.IEnumerator |
iterator()
Deprecated.
|
void |
remove(Object value) |
void |
removeAt(int index)
Removes the
IList item at the specified index. |
void |
removeItem(Object value)
Deprecated.
|
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
ICollection . |
public NonGenericList(List list)
@Deprecated public final int addItem(Object value)
Adds an item to the IList
.
value
- The Object
to add to the IList
.public final int add(Object value)
public final void clear()
Removes all items from the IList
.
public final boolean contains(Object value)
Determines whether the IList
contains a specific value.
public final int indexOf(Object value)
Determines the index of a specific item in the IList
.
value
- The Object
to locate in the IList
.value
if found in the list; otherwise, -1.@Deprecated public final void insertItem(int index, Object value)
Inserts an item to the IList
at the specified index.
index
- The zero-based index at which value
should be inserted.value
- The Object
to insert into the IList
.public final void insert(int index, Object value)
public final boolean isFixedSize()
Gets a value indicating whether the IList
has a fixed size.
public final boolean isReadOnly()
Gets a value indicating whether the IList
is read-only.
public final Object get_Item(int index)
Gets or sets the element at the specified index.
index
- The index.public final void set_Item(int index, Object value)
Gets or sets the element at the specified index.
index
- The index.@Deprecated public final void removeItem(Object value)
Removes the first occurrence of a specific object from the IList
.
value
- The Object
to remove from the IList
.public final void remove(Object value)
public final void removeAt(int index)
Removes the IList
item at the specified index.
index
- The zero-based index of the item to remove.public final void copyTo(com.aspose.ms.System.Array array, int index)
Copies the elements of the ICollection
to an Array
, starting at a particular Array
index.
array
- The one-dimensional Array
that is the destination of the elements copied from ICollection
. The Array
must have zero-based indexing.index
- The zero-based index in array
at which copying begins.public final void copyTo(Object array, int index)
public final int size()
Gets the number of elements contained in the ICollection
.
public final int getCount()
public final boolean isSynchronized()
Gets a value indicating whether access to the ICollection
is synchronized (thread safe).
public final Object getSyncRoot()
Gets an object that can be used to synchronize access to the ICollection
.
@Deprecated public final com.aspose.ms.System.Collections.IEnumerator iterator()
Returns an enumerator that iterates through a collection.
IEnumerator
object that can be used to iterate through the collection.public final com.aspose.ms.System.Collections.IEnumerator getEnumerator()
Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.