java.lang.Object
io.github.palexdev.virtualizedfx.utils.ListChangeHelper
Helper class to process changes in a list of items of type T, it also needs a range of indexes to
whether the changed values are within range.
Uses three beans to compute the change:
ListChangeHelper.Change
, ListChangeHelper.ChangeBean
, ListChangeHelper.ReplaceBean
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Bean to contain two Sets of added and removedListChangeHelper.ChangeBean
s and one ofListChangeHelper.ReplaceBean
s.static class
Bean to represent an addition or removal change.static class
Bean to represent a replacement change. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ListChangeHelper.Change
processChange
(ListChangeListener.Change<? extends T> change, NumberRange<Integer> indexes) Processes the given change for the given range of indexes.
-
Constructor Details
-
ListChangeHelper
public ListChangeHelper()
-
-
Method Details
-
processChange
public static <T> ListChangeHelper.Change processChange(ListChangeListener.Change<? extends T> change, NumberRange<Integer> indexes) Processes the given change for the given range of indexes.- Returns:
- a new instance of
ListChangeHelper.Change
containing all the changes
-