Example usage for com.google.common.collect ImmutableSortedSet containsAll

List of usage examples for com.google.common.collect ImmutableSortedSet containsAll

Introduction

In this page you can find the example usage for com.google.common.collect ImmutableSortedSet containsAll.

Prototype

@Override
    public boolean containsAll(Collection<?> targets) 

Source Link

Usage

From source file:org.cyclop.test.ValidationHelper.java

public void verifyFullAndMinCompletionTheSame(ContextCqlCompletion completion, int minSize) {
    assertNotNull(completion);/*from   ww  w  .j  ava  2  s  .c  o  m*/
    ImmutableSortedSet<? extends CqlPart> fullCompletion = completion.cqlCompletion.fullCompletion;
    assertNotNull(fullCompletion);
    ImmutableSortedSet<? extends CqlPart> minCompletion = completion.cqlCompletion.minCompletion;
    assertNotNull(minCompletion);

    assertEquals(fullCompletion.size(), minCompletion.size());
    assertTrue(fullCompletion + " - " + minCompletion, fullCompletion.containsAll(minCompletion));
    assertTrue(minCompletion.size() + ">" + minSize, minCompletion.size() >= minSize);
}