Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1542

Add Path.isEmpty() with a default implementation.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.3
    • 3.2.4
    • process
    • None

    Description

      We have lots of path.size() == 0 which for ImmutablePath is a recursion. A path.isEmpty() is a O(1) call. Given how heavily used ImmutablePath is, we should provide Path.isEmpty() with the following default implementation.

          public default boolean isEmpty() {
              return this.size() == 0;
          }
      

      Attachments

        Issue Links

          Activity

            People

              okram Marko A. Rodriguez
              okram Marko A. Rodriguez
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: