Package org.hibernate.search.bridge
Interface StringBridge
- All Known Subinterfaces:
TwoWayStringBridge
- All Known Implementing Classes:
BigDecimalBridge,BigIntegerBridge,BooleanBridge,CalendarBridge,CharacterBridge,ClassBridge,ConcatStringBridge,DateBridge,DoubleBridge,EnumBridge,FloatBridge,IntegerBridge,LongBridge,NumberBridge,ShortBridge,String2FieldBridgeAdaptor,StringBridge,TwoWayString2FieldBridgeAdaptor,UriBridge,UrlBridge
public interface StringBridge
Transform an object into a string representation.
All implementations are required to be threadsafe.
Usually this is easily achieved avoiding the usage
of class fields, unless they are either immutable
or needed to store parameters.
-
Method Summary
Modifier and TypeMethodDescriptionobjectToString(Object object) Converts the object representation to a string.
-
Method Details
-
objectToString
Converts the object representation to a string.- 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.
-