File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
android/src/main/java/net/servicestack/client
client/src/main/java/net/servicestack/client Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -635,6 +635,12 @@ public static ResponseStatus createResponseStatus(JsonObject obj) {
635635 return status ;
636636 }
637637
638+ public static <T > ArrayList <T > asList (T ... params ) {
639+ ArrayList <T > to = new ArrayList <>();
640+ to .addAll (Arrays .asList (params ));
641+ return to ;
642+ }
643+
638644 public static <T > ArrayList <T > createList (T ... params ) {
639645 ArrayList <T > to = new ArrayList <>();
640646 to .addAll (Arrays .asList (params ));
Original file line number Diff line number Diff line change @@ -635,6 +635,12 @@ public static ResponseStatus createResponseStatus(JsonObject obj) {
635635 return status ;
636636 }
637637
638+ public static <T > ArrayList <T > asList (T ... params ) {
639+ ArrayList <T > to = new ArrayList <>();
640+ to .addAll (Arrays .asList (params ));
641+ return to ;
642+ }
643+
638644 public static <T > ArrayList <T > createList (T ... params ) {
639645 ArrayList <T > to = new ArrayList <>();
640646 to .addAll (Arrays .asList (params ));
You can’t perform that action at this time.
0 commit comments