|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.relation.rule.Constant<E>
public final class Constant<E>
A constant.
| Constructor Summary | |
|---|---|
Constant(E value)
|
|
| Method Summary | |
|---|---|
boolean |
equals(IVariableOrConstant<E> o)
Return true if this is the same variable or if both values
are Constant whose values are the same. |
boolean |
equals(Object o)
|
E |
get()
Return the bound value. |
String |
getName()
Return the name of a variable. |
int |
hashCode()
The hash code of the value that would be returned by IVariableOrConstant.get() |
boolean |
isConstant()
Return true iff this is a constant. |
boolean |
isVar()
Return true iff this is a variable. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Constant(E value)
| Method Detail |
|---|
public final boolean isVar()
IVariableOrConstanttrue iff this is a variable.
isVar in interface IVariableOrConstant<E>public final boolean isConstant()
IVariableOrConstanttrue iff this is a constant.
isConstant in interface IVariableOrConstant<E>public String toString()
toString in class Objectpublic final boolean equals(IVariableOrConstant<E> o)
IVariableOrConstanttrue if this is the same variable or if both values
are Constant whose values are the same.
equals in interface IVariableOrConstant<E>public final boolean equals(Object o)
equals in class Objectpublic final int hashCode()
IConstantIVariableOrConstant.get()
hashCode in interface IConstant<E>hashCode in class Objectpublic E get()
IVariableOrConstant
get in interface IVariableOrConstant<E>public String getName()
IVariableOrConstant
getName in interface IVariableOrConstant<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||