Class ORecordLazySet

java.lang.Object
java.util.AbstractCollection<OIdentifiable>
com.orientechnologies.orient.core.db.record.ORecordLazySet
All Implemented Interfaces:
OSizeable, OAutoConvertToRecord, ODetachable, ORecordElement, ORecordLazyMultiValue, OTrackedMultiValue<OIdentifiable,OIdentifiable>, OIdentityChangeListener, Iterable<OIdentifiable>, Collection<OIdentifiable>, Set<OIdentifiable>

Lazy implementation of Set. Can be bound to a source ORecord object to keep track of changes. This avoid to call the makeDirty() by hand when the set is changed.

Internals:

  • stores new records in a separate IdentityHashMap to keep underlying list (delegate) always ordered and minimizing sort operations

Author:
Luca Garulli (l.garulli--(at)--orientdb.com)