private QueryResultImpl eliminateDuplicates(QueryResultImpl result) {
        QueryResultImpl ret = new QueryResultImpl(result.getQuery());
        Set<QueryBindingImpl> distinctSet = new HashSet<>(result.getBindings());
        distinctSet.forEach(ret::add);
        return ret;
    }
private QueryResultImpl eliminateDuplicates ( QueryResultImpl result ) { QueryResultImpl ret = new QueryResultImpl ( result . getQuery ( ) ) ; Set < QueryBindingImpl > distinctSet = new HashSet < > ( result . getBindings ( ) ) ; distinctSet . forEach ( ret :: add ) ; return ret ; }
Eliminate duplicate bindings.

@return A new QueryResultImpl instance without diplicates