|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gishur.core.BasicList | +--gishur.core.SimpleList | +--gishur.core.List
A list type based upon SimpleList
.
SimpleList
,
ListItem
,
StdListItem
, Serialized FormFields inherited from class gishur.core.BasicList |
ANY_ACCESS, KEY, LISTITEM, NO_ACCESS, VALUE |
Fields inherited from interface gishur.core.ControlledCloneable |
DEEP, FLAT |
Constructor Summary | |
List()
Empty constructor. |
|
List(BasicList L)
Conversion constructor. |
|
List(ListItem start,
int count)
Copy-constructor. |
|
List(ListItem start,
ListItem end)
Copy-constructor. |
|
List(java.lang.Object[] array,
int startindex,
int length)
Constructor receiving the objects to be stored in the List in an array. |
Method Summary | |
ListItem |
add(java.lang.Object key,
java.lang.Object value)
Appends the specified key-value-pair to the end of the list. |
ListItem |
findForValue(java.lang.Object value)
Searches for the first ListItem in this List whose
BasicListItem.value() equals value . |
ListItem |
findForValue(java.lang.Object value,
ListItem start)
Searches the first ListItem in the list beginning from start ,
whose BasicListItem.value() is equal to the value specified by value . |
ListItem |
insert(ListItem base,
java.lang.Object key,
java.lang.Object value)
Creates a new ListItem containing the key-value-pair specified
by key and value and inserts it into the list
before base . |
java.lang.String |
toString()
Overrides java.lang.Object.toString() . |
Methods inherited from class gishur.core.SimpleList |
add, add, add, add, add, add, add, at, bottom, clear, clone, clone, concat, contains, contains, convertKeysToArray, convertValuesToArray, copy, copy, cut, cut, cycle, cycle, cyclicRelative, cyclicRelativeValue, empty, find, find, find, findBigger, findBigger, findClass, findClass, findClass, findSmaller, findSmaller, first, firstKey, firstValue, getDistance, getIndex, getKeyAt, getListView, getValueAt, insert, insert, insert, insert, insert, insert, insert, insert, key, keys, last, lastKey, lastValue, length, max, min, move, move, move, next, next, paste, paste, peek, Peek, pop, Pop, popBoolean, PopBoolean, popDouble, PopDouble, popFloat, PopFloat, popInt, PopInt, popLong, PopLong, prev, prev, push, push, push, push, push, push, Push, relative, remove, remove, reverse, sort, sort, top, value, values |
Methods inherited from class gishur.core.BasicList |
add, add, allowAccess, copy, copy, copy, cut, enumerate, equals, find, findClass, findClosest, getIndex, getListItem, getListItemArray, getListString, move, reconnect, reconnect, remove, requestAccess, reverse, storeInArray, toString, unconnect |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public List()
public List(BasicList L)
BasicList
L
into
this list.L
- BasicList
to convert into List
public List(ListItem start, ListItem end)
start
- the sequence's starting elementend
- the last element of the partial list to insert into the new List
public List(ListItem start, int count)
start
- the sequence's starting elementcount
- the number of elements to copypublic List(java.lang.Object[] array, int startindex, int length)
List
in an array.array
- the array containing the objects to be stored in the List
startindex
- the first element in the array which will be taken into the List
length
- number of elements to storeMethod Detail |
public java.lang.String toString()
java.lang.Object.toString()
.toString
in class SimpleList
Object.toString()
public ListItem findForValue(java.lang.Object value, ListItem start)
ListItem
in the list beginning from start
,
whose BasicListItem.value()
is equal to the value specified by value
.value
- the value-object to search forstart
- the ListItem
from which the search startsListItem
or null
, if no such ListItem
was foundpublic ListItem findForValue(java.lang.Object value)
ListItem
in this List
whose
BasicListItem.value()
equals value
.value
- value-object to search forListItem
or null
, if no such ListItem
was foundpublic ListItem add(java.lang.Object key, java.lang.Object value)
ListItem
containing the arguments is returned.key
- the key to be insertedvalue
- the value to be insertedListItem
containing key
and value
SimpleList.add(ListItem)
public ListItem insert(ListItem base, java.lang.Object key, java.lang.Object value)
ListItem
containing the key-value-pair specified
by key
and value
and inserts it into the list
before base
. If base==null
, the new ListItem
is inserted at the end of the list. If base
is not a member
of this List
, a ListException
will be thrown.base
- the position in the list before which the new ListItem
shall be insertedkey
- the key of the new ListItem
value
- the value of the new ListItem
ListItem
SimpleList.insert(ListItem, ListItem)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |