Class NumberBridge
java.lang.Object
org.hibernate.search.bridge.builtin.NumberBridge
- All Implemented Interfaces:
StringBridge,TwoWayStringBridge
- Direct Known Subclasses:
BigDecimalBridge,BigIntegerBridge,DoubleBridge,FloatBridge,IntegerBridge,LongBridge,ShortBridge
Base class for numbers - integer, double, etc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionobjectToString(Object object) Converts the object representation to a string.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.search.bridge.TwoWayStringBridge
stringToObject
-
Constructor Details
-
NumberBridge
public NumberBridge()
-
-
Method Details
-
objectToString
Description copied from interface:StringBridgeConverts the object representation to a string.- Specified by:
objectToStringin interfaceStringBridge- Parameters:
object- The object to transform into a string representation.- Returns:
- String representation of the given object to be stored in Lucene index. The return string must not be
null. It can be empty though.
-