88import java .util .function .Predicate ;
99import java .util .stream .Stream ;
1010
11+ import static alpine .json .Element .*;
12+
1113/**
1214 * A JSON element which in itself stores an ordered sequence of elements.
1315 * @see <a href="https://datatracker.ietf.org/doc/html/rfc8259#section-5">RFC 8259</a>
@@ -94,15 +96,15 @@ public boolean has(Element element) {
9496 }
9597
9698 public boolean has (String value ) {
97- return this .has (Element . string (value ));
99+ return this .has (string (value ));
98100 }
99101
100102 public boolean has (Number value ) {
101- return this .has (Element . number (value ));
103+ return this .has (number (value ));
102104 }
103105
104- public boolean has (Boolean value ) {
105- return this .has (Element . bool (value ));
106+ public boolean has (boolean value ) {
107+ return this .has (bool (value ));
106108 }
107109
108110 public void each (Consumer <Element > consumer ) {
@@ -147,15 +149,15 @@ public ArrayElement append(Element element) {
147149 }
148150
149151 public ArrayElement append (boolean element ) {
150- return this .append (Element . bool (element ));
152+ return this .append (bool (element ));
151153 }
152154
153155 public ArrayElement append (Number element ) {
154- return this .append (Element . number (element ));
156+ return this .append (number (element ));
155157 }
156158
157159 public ArrayElement append (String element ) {
158- return this .append (Element . string (element ));
160+ return this .append (string (element ));
159161 }
160162
161163 public ArrayElement set (int index , Element element ) {
@@ -164,15 +166,15 @@ public ArrayElement set(int index, Element element) {
164166 }
165167
166168 public ArrayElement set (int index , boolean element ) {
167- return this .set (index , Element . bool (element ));
169+ return this .set (index , bool (element ));
168170 }
169171
170172 public ArrayElement set (int index , Number element ) {
171- return this .set (index , Element . number (element ));
173+ return this .set (index , number (element ));
172174 }
173175
174176 public ArrayElement set (int index , String element ) {
175- return this .set (index , Element . string (element ));
177+ return this .set (index , string (element ));
176178 }
177179
178180 public ArrayElement insert (int index , Element element ) {
@@ -181,15 +183,15 @@ public ArrayElement insert(int index, Element element) {
181183 }
182184
183185 public ArrayElement insert (int index , boolean element ) {
184- return this .insert (index , Element . bool (element ));
186+ return this .insert (index , bool (element ));
185187 }
186188
187189 public ArrayElement insert (int index , Number element ) {
188- return this .insert (index , Element . number (element ));
190+ return this .insert (index , number (element ));
189191 }
190192
191193 public ArrayElement insert (int index , String element ) {
192- return this .insert (index , Element . string (element ));
194+ return this .insert (index , string (element ));
193195 }
194196
195197 public ArrayElement remove (int index ) {
@@ -201,15 +203,15 @@ public ArrayElement removeValue(Element element) {
201203 }
202204
203205 public ArrayElement removeValue (boolean element ) {
204- return this .removeValue (Element . bool (element ));
206+ return this .removeValue (bool (element ));
205207 }
206208
207209 public ArrayElement removeValue (Number element ) {
208- return this .removeValue (Element . number (element ));
210+ return this .removeValue (number (element ));
209211 }
210212
211213 public ArrayElement removeValue (String element ) {
212- return this .removeValue (Element . string (element ));
214+ return this .removeValue (string (element ));
213215 }
214216
215217 public ArrayElement clear () {
0 commit comments