@Override public int size() { return binding.size() ; }
/** Compare two bindings, use the node equality test provided */ static public boolean equal(Binding bind1, Binding bind2, NodeUtils.EqualityTest test) { if ( bind1 == bind2 ) return true ; if ( bind1.size() != bind2.size() ) return false ; // They are the same size so containment is enough. if ( ! containedIn(bind1, bind2, test) ) return false ; return true ; }
@Override final public int size() { int x = size1(); if ( parent != null ) x = x + parent.size(); return x; }
public static boolean equals(Binding bind1, Binding bind2) { if ( bind1 == bind2 ) return true; // Same variables? if ( bind1.size() != bind2.size() ) return false; for ( Iterator<Var> iter1 = bind1.vars() ; iter1.hasNext() ; ) { Var var = iter1.next(); Node node1 = bind1.get(var); Node node2 = bind2.get(var); if ( !Objects.equals(node1, node2) ) return false; } // No need to check the other way round as the sizes matched. return true; } }
if ( binding.size() == 0 && vars.size() == 0 )
if ( binding != null && binding.size() != 0 ) qIter = QueryIterSingleton.create(binding, execCxt) ; else
if ( b.size() == 3 )