public final class EmptyBindingSet extends Object implements IBindingSet, Serializable
| Modifier and Type | Field and Description |
|---|---|
static EmptyBindingSet |
INSTANCE
Immutable singleton.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
containsErrorValues() |
EmptyBindingSet |
copy(IVariable[] variablesToDrop)
Return a shallow copy of the binding set, eliminating unnecessary
variables.
|
EmptyBindingSet |
copyMinusErrors(IVariable[] variablesToDrop)
Returns the same object.
|
boolean |
equals(Object t)
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.
|
int |
hashCode()
The hash code of an empty binding set is always zero.
|
boolean |
isBound(IVariable var)
Return
true iff the variable is bound. |
boolean |
isEmpty()
true iff there are no variable bindings in the binding set. |
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.
|
public static final transient EmptyBindingSet INSTANCE
public EmptyBindingSet clone()
IBindingSetclone in interface IBindingSetclone in class Objectpublic EmptyBindingSet copy(IVariable[] variablesToDrop)
IBindingSetcopy in interface IBindingSetvariablesToDrop - When non-null, only the listed variables are
retained.public EmptyBindingSet copyMinusErrors(IVariable[] variablesToDrop)
copyMinusErrors in interface IBindingSetvariablesToDrop - When non-null, only the listed variables are
retained.public final boolean containsErrorValues()
containsErrorValues in interface IBindingSetpublic void clear(IVariable var)
IBindingSetclear in interface IBindingSetvar - The variable.public void clearAll()
IBindingSetclearAll in interface IBindingSetpublic Iterator<Map.Entry<IVariable,IConstant>> iterator()
IBindingSetiterator in interface IBindingSetpublic void set(IVariable var, IConstant val)
IBindingSetset in interface IBindingSetvar - The variable.val - The value (MAY NOT be null).public boolean isEmpty()
IBindingSettrue iff there are no variable bindings in the binding set.isEmpty in interface IBindingSetpublic int size()
IBindingSetsize in interface IBindingSetpublic boolean equals(Object t)
IBindingSetequals in interface IBindingSetequals in class Objectt - Another binding set.public int hashCode()
hashCode in interface IBindingSethashCode in class Objectpublic IConstant get(IVariable var)
IBindingSetget 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()
IBindingSetvars in interface IBindingSetCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.