|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--java.util.AbstractSequentialList
|
+--com.solarmetric.rd.rop.MergedResultList
A MergedResultList is a wrapper for multiple instances of a
ResultList that may be returned. Support exists for
maintaining ordering of the internally held results, provided
that each of the individual results are themselves ordered and
a Comparator is provided.
| Field Summary |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
MergedResultList()
Constructor: create an empty MergedResultList. |
|
MergedResultList(java.util.Collection collection)
Constructor: create a MergedResultList with the contents of the specified Collection. |
|
MergedResultList(com.solarmetric.rd.rop.ResultList[] lists,
java.util.Comparator order)
Constructor: create a new MergedResultList from the
specified array of ResultList objects. |
|
| Method Summary | |
void |
checkClosed()
Invoke ResultList.checkClosed() on all the internally
held ResultLists |
void |
close()
Invoke ResultList.close() on all the internally
held ResultLists |
boolean |
equals(java.lang.Object other)
|
java.lang.Object |
get(int index)
Maintain a cache for random access. |
int |
getInstantiatedCount()
Sum the results of ResultList.getInstantiatedCount() on
all the internally held ResultLists |
int |
hashCode()
hashCode is calculated as the sum of all the
hashCodes of the internally held lists. |
boolean |
isClosed()
Returns true if any of the internally held lists are closed. |
java.util.ListIterator |
listIterator(int idx)
Returns a new ResultListIterator for this
ResultList that will deal with any ordering necessary. |
int |
size()
Size calculation will just sum up the the sized of embedded ResultLists. |
java.lang.Object |
writeReplace()
Convert this object to a LinkedList for serialization |
| Methods inherited from class java.util.AbstractSequentialList |
add, addAll, iterator, remove, set |
| Methods inherited from class java.util.AbstractList |
add, clear, indexOf, lastIndexOf, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, indexOf, isEmpty, iterator, lastIndexOf, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
| Constructor Detail |
public MergedResultList(com.solarmetric.rd.rop.ResultList[] lists,
java.util.Comparator order)
MergedResultList from the
specified array of ResultList objects. If a
Comparator is not null, then ordering will be
done in-memory. This requires that each element of the
lists array already be ordered according to the
rules in the specified Comparator. Elements of the
lists that are null or of size zero will be excluded.
public MergedResultList()
public MergedResultList(java.util.Collection collection)
Collection. This method
only exists because it is suggested by the Collections
specification.
| Method Detail |
public java.lang.Object get(int index)
get in interface java.util.Listget in class java.util.AbstractSequentialListpublic void close()
ResultList.close() on all the internally
held ResultLists
close in interface ResultListpublic boolean isClosed()
isClosed in interface ResultListpublic void checkClosed()
ResultList.checkClosed() on all the internally
held ResultLists
checkClosed in interface ResultListpublic int getInstantiatedCount()
ResultList.getInstantiatedCount() on
all the internally held ResultLists
getInstantiatedCount in interface ResultList
public java.lang.Object writeReplace()
throws java.io.ObjectStreamException
LinkedList for serialization
java.io.ObjectStreamExceptionpublic int hashCode()
hashCode is calculated as the sum of all the
hashCodes of the internally held lists.
hashCode in interface java.util.ListhashCode in class java.util.AbstractListpublic boolean equals(java.lang.Object other)
equals in interface java.util.Listequals in class java.util.AbstractListpublic final int size()
size in interface java.util.Listsize in class java.util.AbstractCollectionpublic java.util.ListIterator listIterator(int idx)
ResultListIterator for this
ResultList that will deal with any ordering necessary.
listIterator in interface java.util.ListlistIterator in class java.util.AbstractSequentialList
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||