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

org.jpmml.model.visitors.StringInterner Maven / Gradle / Ivy

There is a newer version: 1.7.2
Show newest version
/*
 * 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. * If working with large class model objects, then it is advisable (for maximum performance) to configure the size of the string pool beforehand using JVM options -XX:MaxPermSize (Java 1.6) or -XX:StringTableSize (Java 1.7 and newer). * For more information, see String.intern in Java 6, 7 and 8 – string pooling. *

*/ public class StringInterner extends Interner { public StringInterner(){ super(String.class); } @Override public String intern(String string){ return string.intern(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy