Package com.complexible.common.rdf.query
Class ImmutablePath
java.lang.Object
com.complexible.common.rdf.query.ImmutablePath
- All Implemented Interfaces:
Path
Immutable implementation of
Path- Since:
- 5.0.4
- Version:
- 6.0
- Author:
- Evren Sirin
-
Constructor Summary
ConstructorsConstructorDescriptionImmutablePath(List<Edge> theEdges) ImmutablePath(List<Edge> theEdges, BindingSet thePathStartBindings, BindingSet thePathEndBindings) ImmutablePath(List<Edge> theEdges, Value theWeight, BindingSet thePathStartBindings, BindingSet thePathEndBindings) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetEdges()Returns the edges of the path.getEnd()Returns the end node of the path.Returns variable bindings for the end pattern of the path, if existsReturns variable bindings for the start pattern of the path, if existsgetStart()Returns the start node of the path.inthashCode()toString()
-
Constructor Details
-
ImmutablePath
-
ImmutablePath
public ImmutablePath(List<Edge> theEdges, BindingSet thePathStartBindings, BindingSet thePathEndBindings) -
ImmutablePath
public ImmutablePath(List<Edge> theEdges, Value theWeight, BindingSet thePathStartBindings, BindingSet thePathEndBindings)
-
-
Method Details
-
getPathStartBindings
Description copied from interface:PathReturns variable bindings for the start pattern of the path, if exists- Specified by:
getPathStartBindingsin interfacePath- Returns:
- variable bindings for the start pattern of the path
-
getPathEndBindings
Description copied from interface:PathReturns variable bindings for the end pattern of the path, if exists- Specified by:
getPathEndBindingsin interfacePath- Returns:
- variable bindings for the end pattern of the path
-
getStart
Description copied from interface:PathReturns the start node of the path. Equivalent togetEdges().get(0).getStart(). -
getEnd
Description copied from interface:PathReturns the end node of the path. Equivalent togetEdges().get(getEdge().size() - 1).getEnd(). -
getEdges
Description copied from interface:PathReturns the edges of the path. -
getWeight
-
equals
-
hashCode
public int hashCode() -
toString
-