3738394041424344
public Binder( Consumer<Entries> consumer ) { this( null, consumer ); } public void consume( Triple triple ) { Entries bound = new Entries(); if (tripleTerm.bind( triple, bound )) consumer.consume( bound ); }
6768697071727374
public static List<Entries> bindingsList( String seq ) { List<Entries> result = new ArrayList<Entries>(); if (seq.length() > 0) for (String bindings: seq.split( " *; *" )) result.add( new Entries( TestBindings.nodeBindings( bindings ) ) ); return result; }
717273747576
result.add( TestTripleTerm.tripleTerm( oneTerm ) ); return result; } private Entries binding( Node x, Node y ) { return new Entries().set( x, y ); }