|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.relation.rule.EmptyBindingSet
public final class EmptyBindingSet
An immutable empty binding set.
| Field Summary | |
|---|---|
static EmptyBindingSet |
INSTANCE
Singleton. |
| Method Summary | |
|---|---|
void |
clear(IVariable var)
Clear any binding for the variable. |
void |
clearAll()
Clear all bindings. |
EmptyBindingSet |
clone()
Return a shallow copy of the binding set. |
boolean |
equals(IBindingSet o)
True iff the variables and their bound values are the same for the two binding sets. |
IConstant |
get(IVariable var)
Return the binding for the variable. |
boolean |
isBound(IVariable var)
Return true iff the variable is bound. |
Iterator<Map.Entry<IVariable,IConstant>> |
iterator()
Visits the bindings. |
void |
set(IVariable var,
IConstant val)
Bind the variable to the value. |
int |
size()
The #of bound variables. |
Iterator<IVariable> |
vars()
Visits the bound variables. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final transient EmptyBindingSet INSTANCE
| Method Detail |
|---|
public EmptyBindingSet clone()
IBindingSet
clone in interface IBindingSetclone in class Objectpublic void clear(IVariable var)
IBindingSet
clear in interface IBindingSetvar - The variable.public void clearAll()
IBindingSet
clearAll in interface IBindingSetpublic Iterator<Map.Entry<IVariable,IConstant>> iterator()
IBindingSet
iterator in interface IBindingSet
public void set(IVariable var,
IConstant val)
IBindingSet
set in interface IBindingSetvar - The variable.val - The value (MAY NOT be null).public int size()
IBindingSet
size in interface IBindingSetpublic boolean equals(IBindingSet o)
IBindingSet
equals in interface IBindingSeto - Another binding set.public IConstant get(IVariable var)
IBindingSet
get in interface IBindingSetvar - The variable.
null iff the
variable is not bound.public boolean isBound(IVariable var)
IBindingSettrue iff the variable is bound.
isBound in interface IBindingSetvar - The variable.
true if the variable is bound.public Iterator<IVariable> vars()
IBindingSet
vars in interface IBindingSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||