[
https://issues.apache.org/jira/browse/TINKERPOP-1542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15644655#comment-15644655
]
ASF GitHub Bot commented on TINKERPOP-1542:
-------------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/tinkerpop/pull/480
> Add Path.isEmpty() with a default implementation.
> -------------------------------------------------
>
> Key: TINKERPOP-1542
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1542
> Project: TinkerPop
> Issue Type: Improvement
> Components: process
> Affects Versions: 3.2.3
> Reporter: Marko A. Rodriguez
> Assignee: Marko A. Rodriguez
>
> 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.
> {code}
> public default boolean isEmpty() {
> return this.size() == 0;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)