|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodelling.fiti.data.ItemList
public class ItemList
List of Items and InterItems. Shall be only one of a kind of each item. Index of InterItem is given by position in this list. ItemList is used so that all itemsets are given a unique index. This is given by the position in the list. The index is need in communication with external classes.
Field Summary | |
---|---|
static ItemList |
INSTANCE
|
Constructor Summary | |
---|---|
ItemList()
Constructor creating a new itemlist. |
Method Summary | |
---|---|
int |
addItem(Item item)
Method for adding an item. |
Item |
getItem(int i)
Method for getting an item. |
int |
getSize()
|
int |
indexOfItem(Item item)
Method for getting the index of an item. |
java.lang.String |
toString()
Method for getting a printable representation of the itemlist. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static ItemList INSTANCE
Constructor Detail |
---|
public ItemList()
Method Detail |
---|
public int getSize()
public int addItem(Item item)
item
- The item
public int indexOfItem(Item item)
item
- The item
public Item getItem(int i)
i
- The index
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |