// Path: src/main/java/com/rolfje/anonimatron/synonyms/DateSynonym.java
// public class DateSynonym implements Synonym {
//     private String type;
//     private Date from;
//     private Date to;
//     private boolean shortlived = false;
// 
//     public String getType() {
//         return type;
//     }
// 
//     public Object getFrom() {
//         return from;
//     }
// 
//     public Object getTo() {
//         return to;
//     }
// 
//     public void setType(String type) {
//         this.type = type;
//     }
// 
//     public void setTo(Object to) {
//         this.to = (Date) to;
//     }
// 
//     public void setFrom(Object from) {
//         this.from = (Date) from;
//     }
// 
//     public void setShortlived(boolean shortlived) {
//         this.shortlived = shortlived;
//     }
// 
//     @Override
//     public boolean isShortLived() {
//         return shortlived;
//     }
// 
//     @Override
//     public boolean equals(Object obj) {
//         return (obj != null) && (this.getClass() == obj.getClass()) && (this.hashCode() == obj.hashCode());
//     }
// 
//     @Override
//     public int hashCode() {
//         return from.hashCode() + to.hashCode() + type.hashCode();
//     }
// }
// 
// Path: src/main/java/com/rolfje/anonimatron/synonyms/Synonym.java
// public interface Synonym {
// 
// 	/**
// 	 * Indicates if this Synonym is short-lived or transient, meaning that
//      * it should not be stored in the synonyms file. Transient Synonyms
//      * are not stored, need to be calculated each run time.
// 	 *
// 	 * Transient synonyms are:
// 	 *
// 	 * <ol>
// 	 *     <li>Not stored in memory.</li>
// 	 *     <li>Not stored in the synonym file.</li>
// 	 * </ol>
// 	 *
// 	 * @return <code>true</code> if the synonym should be thrown away
// 	 * after use (not stored in the synonym file).
// 	 */
// 	boolean isShortLived();
// 
// 	/**
// 	 * @return The semantic data type of this Synonym, usually something
// 	 *         descriptive as "NAME" or "STREET".
// 	 */
// 	String getType();
// 
// 	/**
// 	 * @return The data which was in the original database for this Synonym
// 	 */
// 	Object getFrom();
// 
// 	/**
// 	 * 
// 	 * @return The data with which the original data in the database will be or
// 	 *         is replaced when the Anonymizer runs.
// 	 */
// 	Object getTo();
// }


import com.rolfje.anonimatron.synonyms.DateSynonym;
import com.rolfje.anonimatron.synonyms.Synonym;
import java.sql.Date;
import java.util.HashSet;
import java.util.Set;
package com.rolfje.anonimatron.anonymizer;



class DateAnonymizer implements Anonymizer {
	private static final String TYPE = "DATE";
	private static final long RANDOMIZATION_MILLIS = 1000L * 60L * 60L * 24L * 31L;

	private Set<Date> generatedDates = new HashSet<>();

	@Override
	public Synonym anonymize(Object from, int size, boolean shortlived) {
// Path: src/main/java/com/rolfje/anonimatron/synonyms/DateSynonym.java
// public class DateSynonym implements Synonym {
//     private String type;
//     private Date from;
//     private Date to;
//     private boolean shortlived = false;
// 
//     public String getType() {
//         return type;
//     }
// 
//     public Object getFrom() {
//         return from;
//     }
// 
//     public Object getTo() {
//         return to;
//     }
// 
//     public void setType(String type) {
//         this.type = type;
//     }
// 
//     public void setTo(Object to) {
//         this.to = (Date) to;
//     }
// 
//     public void setFrom(Object from) {
//         this.from = (Date) from;
//     }
// 
//     public void setShortlived(boolean shortlived) {
//         this.shortlived = shortlived;
//     }
// 
//     @Override
//     public boolean isShortLived() {
//         return shortlived;
//     }
// 
//     @Override
//     public boolean equals(Object obj) {
//         return (obj != null) && (this.getClass() == obj.getClass()) && (this.hashCode() == obj.hashCode());
//     }
// 
//     @Override
//     public int hashCode() {
//         return from.hashCode() + to.hashCode() + type.hashCode();
//     }
// }
// 
// Path: src/main/java/com/rolfje/anonimatron/synonyms/Synonym.java
// public interface Synonym {
// 
// 	/**
// 	 * Indicates if this Synonym is short-lived or transient, meaning that
//      * it should not be stored in the synonyms file. Transient Synonyms
//      * are not stored, need to be calculated each run time.
// 	 *
// 	 * Transient synonyms are:
// 	 *
// 	 * <ol>
// 	 *     <li>Not stored in memory.</li>
// 	 *     <li>Not stored in the synonym file.</li>
// 	 * </ol>
// 	 *
// 	 * @return <code>true</code> if the synonym should be thrown away
// 	 * after use (not stored in the synonym file).
// 	 */
// 	boolean isShortLived();
// 
// 	/**
// 	 * @return The semantic data type of this Synonym, usually something
// 	 *         descriptive as "NAME" or "STREET".
// 	 */
// 	String getType();
// 
// 	/**
// 	 * @return The data which was in the original database for this Synonym
// 	 */
// 	Object getFrom();
// 
// 	/**
// 	 * 
// 	 * @return The data with which the original data in the database will be or
// 	 *         is replaced when the Anonymizer runs.
// 	 */
// 	Object getTo();
// }


// Path: src/main/java/com/rolfje/anonimatron/anonymizer/DateAnonymizer.java
import com.rolfje.anonimatron.synonyms.DateSynonym;
import com.rolfje.anonimatron.synonyms.Synonym;
import java.sql.Date;
import java.util.HashSet;
import java.util.Set;

package com.rolfje.anonimatron.anonymizer;



class DateAnonymizer implements Anonymizer {
	private static final String TYPE = "DATE";
	private static final long RANDOMIZATION_MILLIS = 1000L * 60L * 60L * 24L * 31L;

	private Set<Date> generatedDates = new HashSet<>();

	@Override
	public Synonym anonymize(Object from, int size, boolean shortlived) {
		DateSynonym s = new DateSynonym();