public List < Slice > getUnloadedSlices ( List < Slice > slices ) { List < Slice > unloadedSlices = new ArrayList <> ( slices ) ; unloadedSlices . removeAll ( loadedSlices ) ; unloadedSlices . removeAll ( inProgressSlices ) ; return unloadedSlices ; }
Takes the list of slices and removes those already loaded .