org.jpmml.model.visitors.StringInterner Maven / Gradle / Ivy
/*
* Copyright (c) 2015 Villu Ruusmann
*/
package org.jpmml.model.visitors;
/**
*
* A Visitor that interns {@link String} attribute values.
*
*
*
* Strings are interned using the standard {@link String#intern()} method.
*
*/
public class StringInterner extends AttributeInterner {
public StringInterner(){
super(String.class);
}
@Override
public String intern(String string){
return string.intern();
}
}