package utils.comparator;

import edu.neu.ccs.demeterf.demfgen.lib.List;
import gen.Pair;
import gen.PlayerID;

/** Class to determine whether two player accounts belong to the same player
 * @author animesh
 *
 */
public class PlayerAccountComparator extends List.Pred<Pair<PlayerID, Double>>{
	Pair<PlayerID, Double> look;
    public PlayerAccountComparator(Pair<PlayerID, Double> accountChange) {
		look = accountChange;
	}
	@Override
	public boolean huh(Pair<PlayerID, Double> account) {
		return account.a.equals(look.a);
	}
}