Java Code Examples for com.google.common.collect.ImmutableSet.asList()

The following are Jave code examples for showing how to use asList() of the com.google.common.collect.ImmutableSet class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: guava-mock   File: SetGenerators.java   Source Code and License Vote up 4 votes
@Override
protected List<String> create(String[] elements) {
  Comparator<String> comparator = createExplicitComparator(elements);
  ImmutableSet<String> set = ImmutableSortedSet.copyOf(comparator, Arrays.asList(elements));
  return set.asList();
}
 
Example 2
Project: googles-monorepo-demo   File: SetGenerators.java   Source Code and License Vote up 4 votes
@Override
protected List<String> create(String[] elements) {
  Comparator<String> comparator = createExplicitComparator(elements);
  ImmutableSet<String> set = ImmutableSortedSet.copyOf(comparator, Arrays.asList(elements));
  return set.asList();
}