|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.isi.powerloom.semantic_web.Collector edu.isi.powerloom.semantic_web.ListCollector
public class ListCollector
Collects items into a list, which can be retrieved with
the getList
method.
Field Summary | |
---|---|
boolean |
reversedP
|
List |
theList
|
Constructor Summary | |
---|---|
ListCollector()
|
Method Summary | |
---|---|
List |
getList()
Return the internal list used by self . |
void |
insert(Stella_Object item)
Insert item into the collector self . |
static ListCollector |
newListCollector()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public List theList
public boolean reversedP
Constructor Detail |
---|
public ListCollector()
Method Detail |
---|
public static ListCollector newListCollector()
public List getList()
self
. This will have the
elements added in order when returned. But since it is shared with the
collector, the order and values can change if insert
is called after
the list has been returned. If this is a concern, copy the returned value.
public void insert(Stella_Object item)
item
into the collector self
. It will be added
to the internal list of items collected.
insert
in class Collector
item
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |