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

## Class NamedSparqlSupplier

- java.lang.Object
- - org.eclipse.rdf4j.spring.dao.support.sparql.NamedSparqlSupplier

-     public class NamedSparqlSupplier
      extends Object

  Associates a String key with a `Supplier` that provides a SPARQL operation.
  Since:
    4.0.0
  Author:
    Florian Kleedorfer

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `NamedSparqlSupplier​(String name, Supplier<String> sparqlSupplier)` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `equals​(Object o)` |
    `String` | `getName()` |
    `Supplier<String>` | `getSparqlSupplier()` |
    `int` | `hashCode()` |
    `static NamedSparqlSupplier` | `of​(String key, Supplier<String> generator)` |

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

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

- - ### Constructor Detail

    - #### NamedSparqlSupplier

          public NamedSparqlSupplier​(String name,
                                     Supplier<String> sparqlSupplier)

  - ### Method Detail

    - #### getName

          public String getName()

    - #### getSparqlSupplier

          public Supplier<String> getSparqlSupplier()

    - #### of

          public static NamedSparqlSupplier of​(String key,
                                               Supplier<String> generator)

    - #### equals

          public boolean equals​(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`