List < Pokemon > function ( final PokemonIdOuterClass . PokemonId arg0 ) { return Stream . of ( pokemons ) . filter ( new Predicate < Pokemon > ( ) { @ Override public boolean test ( Pokemon arg1 ) { return arg1 . getPokemonId ( ) . equals ( arg0 ) ; } } ) . collect ( Collectors . < Pokemon > toList ( ) ) ; }
gets pokemon by pokemon id . concode_field_sep PokemonGo instance concode_elem_sep List<Pokemon> pokemons concode_field_sep Pokemon getPokemonById concode_elem_sep void addPokemon concode_elem_sep void removePokemon concode_elem_sep void reset