List Instance Methods

  • size()

Answers the number of elements held by the receiver. Does not include elements scheduled for deletion.

  • currentElement()

Answer the DataElement instance from the elements collection referred to by the currentPosition instance variable.

  • isDirty()

Answer a boolean indicating whether any element is dirty. The test is recursive, and answers true if any descendant has the _​isDirty flag set.

  • markElementsAsNew()

This convenience method marks all elements in the collection as new, setting the _​isDirty flag to true and setting the originalIndex to -1 for every DataElement. The method acts recursively on all descendant lists and elements.

  • realSize()

Answers the number of elements, disregarding any phantom element.

  • hasRealElements()

Answers true if the list contains at least one non-phantom element.