cast list of object with java stream code example
Example: java lambda list of objects cast
collection.stream()
.filter(obj -> obj instanceof ScheduleIntervalContainer)
.map(obj -> (ScheduleIntervalContainer) obj)
collection.stream()
.filter(obj -> obj instanceof ScheduleIntervalContainer)
.map(obj -> (ScheduleIntervalContainer) obj)