All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tinygroup.fulltext.field.DateField Maven / Gradle / Ivy

The newest version!
package org.tinygroup.fulltext.field;

import java.util.Date;

public class DateField extends AbstractField implements StoreField{

	public DateField(String name, Date value) {
		this(name, value,true,true,false);
	}
	
	public DateField(String name, Date value,boolean indexed,boolean stored,boolean tokenized) {
		super(name, value);
		this.setIndexed(indexed);
		this.setStored(stored);
		this.setTokenized(tokenized);
	}

	public FieldType getType() {
		return FieldType.DATE;
	}


	public String toString() {
		return "DateField [name=" + getName() + ", value="
				+ getValue() + "]";
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy