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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
get
(int index) This is the low level access method designed for backend implementation.boolean
Checks if the whole collection is read-only.void
remove
(int index) void
setChangeOwner
(IChangeListener owner) Sets the new owner to send the dirty status to.void
setSecurityReferee
(ISecurityReferee securityReferee) 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
-
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:
getPrototype
in interfaceITypedList<T>
-
isReadOnly
public boolean isReadOnly()Description copied from interface:ITypedList
Checks if the whole collection is read-only.- Specified by:
isReadOnly
in interfaceITypedList<T>
- Returns:
true
if the whole collection is read-only,true
otherwise.- See Also:
-
markChanged
public void markChanged()- Specified by:
markChanged
in interfaceIChangeListener
-
setChangeOwner
Description copied from interface:IChangeGenerator
Sets the new owner to send the dirty status to.- Specified by:
setChangeOwner
in interfaceIChangeGenerator
- Parameters:
owner
- The actual owner ornull
to remove owner.
-
get
-
size
public int size()- Specified by:
size
in interfaceCollection<T>
- Specified by:
size
in interfaceList<T>
- Specified by:
size
in classAbstractCollection<T>
-
set
-
add
-
remove
-
setSecurityReferee
-