Package com.complexible.common.rdf.query
Class ImmutablePath
- java.lang.Object
-
- com.complexible.common.rdf.query.ImmutablePath
-
-
Constructor Summary
Constructors Constructor Description ImmutablePath(java.util.List<Edge> theEdges)ImmutablePath(java.util.List<Edge> theEdges, BindingSet thePathStartBindings, BindingSet thePathEndBindings)ImmutablePath(java.util.List<Edge> theEdges, Value theWeight, BindingSet thePathStartBindings, BindingSet thePathEndBindings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.List<Edge>getEdges()Returns the edges of the path.ValuegetEnd()Returns the end node of the path.BindingSetgetPathEndBindings()Returns variable bindings for the end pattern of the path, if existsBindingSetgetPathStartBindings()Returns variable bindings for the start pattern of the path, if existsValuegetStart()Returns the start node of the path.ValuegetWeight()inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
ImmutablePath
public ImmutablePath(java.util.List<Edge> theEdges)
-
ImmutablePath
public ImmutablePath(java.util.List<Edge> theEdges, BindingSet thePathStartBindings, BindingSet thePathEndBindings)
-
ImmutablePath
public ImmutablePath(java.util.List<Edge> theEdges, Value theWeight, BindingSet thePathStartBindings, BindingSet thePathEndBindings)
-
-
Method Detail
-
getPathStartBindings
public BindingSet 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
public BindingSet 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
public Value getStart()
Description copied from interface:PathReturns the start node of the path. Equivalent togetEdges().get(0).getStart().
-
getEnd
public Value getEnd()
Description copied from interface:PathReturns the end node of the path. Equivalent togetEdges().get(getEdge().size() - 1).getEnd().
-
getEdges
public java.util.List<Edge> getEdges()
Description copied from interface:PathReturns the edges of the path.
-
getWeight
public Value getWeight()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-