GitHub user okram opened a pull request:
https://github.com/apache/tinkerpop/pull/480
TINKERPOP-1542: Add Path.isEmpty() with a default implementation.
https://issues.apache.org/jira/browse/TINKERPOP-1542
Added `Path.isEmpty()` and `Path.head()` with default implementations. Have
optimized implementations in `ImmutablePath` and `MutablePath`. These methods
are used heavily by the `LP`-class of traversers. A few other random tweaks.
VOTE +1.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/apache/tinkerpop TINKERPOP-1542
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tinkerpop/pull/480.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #480
----
commit c2e5437275061a95105af885504abcb586b2ee2f
Author: Marko A. Rodriguez <[email protected]>
Date: 2016-11-02T22:34:43Z
Added Path.head() and Path.isEmpty() with default method implementations.
Have optimized implementations in ImmutablePath and MutablePath. Using methods
in the LP-class of traverser (the most heavily used traversers).
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---