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 boolean
equals(java.lang.Object obj)
java.util.List<Edge>
getEdges()
Returns the edges of the path.Value
getEnd()
Returns the end node of the path.BindingSet
getPathEndBindings()
Returns variable bindings for the end pattern of the path, if existsBindingSet
getPathStartBindings()
Returns variable bindings for the start pattern of the path, if existsValue
getStart()
Returns the start node of the path.Value
getWeight()
int
hashCode()
java.lang.String
toString()
-
-
-
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:Path
Returns variable bindings for the start pattern of the path, if exists- Specified by:
getPathStartBindings
in interfacePath
- Returns:
- variable bindings for the start pattern of the path
-
getPathEndBindings
public BindingSet getPathEndBindings()
Description copied from interface:Path
Returns variable bindings for the end pattern of the path, if exists- Specified by:
getPathEndBindings
in interfacePath
- Returns:
- variable bindings for the end pattern of the path
-
getStart
public Value getStart()
Description copied from interface:Path
Returns the start node of the path. Equivalent togetEdges().get(0).getStart()
.
-
getEnd
public Value getEnd()
Description copied from interface:Path
Returns the end node of the path. Equivalent togetEdges().get(getEdge().size() - 1).getEnd()
.
-
getEdges
public java.util.List<Edge> getEdges()
Description copied from interface:Path
Returns the edges of the path.
-
getWeight
public Value getWeight()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-