Code example for FluentIterable

Methods: toList

      hosts = client.listHosts().get();
    } catch (InterruptedException | ExecutionException e) {
      throw new AssertionError("Failed to get list of Helios hosts", e);
    final List<String> filteredHosts = FluentIterable.from(hosts)
    if (filteredHosts.isEmpty()) {
      fail(format("no hosts matched the filter pattern - %s", hostFilter));
    final String chosenHost = pickHost(filteredHosts);
    return deploy(job, asList(chosenHost), waitPorts, prober);
  String pickHost(final List<String> filteredHosts) {
    final List<String> mutatedList = Lists.newArrayList(filteredHosts);
Contextual code suggestions in your IDE  Get Codota for Java