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

public abstract class NumberBridge extends Object implements TwoWayStringBridge
Base class for numbers - integer, double, etc.
  • Constructor Details

    • NumberBridge

      public NumberBridge()
  • Method Details

    • objectToString

      public String objectToString(Object object)
      Description copied from interface: StringBridge
      Converts the object representation to a string.
      Specified by:
      objectToString in interface StringBridge
      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.