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 booleanTest whether a name is bound to some objectbooleanvoidforEach(BiConsumer<Var, Node> action) Operate on each entry.voidformat1(StringBuffer sbuff) final NodeReturn the object bound to a name, or nullinthashCode()static intbooleanisEmpty()Is this an empty binding? No variables.final intsize()Number of (var, value) pairs.toString()vars()Iterate over all variables of this binding.
-
Method Details
-
vars
Description copied from interface:BindingIterate over all variables of this binding. -
forEach
Operate on each entry. -
size
public final int size()Description copied from interface:BindingNumber of (var, value) pairs. -
isEmpty
public boolean isEmpty()Description copied from interface:BindingIs 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
-