Skip to content

Commit

Permalink
Update MutableCopyOnWriteList
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavo committed Aug 5, 2024
1 parent 4eb4618 commit bce2979
Showing 1 changed file with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,54 @@ public void append(E value) {
source.append(value);
}

@Override
public void appendAll(E @NotNull [] values) {
ensureExclusive();
source.appendAll(values);
}

@Override
public void appendAll(@NotNull Iterable<? extends E> values) {
ensureExclusive();
source.appendAll(values);
}

@Override
public void prepend(E value) {
ensureExclusive();
source.prepend(value);
}

@Override
public void prependAll(E @NotNull [] values) {
ensureExclusive();
source.prependAll(values);
}

@Override
public void prependAll(@NotNull Iterable<? extends E> values) {
ensureExclusive();
source.prependAll(values);
}

@Override
public void insert(int index, E value) {
ensureExclusive();
source.insert(index, value);
}

@Override
public void insertAll(int index, E @NotNull [] values) {
ensureExclusive();
source.insertAll(index, values);
}

@Override
public void insertAll(int index, @NotNull Iterable<? extends E> values) {
ensureExclusive();
source.insertAll(index, values);
}

@Override
public E removeAt(int index) {
ensureExclusive();
Expand Down

0 comments on commit bce2979

Please sign in to comment.