@Test public void convertAll() { Set<PossibleAction> allItemsConverted = new HashSet( new PossibleActionConverter() .convert(Arrays.asList(PossibleActionEnum.values()))); Set<PossibleAction> allOpenApiValues = new HashSet( Arrays.asList(PossibleAction.values())); assertTrue(allOpenApiValues.containsAll(allItemsConverted)); assertTrue(allItemsConverted.containsAll(allOpenApiValues)); assertEquals(PossibleAction.values().length, allItemsConverted.size()); }
public List<PossibleAction> convert( Iterable<PossibleActionEnum> actionEnums) { return Streams.stream(actionEnums) .map(this::convert) .collect(Collectors.toList()); }
PossibleActionConverter { public List<PossibleAction> convert( Iterable<PossibleActionEnum> actionEnums) { return Streams.stream(actionEnums) .map(this::convert) .collect(Collectors.toList()); } }
PossibleActionConverter { public List<PossibleAction> convert( Iterable<PossibleActionEnum> actionEnums) { return Streams.stream(actionEnums) .map(this::convert) .collect(Collectors.toList()); }  }
PossibleActionConverter { public List<PossibleAction> convert( Iterable<PossibleActionEnum> actionEnums) { return Streams.stream(actionEnums) .map(this::convert) .collect(Collectors.toList()); }  List<PossibleAction> convert(
            Iterable<PossibleActionEnum> actionEnums); PossibleAction convert(PossibleActionEnum possibleActionEnum); }
PossibleActionConverter { public List<PossibleAction> convert( Iterable<PossibleActionEnum> actionEnums) { return Streams.stream(actionEnums) .map(this::convert) .collect(Collectors.toList()); }  List<PossibleAction> convert(
            Iterable<PossibleActionEnum> actionEnums); PossibleAction convert(PossibleActionEnum possibleActionEnum);  }