io.github.konohiroaki.deepinitializer.ListUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deep-initializer Show documentation
Show all versions of deep-initializer Show documentation
Initialize deep bean recursively filling with default values.
The newest version!
package io.github.konohiroaki.deepinitializer;
import java.util.ArrayList;
import java.util.List;
class ListUtils {
static List reverse(List list) {
List reversed = new ArrayList<>();
for (int i = list.size() - 1; i >= 0; i--) {
reversed.add(list.get(i));
}
return reversed;
}
}