Exemplo n.º 1
0
  @Test
  public void selectWithToTarget() {
    ImmutableBag<String> strings = this.newBag();

    Assert.assertEquals(
        strings,
        strings
            .selectWith(Predicates2.<String>greaterThan(), "0", FastList.<String>newList())
            .toBag());
  }
Exemplo n.º 2
0
  @Test
  public void selectWith() {
    ImmutableBag<String> strings = this.newBag();

    Assert.assertEquals(strings, strings.selectWith(Predicates2.<String>greaterThan(), "0"));
  }