|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.List
public class List
Constructor Summary | |
---|---|
List()
Deprecated. Construct a List object |
|
List(org.gnu.glib.Handle handle)
Deprecated. Contruct a List object using a given handle. |
Method Summary | |
---|---|
void |
append(int data)
Deprecated. Append an element to the end of the list. |
org.gnu.glib.Handle |
first()
Deprecated. Return the first element from the List. |
void |
free()
Deprecated. Release the resources associated with this object. |
void |
insert(int data,
int position)
Deprecated. Insert an element at a specified location in the List. |
org.gnu.glib.Handle |
last()
Deprecated. Return the last element from the List. |
int |
length()
Deprecated. Return the number of elements contained in the List. |
org.gnu.glib.Handle |
next()
Deprecated. Return the next element in the List. |
void |
prepend(int data)
Deprecated. Prepend an element to the end of the list. |
org.gnu.glib.Handle |
previous()
Deprecated. Return the previous element in the List. |
void |
remove(int data)
Deprecated. Remove the first instance of an element from the List. |
void |
removeAllInstances(int data)
Deprecated. Remove all instances of an element from the List. |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public List()
public List(org.gnu.glib.Handle handle)
Method Detail |
---|
public void free()
public void append(int data)
data
- The handle of the object that is being added to the List.public void prepend(int data)
data
- The handle of the object that is being added to the List.public void insert(int data, int position)
data
- The handle of the object that is being added to the List.position
- The position to perform the insertion.public void remove(int data)
data
- The item to remove from the list. If two items contain the
same data only the first will be removed.public void removeAllInstances(int data)
data
- The item to remove from the List. This method will remove all
instances of the object pointed to by data.public int length()
public org.gnu.glib.Handle first()
public org.gnu.glib.Handle last()
public org.gnu.glib.Handle next()
public org.gnu.glib.Handle previous()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |