Skip to content

Commit 51b6053

Browse files
committed
rename anyValues to anyValue
1 parent 6de7d50 commit 51b6053

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

json/src/main/java/alpine/json/ArrayElement.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,16 @@ public boolean has(Element element) {
9595
return this.elements.contains(element);
9696
}
9797

98-
public boolean has(String value) {
99-
return this.has(string(value));
98+
public boolean has(boolean value) {
99+
return this.has(bool(value));
100100
}
101101

102102
public boolean has(Number value) {
103103
return this.has(number(value));
104104
}
105105

106-
public boolean has(boolean value) {
107-
return this.has(bool(value));
106+
public boolean has(String value) {
107+
return this.has(string(value));
108108
}
109109

110110
public void each(Consumer<Element> consumer) {

json/src/main/java/alpine/json/ObjectElement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public boolean allValues(Predicate<Element> predicate) {
243243
return true;
244244
}
245245

246-
public boolean anyValues(Predicate<Element> predicate) {
246+
public boolean anyValue(Predicate<Element> predicate) {
247247
if (predicate == null) {
248248
throw new IllegalArgumentException("Predicate cannot be null!");
249249
}

0 commit comments

Comments
 (0)