public CassandraNotification(String id) { String[] columns = parseId(id); if (columns != null && columns.length == COMPOSITE_ID_SIZE) { this.topicId = columns[0]; this.type = NotificationTypeDto.valueOf(columns[1]); this.nfVersion = Integer.valueOf(columns[2]); this.seqNum = Integer.valueOf(columns[3]); } }
@Override public int hashCode() { int result = endpointKeyHash != null ? endpointKeyHash.hashCode() : 0; result = 31 * result + (seqNum != null ? seqNum.hashCode() : 0); result = 31 * result + (id != null ? id.hashCode() : 0); result = 31 * result + (type != null ? type.hashCode() : 0); result = 31 * result + (applicationId != null ? applicationId.hashCode() : 0); result = 31 * result + (schemaId != null ? schemaId.hashCode() : 0); result = 31 * result + nfVersion; result = 31 * result + (lastModifyTime != null ? lastModifyTime.hashCode() : 0); result = 31 * result + (body != null ? body.hashCode() : 0); result = 31 * result + (expiredAt != null ? expiredAt.hashCode() : 0); return result; }