Package com.complexible.common.rdf.query
Class ImmutableEdge
- java.lang.Object
-
- com.complexible.common.rdf.query.ImmutableEdge
-
-
Constructor Summary
Constructors Constructor Description ImmutableEdge(java.lang.String theStartVar, java.lang.String theEndVar, BindingSet theBindings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
BindingSet
getBindings()
Returns the bindings for the edge.Value
getEnd()
Returns the end node of the edge.Value
getStart()
Returns the start node of the edge.Value
getWeight()
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ImmutableEdge
public ImmutableEdge(java.lang.String theStartVar, java.lang.String theEndVar, BindingSet theBindings)
-
-
Method Detail
-
getStart
public Value getStart()
Description copied from interface:Edge
Returns the start node of the edge. Equivalent togetBindings().getValue(getStartVar())
.
-
getEnd
public Value getEnd()
Description copied from interface:Edge
Returns the end node of the edge. Equivalent togetBindings().getValue(getEndVar())
.
-
getBindings
public BindingSet getBindings()
Description copied from interface:Edge
Returns the bindings for the edge.- Specified by:
getBindings
in interfaceEdge
- Returns:
- the bindings for the edge.
-
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
-
-