Class PObjectList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList
com.polarion.platform.persistence.spi.PObjectList
- All Implemented Interfaces:
IPObjectList,Iterable,Collection,List
- Author:
- dobisekm
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.polarion.platform.persistence.model.IPObjectList
IPObjectList.EmptyList -
Field Summary
Fields inherited from interface com.polarion.platform.persistence.model.IPObjectList
EMPTY_POBJECTLIST -
Constructor Summary
ConstructorsConstructorDescriptionPObjectList(IDataService dataSvc, List pobjects) Same asPObjectList dataSvc, opbjects, false).PObjectList(IDataService dataSvc, List pobjects, boolean readOnly) Wraps the given list ofIPObjects into the PObject list. -
Method Summary
Modifier and TypeMethodDescriptionvoidget(int index) static IPObjectListgetEmptyReadOnlyList(IDataService dataService) For internal use only.remove(int index) voidresolve(int first, int lenght) voidvoidresolveFirst(int n) intsize()Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, sort, spliterator, subList, toArray, toArray
-
Constructor Details
-
PObjectList
Same asPObjectList dataSvc, opbjects, false).- Parameters:
dataSvc-pobjects-- See Also:
-
PObjectList
Wraps the given list ofIPObjects into the PObject list.- Parameters:
dataSvc-pobjects-readOnly- Iftrue, then this list will be unmodifiable, iffalse, then the modifiability of this list depends on the pebaviour of the underlyingpobjectslist.
-
-
Method Details
-
getEmptyReadOnlyList
-
get
- Specified by:
getin interfaceList- Specified by:
getin classAbstractList
-
size
public int size()- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceList- Specified by:
sizein classAbstractCollection
-
resolveAll
public void resolveAll()- Specified by:
resolveAllin interfaceIPObjectList
-
resolveFirst
public void resolveFirst(int n) - Specified by:
resolveFirstin interfaceIPObjectList
-
resolve
public void resolve(int first, int lenght) - Specified by:
resolvein interfaceIPObjectList
-
set
- Specified by:
setin interfaceList- Overrides:
setin classAbstractList
-
add
- Specified by:
addin interfaceList- Overrides:
addin classAbstractList
-
remove
- Specified by:
removein interfaceList- Overrides:
removein classAbstractList
-
getUrisList
- Specified by:
getUrisListin interfaceIPObjectList- Returns:
- The list of URIs of objects in this list. The list is modifiable, but not live.
-
getDataService
- Specified by:
getDataServicein interfaceIPObjectList- Returns:
- The data service used by this list. Unmodifiable empty list might
return
null.
-
internalGetPObjects
For internal use only.- Since:
- 3.8.1
-