4 ms·
// Get the ids from the data var ids = object.stream() .map(object -> object.getName() + object.getType()
by 3836293648 5y ago
// Get the ids from the data
var ids = object.stream()
.map(object ->
object.getName() + object.getType()
)
.distinct()
.collect(Collectors.toList());