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
ConstructorDescriptionPObjectList
(IDataService dataSvc, List pobjects) Same asPObjectList dataSvc, opbjects, false)
.PObjectList
(IDataService dataSvc, List pobjects, boolean readOnly) Wraps the given list ofIPObject
s into the PObject list. -
Method Summary
Modifier and TypeMethodDescriptionvoid
get
(int index) static IPObjectList
getEmptyReadOnlyList
(IDataService dataService) For internal use only.remove
(int index) void
resolve
(int first, int lenght) void
void
resolveFirst
(int n) int
size()
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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 ofIPObject
s 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 underlyingpobjects
list.
-
-
Method Details
-
getEmptyReadOnlyList
-
get
- Specified by:
get
in interfaceList
- Specified by:
get
in classAbstractList
-
size
public int size()- Specified by:
size
in interfaceCollection
- Specified by:
size
in interfaceList
- Specified by:
size
in classAbstractCollection
-
resolveAll
public void resolveAll()- Specified by:
resolveAll
in interfaceIPObjectList
-
resolveFirst
public void resolveFirst(int n) - Specified by:
resolveFirst
in interfaceIPObjectList
-
resolve
public void resolve(int first, int lenght) - Specified by:
resolve
in interfaceIPObjectList
-
set
- Specified by:
set
in interfaceList
- Overrides:
set
in classAbstractList
-
add
- Specified by:
add
in interfaceList
- Overrides:
add
in classAbstractList
-
remove
- Specified by:
remove
in interfaceList
- Overrides:
remove
in classAbstractList
-
getUrisList
- Specified by:
getUrisList
in interfaceIPObjectList
- Returns:
- The list of URIs of objects in this list. The list is modifiable, but not live.
-
getDataService
- Specified by:
getDataService
in interfaceIPObjectList
- Returns:
- The data service used by this list. Unmodifiable empty list might
return
null
.
-
internalGetPObjects
For internal use only.- Since:
- 3.8.1
-