org.hibernate.search.bridge
Interface TwoWayStringBridge
- All Superinterfaces:
- StringBridge
- All Known Implementing Classes:
- BigDecimalBridge, BigIntegerBridge, DateBridge, DoubleBridge, FloatBridge, IntegerBridge, LongBridge, NumberBridge, ShortBridge, StringBridge
public interface TwoWayStringBridge
- extends StringBridge
StringBridge allowing a translation from the String back to the Object
objectToString( stringToObject( string ) ) and stringToObject( objectToString( object ) )
should be "idempotent". More precisely,
objectToString( stringToObject( string ) ).equals(string) for string not null
stringToObject( objectToString( object ) ).equals(object) for object not null
- Author:
- Emmanuel Bernard
stringToObject
Object stringToObject(String stringValue)
- Convert the string representation to an object