0001 /* 0002 * 默认判等器 0003 */ 0004 0005 package dsa; 0006 0007 public class EqualityTesterDefault implements EqualityTester { 0008 public EqualityTesterDefault() {} 0009 public boolean isEqualTo(Object a, Object b) 0010 { return (a.equals(b)); }//使用Java提供的判等器 0011 }