Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1389

Return `this` rather than `void` from Dataset

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • Jena 3.4.0
    • Jena 3.7.0
    • ARQ

    Description

      Allow method chaining from the org.apache.jena.query.Dataset interface by returning `this` rather than `void` from the following methods.

      1. setDefaultModel
      2. addNamedModel
      3. removeNamedModel
      4. replaceNamedModel

      Allowing method chaining would align with the behavior of the add and remove methods in org.apache.jena.rdf.model.Model.

      Attachments

        Issue Links

          Activity

            People

              ajs6f Adam Soroka
              jaco0646 Adam Jacobs
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: