Lines Matching defs:snapshot
64 * concurrent threads. The "snapshot" style iterator method uses a
508 Object[] snapshot = getArray();
509 int index = indexOf(o, snapshot, 0, snapshot.length);
510 return (index < 0) ? false : remove(o, snapshot, index);
515 * recent snapshot contains o at the given index.
517 private boolean remove(Object o, Object[] snapshot, int index) {
521 if (snapshot != current) findIndex: {
524 if (current[i] != snapshot[i]
588 Object[] snapshot = getArray();
589 return indexOf(e, snapshot, 0, snapshot.length) >= 0 ? false :
590 addIfAbsent(e, snapshot);
595 * recent snapshot does not contain e.
597 private boolean addIfAbsent(E e, Object[] snapshot) {
601 if (snapshot != current) {
603 int common = Math.min(snapshot.length, len);
605 if (current[i] != snapshot[i]
1007 * <p>The returned iterator provides a snapshot of the state of the list
1021 * <p>The returned iterator provides a snapshot of the state of the list
1033 * <p>The returned iterator provides a snapshot of the state of the list
1056 * <p>The spliterator provides a snapshot of the state of the list
1070 private final Object[] snapshot;
1076 snapshot = elements;
1080 return cursor < snapshot.length;
1091 return (E) snapshot[cursor++];
1098 return (E) snapshot[--cursor];
1140 final int size = snapshot.length;
1142 action.accept((E) snapshot[i]);