Interface DocumentPointer<T>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DocumentPointer<T>
A custom pointer to a linked document to be used along with DocumentReference for storing the linkage value.
Since:
3.3
Author:
Christoph Strobl
  • Method Summary

    Modifier and Type
    Method
    Description
    The actual pointer value.
  • Method Details

    • getPointer

      T getPointer()
      The actual pointer value. This can be any simple type, like a String or ObjectId or a Document holding more information like the target collection, multiple fields forming the key, etc.
      Returns:
      the value stored in MongoDB and used for constructing the lookup query.