|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanet.util.OrderedList
This class offers the ability of mantain a collection of objects ordered using an int value as order key.
Constructor Summary | |
OrderedList(java.lang.Object elem,
int value)
Builds an ordered list item with specified values. |
Method Summary | |
boolean |
contains(int value)
Requests if exists the key value into the ordered value. |
java.lang.Object |
elem()
Shows the saved data into this list item. |
java.lang.Object |
get(int value)
Gets the saved data maped to the specified value. |
OrderedList |
insert(OrderedList elem)
Inserts into the list the specified elem. |
OrderedList |
next()
Shows the following list item. |
OrderedList |
pop()
Gets the next element into the ordered list, or null if the current item is the last one. |
OrderedList |
prev()
Shows the previous list item. |
int |
size()
Returns the number of elements into the list. |
java.lang.String |
toString()
Returns recursively all values saved into the current list. |
int |
value()
Shows the key for the current list item. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OrderedList(java.lang.Object elem, int value)
elem
- Data to save.value
- Ordenation key.Method Detail |
public OrderedList insert(OrderedList elem)
elem
- OrderedList item to be inserted.
public OrderedList pop()
public java.lang.Object get(int value)
value
- The found order key.
public boolean contains(int value)
value
- The key to be found.
public int size()
public OrderedList next()
public OrderedList prev()
public int value()
public java.lang.Object elem()
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |