mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fixed iterator remove() methods so they dont skip container elements
This commit is contained in:
committed by
Leslie Watkins
parent
3aefae4470
commit
2bb3582195
@@ -158,6 +158,7 @@ public class FloatDict {
|
||||
|
||||
public void remove() {
|
||||
removeIndex(index);
|
||||
index--;
|
||||
}
|
||||
|
||||
public String next() {
|
||||
@@ -218,6 +219,7 @@ public class FloatDict {
|
||||
|
||||
public void remove() {
|
||||
removeIndex(index);
|
||||
index--;
|
||||
}
|
||||
|
||||
public Float next() {
|
||||
|
||||
@@ -793,6 +793,7 @@ public class FloatList implements Iterable<Float> {
|
||||
|
||||
public void remove() {
|
||||
FloatList.this.remove(index);
|
||||
index--;
|
||||
}
|
||||
|
||||
public Float next() {
|
||||
|
||||
@@ -159,6 +159,7 @@ public class IntDict {
|
||||
|
||||
public void remove() {
|
||||
removeIndex(index);
|
||||
index--;
|
||||
}
|
||||
|
||||
public String next() {
|
||||
@@ -219,6 +220,7 @@ public class IntDict {
|
||||
|
||||
public void remove() {
|
||||
removeIndex(index);
|
||||
index--;
|
||||
}
|
||||
|
||||
public Integer next() {
|
||||
|
||||
@@ -737,6 +737,7 @@ public class IntList implements Iterable<Integer> {
|
||||
|
||||
public void remove() {
|
||||
IntList.this.remove(index);
|
||||
index--;
|
||||
}
|
||||
|
||||
public Integer next() {
|
||||
|
||||
@@ -160,6 +160,7 @@ public class StringDict {
|
||||
|
||||
public void remove() {
|
||||
removeIndex(index);
|
||||
index--;
|
||||
}
|
||||
|
||||
public String next() {
|
||||
@@ -219,6 +220,7 @@ public class StringDict {
|
||||
|
||||
public void remove() {
|
||||
removeIndex(index);
|
||||
index--;
|
||||
}
|
||||
|
||||
public String next() {
|
||||
|
||||
@@ -657,6 +657,7 @@ public class StringList implements Iterable<String> {
|
||||
|
||||
public void remove() {
|
||||
StringList.this.remove(index);
|
||||
index--;
|
||||
}
|
||||
|
||||
public String next() {
|
||||
@@ -768,4 +769,4 @@ public class StringList implements Iterable<String> {
|
||||
sb.append(" ]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user