Java, Eclipse Collections, Open Source, Programming, Software Development.
List.of(Fruit.CHERRY, Fruit.BANANA, Fruit.CHERRY, Fruit.APPLE)); } Converting to a Set for Equality Test Using Eclipse Collections MutableList as a source type, we can convert the List to a Set using toSet. @Test public void convertToSetForEquality() { MutableList<Fruit> list =