org.hibernate.search.bridge.builtin.time.impl

## Class YearMonthBridge

- java.lang.Object
- - org.hibernate.search.bridge.builtin.time.impl.TemporalAccessorStringBridge<YearMonth>
  - - org.hibernate.search.bridge.builtin.time.impl.YearMonthBridge

- All Implemented Interfaces:
    IgnoreAnalyzerBridge, StringBridge, TwoWayStringBridge

      public class YearMonthBridge
      extends TemporalAccessorStringBridge<YearMonth>

  Converts a `YearMonth` to a `String`.

  A `YearMonth` 12345-1 becomes the string `+00001234501`.

  THe signn is alway present and the values are padded with 0 to allow field sorting.

  Author:
    Davide D'Alto

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static YearMonthBridge` | `INSTANCE`

  - ### Method Summary

    - ### Methods inherited from class org.hibernate.search.bridge.builtin.time.impl.TemporalAccessorStringBridge

      `objectToString, stringToObject`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### INSTANCE

          public static final YearMonthBridge INSTANCE

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved