Marko A. Rodriguez created TINKERPOP-1542:
---------------------------------------------
Summary: 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
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)