org.jpmml.model.visitors.MiningFieldInterner Maven / Gradle / Ivy
/*
* Copyright (c) 2016 Villu Ruusmann
*/
package org.jpmml.model.visitors;
import org.dmg.pmml.MiningField;
import org.jpmml.model.PMMLObjectCache;
/**
*
* A Visitor that interns {@link MiningField} elements.
*
*/
public class MiningFieldInterner extends PMMLObjectInterner {
public MiningFieldInterner(){
super(MiningField.class, MiningFieldInterner.CACHE_PROVIDER.get());
}
public static final ThreadLocal> CACHE_PROVIDER = new ThreadLocal>(){
@Override
public PMMLObjectCache initialValue(){
return new PMMLObjectCache<>();
}
};
}