You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Marko A. Rodriguez (JIRA)" <ji...@apache.org> on 2016/11/02 22:40:58 UTC

[jira] [Assigned] (TINKERPOP-1542) Add Path.isEmpty() with a default implementation.

     [ https://issues.apache.org/jira/browse/TINKERPOP-1542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marko A. Rodriguez reassigned TINKERPOP-1542:
---------------------------------------------

    Assignee: Marko A. Rodriguez

> 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)