File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
src/main/java/org/javawebstack/abstractdata Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -274,6 +274,28 @@ public Object toObject() {
274274 return list ;
275275 }
276276
277+ public List <String > toStringList () {
278+ return toStringList (false );
279+ }
280+
281+ public List <String > toStringList (boolean strict ) {
282+ List <String > list = new ArrayList <>();
283+ for (AbstractElement e : elements )
284+ list .add (e .string (strict ));
285+ return list ;
286+ }
287+
288+ public List <AbstractObject > toObjectList () {
289+ return toObjectList (false );
290+ }
291+
292+ public List <AbstractObject > toObjectList (boolean strict ) {
293+ List <AbstractObject > list = new ArrayList <>();
294+ for (AbstractElement e : elements )
295+ list .add (e .object (strict ));
296+ return list ;
297+ }
298+
277299 public static AbstractArray fromArray (Object [] objects ) {
278300 return new AbstractArray (objects );
279301 }
You can’t perform that action at this time.
0 commit comments