org.hibernate.search.bridge.builtin.DoubleBridge Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-annotations
Show all versions of hibernate-annotations
Annotations metadata for Hibernate
//$Id: $
package org.hibernate.search.bridge.builtin;
import org.hibernate.util.StringHelper;
/**
* Map a double element
*
* @author Emmanuel Bernard
*/
public class DoubleBridge extends NumberBridge {
public Object stringToObject(String stringValue) {
if ( StringHelper.isEmpty( stringValue ) ) return null;
return new Double( stringValue );
}
}