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 classBean to contain two Sets of added and removedListChangeHelper.ChangeBeans and one ofListChangeHelper.ReplaceBeans.static classBean to represent an addition or removal change.static classBean to represent a replacement change. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ListChangeHelper.ChangeprocessChange(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.Changecontaining all the changes
-