String toString()

Returns a string representation of this object.

Source

String toString() {
  var list = [];
  this.forEachItem((record) => list.add(record));
  var previous = [];
  this.forEachPreviousItem((record) => previous.add(record));
  var additions = [];
  this.forEachAddedItem((record) => additions.add(record));
  var moves = [];
  this.forEachMovedItem((record) => moves.add(record));
  var removals = [];
  this.forEachRemovedItem((record) => removals.add(record));
  var identityChanges = [];
  this.forEachIdentityChange((record) => identityChanges.add(record));
  return "collection: " +
      list.join(", ") +
      "\n" +
      "previous: " +
      previous.join(", ") +
      "\n" +
      "additions: " +
      additions.join(", ") +
      "\n" +
      "moves: " +
      moves.join(", ") +
      "\n" +
      "removals: " +
      removals.join(", ") +
      "\n" +
      "identityChanges: " +
      identityChanges.join(", ") +
      "\n";
}