Список Java для установки
Set<Foo> foo = new HashSet<Foo>(myList);
2 Programmers 1 Bug
Set<Foo> foo = new HashSet<Foo>(myList);
public void givenUsingCoreJava_whenSetConvertedToList_thenCorrect() {
Set<Integer> sourceSet = Sets.newHashSet(0, 1, 2, 3, 4, 5);
List<Integer> targetList = new ArrayList<>(sourceSet);
}