org.hibernate.search.engine.metadata.impl

## Class BackReference<T>

- java.lang.Object
- - org.hibernate.search.engine.metadata.impl.BackReference<T>

-     public class BackReference<T>
      extends Object

  A container allowing to build metadata with circular dependency.

  It's useful when building `DocumentFieldMetadata`, for instance: when we build those, the parent type metadata hasn't been built yet (since it requires every fields to be created). To break the circular dependency, we provide the DocumentFieldMetadata with a `BackReference<TypeMetadata>`, and we initialize the reference later.

  Author:
    Yoann Rodiere

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BackReference()`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <T> BackReference<T>` | `empty()`
    `T` | `get()`
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### BackReference

          public BackReference()

  - ### Method Detail

    - #### empty

          public static <T> BackReference<T> empty()

    - #### get

          public T get()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

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