public int hashCode() {
   int result;
   result = username.hashCode();
   result = 29 * result + dateAdded.hashCode();
   result = 29 * result + item.hashCode();
   result = 29 * result + category.hashCode();
   return result;
 }
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    final CategorizedItemComponent that = (CategorizedItemComponent) o;

    if (!category.equals(that.category)) return false;
    if (!dateAdded.equals(that.dateAdded)) return false;
    if (!item.equals(that.item)) return false;
    if (!username.equals(that.username)) return false;

    return true;
  }
示例#3
0
 @Override
 public String toString() {
   StringBuffer sb = new StringBuffer();
   sb.append("id [").append(id);
   sb.append("]; parent [").append(parent == null ? "" : parent.getId());
   sb.append("]; summary [").append(summary);
   sb.append("]; detail [").append(detail);
   sb.append("]; loggedBy [").append(loggedBy);
   sb.append("]; status [").append(status);
   sb.append("]; assignedTo [").append(assignedTo);
   sb.append("]; timeStamp [").append(timeStamp);
   sb.append("]; severity [").append(severity);
   sb.append("]; priority [").append(priority);
   sb.append("]; cusInt01 [").append(cusInt01);
   sb.append("]; cusInt02 [").append(cusInt02);
   sb.append("]; cusInt03 [").append(cusInt03);
   sb.append("]; cusInt04 [").append(cusInt04);
   sb.append("]; cusInt05 [").append(cusInt05);
   sb.append("]; cusInt06 [").append(cusInt06);
   sb.append("]; cusInt07 [").append(cusInt07);
   sb.append("]; cusInt08 [").append(cusInt08);
   sb.append("]; cusInt09 [").append(cusInt09);
   sb.append("]; cusInt10 [").append(cusInt10);
   sb.append("]; cusDbl01 [").append(cusDbl01);
   sb.append("]; cusDbl02 [").append(cusDbl02);
   sb.append("]; cusDbl03 [").append(cusDbl03);
   sb.append("]; cusStr01 [").append(cusStr01);
   sb.append("]; cusStr02 [").append(cusStr02);
   sb.append("]; cusStr03 [").append(cusStr03);
   sb.append("]; cusStr04 [").append(cusStr04);
   sb.append("]; cusStr05 [").append(cusStr05);
   sb.append("]; cusTim01 [").append(cusTim01);
   sb.append("]; cusTim02 [").append(cusTim02);
   sb.append("]; cusTim03 [").append(cusTim03);
   sb.append("]");
   return sb.toString();
 }