NonGenericList

Inheritance: java.lang.Object

All Implemented Interfaces: java.util.List

public class NonGenericList implements List

Non generic list of objects

Constructors

ConstructorDescription
NonGenericList(List list)Initializes a new instance of the NonGenericList class.

Methods

MethodDescription
add(int index, Object element)
add(Object o)
addAll(int index, Collection c)
addAll(Collection c)
addItem(Object value)Adds an item to the System.Collections.IList .
clear()Removes all items from the System.Collections.IList .
contains(Object value)Determines whether the System.Collections.IList contains a specific value.
containsAll(Collection c)
equals(Object arg0)
get(int index)Gets the element at the specified index.
getClass()
getList()
hashCode()
indexOf(Object value)Determines the index of a specific item in the System.Collections.IList .
insertItem(int index, Object value)Inserts an item to the System.Collections.IList at the specified index.
isEmpty()
iterator()Returns an enumerator that iterates through a collection.
lastIndexOf(Object o)
listIterator()
listIterator(int index)
notify()
notifyAll()
remove(int index)
remove(Object o)
removeAll(Collection c)
removeAt(int index)Removes the System.Collections.IList item at the specified index.
removeItem(Object value)Removes the first occurrence of a specific object from the System.Collections.IList .
retainAll(Collection c)
set(int index, Object value)Sets the element at the specified index.
size()Gets the number of elements contained in the System.Collections.ICollection .
subList(int fromIndex, int toIndex)
toArray()
toArray(Object[] a)
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

NonGenericList(List list)

public NonGenericList(List list)

Initializes a new instance of the NonGenericList class.

Parameters:

ParameterTypeDescription
listjava.util.ListThe list - container of objects.

add(int index, Object element)

public void add(int index, Object element)

Parameters:

ParameterTypeDescription
indexint
elementjava.lang.Object

add(Object o)

public boolean add(Object o)

Parameters:

ParameterTypeDescription
ojava.lang.Object

Returns: boolean

addAll(int index, Collection c)

public boolean addAll(int index, Collection c)

Parameters:

ParameterTypeDescription
indexint
cjava.util.Collection

Returns: boolean

addAll(Collection c)

public boolean addAll(Collection c)

Parameters:

ParameterTypeDescription
cjava.util.Collection

Returns: boolean

addItem(Object value)

public int addItem(Object value)

Adds an item to the System.Collections.IList .

Parameters:

ParameterTypeDescription
valuejava.lang.ObjectThe System.Object to add to the System.Collections.IList .

Returns: int - The position into which the new element was inserted.

clear()

public void clear()

Removes all items from the System.Collections.IList .

contains(Object value)

public boolean contains(Object value)

Determines whether the System.Collections.IList contains a specific value.

Parameters:

ParameterTypeDescription
valuejava.lang.ObjectThe System.Object to locate in the System.Collections.IList .

Returns: boolean - true if the System.Object is found in the System.Collections.IList ; otherwise, false.

containsAll(Collection c)

public boolean containsAll(Collection c)

Parameters:

ParameterTypeDescription
cjava.util.Collection

Returns: boolean

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

get(int index)

public Object get(int index)

Gets the element at the specified index.

Parameters:

ParameterTypeDescription
indexintThe index.

Returns: java.lang.Object - the element at the specified index.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getList()

public List getList()

Returns: java.util.List

hashCode()

public native int hashCode()

Returns: int

indexOf(Object value)

public int indexOf(Object value)

Determines the index of a specific item in the System.Collections.IList .

Parameters:

ParameterTypeDescription
valuejava.lang.ObjectThe System.Object to locate in the System.Collections.IList .

Returns: int - The index of value if found in the list; otherwise, -1.

insertItem(int index, Object value)

public void insertItem(int index, Object value)

Inserts an item to the System.Collections.IList at the specified index.

Parameters:

ParameterTypeDescription
indexintThe zero-based index at which value should be inserted.
valuejava.lang.ObjectThe System.Object to insert into the System.Collections.IList .

isEmpty()

public boolean isEmpty()

Returns: boolean

iterator()

public Iterator iterator()

Returns an enumerator that iterates through a collection.

Returns: java.util.Iterator - An System.Collections.IEnumerator object that can be used to iterate through the collection.

lastIndexOf(Object o)

public int lastIndexOf(Object o)

Parameters:

ParameterTypeDescription
ojava.lang.Object

Returns: int

listIterator()

public ListIterator<Object> listIterator()

Returns: java.util.ListIterator<java.lang.Object>

listIterator(int index)

public ListIterator<Object> listIterator(int index)

Parameters:

ParameterTypeDescription
indexint

Returns: java.util.ListIterator<java.lang.Object>

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

remove(int index)

public Object remove(int index)

Parameters:

ParameterTypeDescription
indexint

Returns: java.lang.Object

remove(Object o)

public boolean remove(Object o)

Parameters:

ParameterTypeDescription
ojava.lang.Object

Returns: boolean

removeAll(Collection c)

public boolean removeAll(Collection c)

Parameters:

ParameterTypeDescription
cjava.util.Collection

Returns: boolean

removeAt(int index)

public void removeAt(int index)

Removes the System.Collections.IList item at the specified index.

Parameters:

ParameterTypeDescription
indexintThe zero-based index of the item to remove.

removeItem(Object value)

public void removeItem(Object value)

Removes the first occurrence of a specific object from the System.Collections.IList .

Parameters:

ParameterTypeDescription
valuejava.lang.ObjectThe System.Object to remove from the System.Collections.IList .

retainAll(Collection c)

public boolean retainAll(Collection c)

Parameters:

ParameterTypeDescription
cjava.util.Collection

Returns: boolean

set(int index, Object value)

public Object set(int index, Object value)

Sets the element at the specified index.

Parameters:

ParameterTypeDescription
indexintThe index.
valuejava.lang.Object

Returns: java.lang.Object

size()

public int size()

Gets the number of elements contained in the System.Collections.ICollection .

Returns: int

subList(int fromIndex, int toIndex)

public List<Object> subList(int fromIndex, int toIndex)

Parameters:

ParameterTypeDescription
fromIndexint
toIndexint

Returns: java.util.List<java.lang.Object>

toArray()

public Object[] toArray()

Returns: java.lang.Object[]

toArray(Object[] a)

public Object[] toArray(Object[] a)

Parameters:

ParameterTypeDescription
ajava.lang.Object[]

Returns: java.lang.Object[]

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int