public static List<Species> jannaPokemonList(Predicate<Species> lambdacondition) {
List<Species> all = getAll();
all.removeIf(lambdacondition);
//TODO print the field?
System.out.println("§c["+all.size()+"]\n§f");
all.stream().sorted(Comparator.comparingInt(Species::getDex)).forEach(a->System.out.println(a.getDex()+": "+ a.getName()));
return all;
}
basically i have this bad boy, and when i run the code i get nice long lists of data, the problem is. i dunno which list is what. so i want to somehow get the field name, so i know which list it is.
how would i able to do this?