Class EmptyTypedList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList
com.polarion.platform.persistence.spi.EmptyTypedList
- All Implemented Interfaces:
IChangeGenerator
,IChangeListener
,ITypedList
,Iterable
,Collection
,List
Immutable empty typed collection.
- Author:
- dobisekm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget
(int index) boolean
Checks if the whole collection is read-only.void
void
setChangeOwner
(IChangeListener owner) Sets the new owner to send the dirty status to.int
size()
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, 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, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
-
Constructor Details
-
EmptyTypedList
-
-
Method Details
-
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
-
getPrototype
- Specified by:
getPrototype
in interfaceITypedList
-
isReadOnly
public boolean isReadOnly()Description copied from interface:ITypedList
Checks if the whole collection is read-only.- Specified by:
isReadOnly
in interfaceITypedList
- 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.
-