/* ********************************** * DerivativeComparatorByType.java * DerivativeComparatorByType ************************************/ package sdg.local.utils.comparator; import gen.Derivative; /** Class to determine whether two derivatives are same based on their types */ public class SameDerivativeByType extends SameDerivative{ public SameDerivativeByType(Derivative d){ super(d); } public boolean huh(Derivative d){ return (d.type.equals(look.type)); } }