Package org.eclipse.rdf4j.spring.dao.support

## Interface BindingSetMapper<T>

- Type Parameters:
    `T` -
  All Superinterfaces:
    `Function<BindingSet,​T>`

      public interface BindingSetMapper<T>
      extends Function<BindingSet,​T>

  Maps a query solution to an instance.
  Since:
    4.0.0
  Author:
    Florian Kleedorfer

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `T` | `apply​(BindingSet bindings)` | Maps a query solution to an instance of `T`.
    `static BindingSetMapper<BindingSet>` | `identity()` |

    - ### Methods inherited from interface java.util.function.Function

      `andThen, compose`

- - ### Method Detail

    - #### apply

          T apply​(BindingSet bindings)

      Maps a query solution to an instance of `T`. If the return value is `null` the mapper indicates that the solution is to be disregarded.
      Specified by:
        `apply` in interface `Function<BindingSet,​T>`
      Returns:
        an instance of `T` or null if the solution should be ignored.

    - #### identity

          static BindingSetMapper<BindingSet> identity()