org.tinygroup.fulltext.field.IntField Maven / Gradle / Ivy
The newest version!
package org.tinygroup.fulltext.field;
public class IntField extends AbstractField implements StoreField{
public IntField(String name, Integer value) {
this(name,value,true,true,false);
}
public IntField(String name, String value) {
this(name,value,true,true,false);
}
public IntField(String name, Integer value,boolean indexed,boolean stored,boolean tokenized) {
super(name, value);
this.setIndexed(indexed);
this.setStored(stored);
this.setTokenized(tokenized);
}
public IntField(String name, String value,boolean indexed,boolean stored,boolean tokenized) {
this(name,Integer.parseInt(value),indexed,stored,tokenized);
}
public FieldType getType() {
return FieldType.INT;
}
public String toString() {
return "IntField [name=" + getName() + ", value="
+ getValue() + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy