/* ********************************** * 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 DerivativeComparatorByType extends DerivativeComparator{ public DerivativeComparatorByType(Derivative d){ super(d); } public boolean huh(Derivative d){ return (d.type.equals(look.type)); } }