Interface InternalCDOList
- All Superinterfaces:
CDOList,Collection<Object>,EList<Object>,Iterable<Object>,List<Object>,org.eclipse.net4j.util.collection.MoveableList<Object>,SequencedCollection<Object>
- All Known Subinterfaces:
InternalCDOList.ConfigurableEquality
Revision-owned list implementation contract for many-valued features. It tracks loaded versus unloaded positions,
adjusts references when IDs change, and notifies its owner when partial-loading state changes.
- Since:
- 2.0
- Author:
- Simon McDuff
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA mix-in interface forInternalCDOListthat allows to optimize the speed of equality checks.static interfaceInternal owner callbacks used for list/revision loaded-state accounting. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanadjustReferences(CDOReferenceAdjuster adjuster, EStructuralFeature feature) Adjusts references according to the passed adjuster and resynchronizes indexes.clone(EClassifier classifier) Clones the list.default voidfinishConstruction(boolean partial) Completes the temporary construction phase of this list.voidfreeze()default intgetServerIndexAt(int accessIndex) Returns the server-side index represented by the value at the given current list index.default voiddefault voidsetOwner(InternalCDOList.Owner owner) voidsetWithoutFrozenCheck(int i, Object value) Methods inherited from interface org.eclipse.emf.cdo.common.revision.CDOList
get, isFullyLoaded, isLoadedAtMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, size, spliterator, subList, toArray, toArrayMethods inherited from interface org.eclipse.net4j.util.collection.MoveableList
move
-
Field Details
-
UNINITIALIZED
Deprecated.As of 4.29 useCDORevisionUtil.UNINITIALIZEDinstead.
-
-
Method Details
-
setOwner
- Since:
- 4.29
-
loadValue
- Since:
- 4.29
-
getServerIndexAt
default int getServerIndexAt(int accessIndex) Returns the server-side index represented by the value at the given current list index.The current index is the index in this list. Implementations that represent unloaded values with a server-indexed proxy override this method to return the source index stored by that representation. For ordinary values, the current index is also the server-side index.
- Parameters:
accessIndex- the current logical index in this list- Returns:
- the server-side index represented by the value at
accessIndex - Since:
- 4.29
-
finishConstruction
default void finishConstruction(boolean partial) Completes the temporary construction phase of this list.- Parameters:
partial- whether positions that were not read must become unloaded- Since:
- 4.29
-
adjustReferences
Adjusts references according to the passed adjuster and resynchronizes indexes.- Since:
- 4.0
-
clone
Clones the list. -
freeze
void freeze()- Since:
- 4.0
-
setWithoutFrozenCheck
- Since:
- 4.0
-
CDORevisionUtil.UNINITIALIZEDinstead.