|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.TreeMap<java.lang.Integer,AbstractObjectList<E>>
messif.objects.util.GenericMatchingObjectList<E>
public class GenericMatchingObjectList<E extends AbstractObject>
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Constructor Summary | |
---|---|
GenericMatchingObjectList()
Creates a new instance of MatchingObjectList |
|
GenericMatchingObjectList(AbstractObjectIterator<E> iterator)
Creates a new instance of MatchingObjectList |
|
GenericMatchingObjectList(AbstractObjectIterator<E> iterator,
int partId)
Creates a new instance of MatchingObjectList |
Method Summary | |
---|---|
void |
add(E object,
int partId)
Add object to a specified part |
void |
add(int index,
E object,
int partId)
Insert object on a specified index position to a specified part |
E |
getObject(int index,
int partId)
Get object with index position from part partId |
int |
getObjectCount()
Returns number of object in all parts |
int |
getObjectCount(int partId)
Returns number of object in the given part. |
UniqueID |
getObjectID(int index,
int partId)
Get ID of object with index position from part partId |
protected AbstractObjectList<E> |
getPart(int partId)
|
protected AbstractObjectList<E> |
getPart(int partId,
boolean allocateNewIfMissing)
|
java.util.Set<java.lang.Integer> |
getPartIDs()
|
AbstractObjectIterator<E> |
iterator()
Returns iterator through all objects from all parts of this MatchingObjectList |
AbstractObjectIterator<E> |
iterator(int partId)
Returns iterator through objects from the specified part of this MatchingObjectList throws NoSuchElementException if specified part cannot be found |
AbstractObjectList<E> |
objects()
Returns list of all objects from all parts of this MatchingObjectList |
AbstractObjectList<E> |
objects(int partId)
Returns list of all objects from given part of this MatchingObjectList. |
AbstractObjectIterator<E> |
provideObjects()
The iterator for provided objects for ObjectProvider interface. |
boolean |
remove(E object,
int partId)
Remove object by index position from part partId throws NoSuchElementException if part is not found |
E |
remove(int index,
int partId)
Remove specified object from part partId throws NoSuchElementException if part is not found |
void |
removeAll(int partId)
|
java.lang.String |
toString()
String representation |
Methods inherited from class java.util.TreeMap |
---|
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, size, subMap, subMap, tailMap, tailMap, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, isEmpty |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode, isEmpty |
Constructor Detail |
---|
public GenericMatchingObjectList()
public GenericMatchingObjectList(AbstractObjectIterator<E> iterator)
public GenericMatchingObjectList(AbstractObjectIterator<E> iterator, int partId)
Method Detail |
---|
public java.util.Set<java.lang.Integer> getPartIDs()
protected AbstractObjectList<E> getPart(int partId)
protected AbstractObjectList<E> getPart(int partId, boolean allocateNewIfMissing)
public int getObjectCount(int partId)
partId
- partition id
public int getObjectCount()
public E getObject(int index, int partId)
java.util.NoSuchElementException
- if part is not found
java.lang.ArrayIndexOutOfBoundsException
- if object index is out of boundspublic UniqueID getObjectID(int index, int partId)
java.util.NoSuchElementException
- if part is not found
java.lang.ArrayIndexOutOfBoundsException
- if object index is out of boundspublic void add(E object, int partId)
public void add(int index, E object, int partId)
public E remove(int index, int partId)
public boolean remove(E object, int partId)
public void removeAll(int partId)
public AbstractObjectIterator<E> iterator(int partId)
public AbstractObjectList<E> objects(int partId) throws java.util.NoSuchElementException
java.util.NoSuchElementException
- if the part does not existpublic AbstractObjectIterator<E> iterator()
public AbstractObjectList<E> objects()
public AbstractObjectIterator<E> provideObjects()
provideObjects
in interface ObjectProvider
public java.lang.String toString()
toString
in class java.util.AbstractMap<java.lang.Integer,AbstractObjectList<E extends AbstractObject>>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |