java.lang.Object
org.apache.jena.sparql.engine.binding.BindingBase
- All Implemented Interfaces:
Binding
- Direct Known Subclasses:
Binding0
,Binding1
,Binding2
,Binding3
,Binding4
,BindingOverMap
,BindingProjectBase
Machinery encapsulating a mapping from a name to a value.
The "parent" is a shared, immutable, common set of bindings.
An association of var/node must not override a setting in the parent.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Test whether a name is bound to some objectboolean
void
forEach
(BiConsumer<Var, org.apache.jena.graph.Node> action) Operate on each entry.void
format1
(StringBuffer sbuff) final org.apache.jena.graph.Node
Return the object bound to a name, or nullint
hashCode()
static int
boolean
isEmpty()
Is this an empty binding?final int
size()
Number of (var, value) pairs.toString()
vars()
Iterate over all variables of this binding.Collect all variables of this binding.
-
Method Details
-
vars
Description copied from interface:Binding
Iterate over all variables of this binding. -
varsMentioned
Description copied from interface:Binding
Collect all variables of this binding.- Specified by:
varsMentioned
in interfaceBinding
-
forEach
Operate on each entry. -
size
public final int size()Description copied from interface:Binding
Number of (var, value) pairs. -
isEmpty
public boolean isEmpty()Description copied from interface:Binding
Is this an empty binding? No variables. -
contains
Test whether a name is bound to some object -
get
Return the object bound to a name, or null -
toString
-
format1
-
toString1
-
hashCode
public int hashCode() -
equals
-
hashCode
-