// Path: library/src/main/java/com/pokegoapi/api/inventory/Pokeball.java
// public enum Pokeball {
// 	POKEBALL(ItemId.ITEM_POKE_BALL, 1.0),
// 	GREATBALL(ItemId.ITEM_GREAT_BALL, 0.4),
// 	ULTRABALL(ItemId.ITEM_ULTRA_BALL, 0.2),
// 	MASTERBALL(ItemId.ITEM_MASTER_BALL, 0.0);
// 
// 	@Getter
// 	public final ItemId ballType;
// 	@Getter
// 	public final double captureProbability;
// 
// 	Pokeball(ItemId type, double probability) {
// 		ballType = type;
// 		captureProbability = probability;
// 	}
// }


import com.pokegoapi.api.inventory.Pokeball;
import java.util.List;
/*
 *     This program is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 *     You should have received a copy of the GNU General Public License
 *     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.pokegoapi.api.settings;



public interface PokeballSelector {
	/**
	 * Selects the lowest possible pokeball
	 */
	PokeballSelector LOWEST = new PokeballSelector() {
		@Override
// Path: library/src/main/java/com/pokegoapi/api/inventory/Pokeball.java
// public enum Pokeball {
// 	POKEBALL(ItemId.ITEM_POKE_BALL, 1.0),
// 	GREATBALL(ItemId.ITEM_GREAT_BALL, 0.4),
// 	ULTRABALL(ItemId.ITEM_ULTRA_BALL, 0.2),
// 	MASTERBALL(ItemId.ITEM_MASTER_BALL, 0.0);
// 
// 	@Getter
// 	public final ItemId ballType;
// 	@Getter
// 	public final double captureProbability;
// 
// 	Pokeball(ItemId type, double probability) {
// 		ballType = type;
// 		captureProbability = probability;
// 	}
// }


// Path: library/src/main/java/com/pokegoapi/api/settings/PokeballSelector.java
import com.pokegoapi.api.inventory.Pokeball;
import java.util.List;

/*
 *     This program is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 *     You should have received a copy of the GNU General Public License
 *     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.pokegoapi.api.settings;



public interface PokeballSelector {
	/**
	 * Selects the lowest possible pokeball
	 */
	PokeballSelector LOWEST = new PokeballSelector() {
		@Override
		public Pokeball select(List<Pokeball> pokeballs, double captureProbability) {