Example usage for com.google.common.collect SortedMultiset equals

List of usage examples for com.google.common.collect SortedMultiset equals

Introduction

In this page you can find the example usage for com.google.common.collect SortedMultiset equals.

Prototype

@Override

boolean equals(@Nullable Object object);

Source Link

Document

Compares the specified object with this multiset for equality.

Usage

From source file:org.bin01.db.verifier.Validator.java

private static boolean resultsMatch(QueryResult controlResult, QueryResult testResult) {
    SortedMultiset<List<Object>> control = ImmutableSortedMultiset.copyOf(rowComparator(),
            controlResult.getResults());
    SortedMultiset<List<Object>> test = ImmutableSortedMultiset.copyOf(rowComparator(),
            testResult.getResults());/*from  ww  w  .j a  v  a 2 s  .  c om*/
    try {
        return control.equals(test);
    } catch (TypesDoNotMatchException e) {
        return false;
    }
}

From source file:io.prestosql.verifier.Validator.java

private static boolean resultsMatch(QueryResult controlResult, QueryResult testResult, int precision) {
    SortedMultiset<List<Object>> control = ImmutableSortedMultiset.copyOf(rowComparator(precision),
            controlResult.getResults());
    SortedMultiset<List<Object>> test = ImmutableSortedMultiset.copyOf(rowComparator(precision),
            testResult.getResults());/*ww w  .  j a  v  a2  s.c  om*/
    try {
        return control.equals(test);
    } catch (TypesDoNotMatchException e) {
        return false;
    }
}