- All Known Implementing Classes:
Binding0
,Binding1
,Binding2
,Binding3
,Binding4
,BindingBase
,BindingOverMap
,BindingProject
,BindingProjectBase
,BindingProjectNamed
,BindingRoot
public interface Binding
Interface encapsulating a mapping from a name to a value.
A Binding is a map from Var
to Node
.
It can have a parent, meaning this binding extends (adds new var/node pairs) another.
The operation get(java.lang.String)
looks in this binding, then looks in the parent recursively.
Bindings are immutable.
Bindings provide value-based equality and hash code.
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BindingBuilder
builder()
Create aBindingBuilder
static BindingBuilder
Create aBindingBuilder
default boolean
Test whether a variable is bound to some objectboolean
Test whether a variable is bound to some objectboolean
void
forEach
(BiConsumer<Var, org.apache.jena.graph.Node> action) Operate on each entry.default org.apache.jena.graph.Node
Return the object bound to a variable, or nullorg.apache.jena.graph.Node
Return the object bound to a variable, or nullint
hashCode()
boolean
isEmpty()
Is this an empty binding?int
size()
Number of (var, value) pairs.vars()
Iterate over all variables of this binding.Collect all variables of this binding.
-
Field Details
-
noParent
-
-
Method Details
-
builder
Create aBindingBuilder
-
builder
Create aBindingBuilder
-
vars
Iterate over all variables of this binding. -
varsMentioned
Collect all variables of this binding. -
forEach
Operate on each entry. -
contains
Test whether a variable is bound to some object -
get
Return the object bound to a variable, or null -
contains
Test whether a variable is bound to some object -
get
Return the object bound to a variable, or null -
size
int size()Number of (var, value) pairs. -
isEmpty
boolean isEmpty()Is this an empty binding? No variables. -
hashCode
int hashCode() -
equals
-