Code example for Date

Methods: equals

0
			return false; 
		OnlineIndexerKey other = (OnlineIndexerKey) obj;
		if (day == null) {
			if (other.day != null)
				return false; 
		} else if (!day.equals(other.day))
			return false; 
		if (indexId != other.indexId)
			return false; 
		return true; 
	} 
 
	@Override 
	public String toString() {
		SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
		return "table=" + tableName + ", index=" + indexName + ", day=" + dateFormat.format(day);
	} 
 
}