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 booleanequals(java.lang.Object obj)BindingSetgetBindings()Returns the bindings for the edge.ValuegetEnd()Returns the end node of the edge.ValuegetStart()Returns the start node of the edge.ValuegetWeight()inthashCode()java.lang.StringtoString()
-
-
-
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:EdgeReturns the start node of the edge. Equivalent togetBindings().getValue(getStartVar()).
-
getEnd
public Value getEnd()
Description copied from interface:EdgeReturns the end node of the edge. Equivalent togetBindings().getValue(getEndVar()).
-
getBindings
public BindingSet getBindings()
Description copied from interface:EdgeReturns the bindings for the edge.- Specified by:
getBindingsin interfaceEdge- Returns:
- the bindings for the edge.
-
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
-
-