public default <A> A get(final int index) {
        return (A) this.objects().get(index);
    }
Get the object associated with the specified index into the path.

@param index the index of the path
@param <A>   the type of the object associated with the index
@return the object associated with the index of the path
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Path.java