Class AbstractTypedList<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
com.polarion.platform.persistence.spi.AbstractTypedList<T>
- All Implemented Interfaces:
IChangeGenerator,IChangeListener,ITypedList<T>,Iterable<T>,Collection<T>,List<T>
- Direct Known Subclasses:
CustomTypedList,ModelTypedList
This is an abstract implementation of list which wraps underlying list into a
typed PObject level.
To get the usable implementation, the methods wrap(int, Object) and
unwrap(Object) have to be implemented. These do handle the
translation between the low-level and high-level items.
This class is intended for internal use only.
- Author:
- POLARION SOFTWARE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidget(int index) This is the low level access method designed for backend implementation.booleanChecks if the whole collection is read-only.voidremove(int index) voidsetChangeOwner(IChangeListener owner) Sets the new owner to send the dirty status to.voidsetSecurityReferee(ISecurityReferee securityReferee) 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
-
AbstractTypedList
-
-
Method Details
-
getRawData
This is the low level access method designed for backend implementation. It should not be called by clients.- Returns:
- the raw data
-
getPrototype
- Specified by:
getPrototypein interfaceITypedList<T>
-
isReadOnly
public boolean isReadOnly()Description copied from interface:ITypedListChecks if the whole collection is read-only.- Specified by:
isReadOnlyin interfaceITypedList<T>- Returns:
trueif the whole collection is read-only,trueotherwise.- See Also:
-
markChanged
public void markChanged()- Specified by:
markChangedin interfaceIChangeListener
-
setChangeOwner
Description copied from interface:IChangeGeneratorSets the new owner to send the dirty status to.- Specified by:
setChangeOwnerin interfaceIChangeGenerator- Parameters:
owner- The actual owner ornullto remove owner.
-
get
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-
set
-
add
-
remove
-
setSecurityReferee
-