@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof DeadlineImpl)) { return false; } DeadlineImpl other = (DeadlineImpl) obj; if (date == null) { if (other.date != null) { return false; } } else if (date.getTime() != other.date.getTime()) { return false; } if (isEscalated() != other.isEscalated()) { return false; } return CollectionUtils.equals(documentation, other.documentation) && CollectionUtils.equals(escalations, other.escalations); } }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((date == null) ? 0 : date.hashCode()); result = prime * result + CollectionUtils.hashCode(documentation); result = prime * result + CollectionUtils.hashCode(escalations); result = prime * result + (isEscalated() ? 1231 : 1237); if (id != null) { result = prime * result + (int) (id ^ (id >>> 32)); } return result; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof DeadlineImpl)) { return false; } DeadlineImpl other = (DeadlineImpl) obj; if (date == null) { if (other.date != null) { return false; } } else if (date.getTime() != other.date.getTime()) { return false; } if (isEscalated() != other.isEscalated()) { return false; } return CollectionUtils.equals(documentation, other.documentation) && CollectionUtils.equals(escalations, other.escalations); } }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((date == null) ? 0 : date.hashCode()); result = prime * result + CollectionUtils.hashCode(documentation); result = prime * result + CollectionUtils.hashCode(escalations); result = prime * result + (isEscalated() ? 1231 : 1237); if (id != null) { result = prime * result + (int) (id ^ (id >>> 32)); } return result; }