public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static List<net.sf.json.JSONObject> |
filter(net.sf.json.JSONArray array,
Filter<net.sf.json.JSONObject> filter) |
static <T> List<T> |
filter(List<T> src,
Filter<T> filter) |
static <T> void |
map(List<T> src,
Action<T> action) |
static String[] |
toStringArray(net.sf.json.JSONArray jsonArray) |
static <R> List<R> |
transform(net.sf.json.JSONArray array,
Transformer<net.sf.json.JSONObject,R> transformer) |
static <T,R> List<R> |
transform(List<T> src,
Transformer<T,R> transformer) |
public static String[] toStringArray(net.sf.json.JSONArray jsonArray)
public static List<net.sf.json.JSONObject> filter(net.sf.json.JSONArray array, Filter<net.sf.json.JSONObject> filter)
public static <T,R> List<R> transform(List<T> src, Transformer<T,R> transformer)
public static <R> List<R> transform(net.sf.json.JSONArray array, Transformer<net.sf.json.JSONObject,R> transformer)
Copyright © 2016–2019. All rights reserved.