SPARQLQueryBindingSet extends AbstractBindingSet { public void addBinding(Binding binding) { addBinding(binding.getName(), binding.getValue()); } SPARQLQueryBindingSet();  SPARQLQueryBindingSet(int capacity);  SPARQLQueryBindingSet(BindingSet bindingSet); void addAll(BindingSet bindingSet); void addBinding(Binding binding); void addBinding(String name, Value value); void setBinding(Binding binding); void setBinding(String name, Value value); void removeBinding(String name); void removeAll(Collection<String> bindingNames); void retainAll(Collection<String> bindingNames); @Override Set<String> getBindingNames(); @Override Value getValue(String bindingName); @Override Binding getBinding(String bindingName); @Override boolean hasBinding(String bindingName); @Override Iterator<Binding> iterator(); @Override int size(); @Override boolean equals(Object other);  }
@Test public void testEqualsHashcode() { SPARQLQueryBindingSet bs1 = new SPARQLQueryBindingSet(); SPARQLQueryBindingSet bs2 = new SPARQLQueryBindingSet(); bs1.addBinding("x", RDF.ALT); bs1.addBinding("y", RDF.BAG); bs1.addBinding("z", RDF.FIRST); bs2.addBinding("y", RDF.BAG); bs2.addBinding("x", RDF.ALT); bs2.addBinding("z", RDF.FIRST); assertEquals(bs1, bs2); assertEquals(bs1.hashCode(), bs2.hashCode()); }