예제 #1
0
  /* (non-Javadoc)
   * @see java.lang.Object#equals(java.lang.Object)
   */
  public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof SubType)) return false;

    final SubType subType = (SubType) o;

    if ((name != null && !name.equals(subType.getName()))
        || (name == null && subType.getName() != null)) return false;

    return true;
  }