|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.glitter.rdf.Variable
public class Variable
A variable in a SPARQL query. The Variable class maintains a cache to reuse Variable objects sharing the same
name.
| Method Summary | |
|---|---|
int |
compareTo(Bindable o)
|
int |
compareTo(TriplePatternComponent o)
Compares to TriplePatternComponents for ordering. |
static Variable |
createVariable(java.lang.String variableName)
Static factory method that uses an LRU cache to reuse Variable objects for variables with the same name. |
boolean |
equalName(Variable other)
Determines variable equality solely based on the name, rather than object equality. |
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getName()
|
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static Variable createVariable(java.lang.String variableName)
Variable objects for variables with the same name.
variableName - name of variable
Variable for given namepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getName()
public boolean equals(java.lang.Object other)
equals in interface TriplePatternComponentequals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equalName(Variable other)
other - variable for which to determine equality
public int compareTo(Bindable o)
compareTo in interface java.lang.Comparable<Bindable>public int compareTo(TriplePatternComponent o)
TriplePatternComponent
compareTo in interface TriplePatternComponentTriplePatternComponent.equals(Object) is
true, and 1 otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||