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

org.hibernate.search.bridge.builtin.BigIntegerBridge Maven / Gradle / Ivy

There is a newer version: 3.5.6-Final
Show newest version
//$Id: $
package org.hibernate.search.bridge.builtin;

import java.math.BigInteger;

import org.hibernate.util.StringHelper;

/**
 * Map a BigInteger element
 *
 * @author Emmanuel Bernard
 */
public class BigIntegerBridge extends NumberBridge {
	public Object stringToObject(String stringValue) {
		if ( StringHelper.isEmpty( stringValue ) ) return null;
		return new BigInteger( stringValue );
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy