java.lang.Object
io.github.palexdev.virtualizedfx.utils.ListChangeHelper.Change
- 封闭类:
- ListChangeHelper
Bean to contain two Sets of added and removed
ListChangeHelper.ChangeBeans and one of ListChangeHelper.ReplaceBeans.
This can also process the addition, removal and replacement with processAddition(TriConsumer),
processRemoval(TriConsumer), processReplacement(BiConsumer).
-
方法概要
修饰符和类型方法说明getAdded()voidprocessAddition(TriConsumer<Integer, Integer, Set<Integer>> action) For eachListChangeHelper.ChangeBeanthat is an addition executes the given action.voidprocessRemoval(TriConsumer<Integer, Integer, Set<Integer>> action) For eachListChangeHelper.ChangeBeanthat is a removal executes the given action.voidprocessReplacement(BiConsumer<Set<Integer>, Set<Integer>> action) For eachListChangeHelper.ReplaceBeanexecutes the given action.
-
方法详细资料
-
processAddition
For eachListChangeHelper.ChangeBeanthat is an addition executes the given action.The consumer gives the 'from' index, the 'to' index and the Set of added indexes.
-
processRemoval
For eachListChangeHelper.ChangeBeanthat is a removal executes the given action.The consumer gives the 'from' index, the 'to' index and the Set of removed indexes.
-
processReplacement
For eachListChangeHelper.ReplaceBeanexecutes the given action.The consumer gives the Set of changed indexes and the set of removed indexes.
-
getAdded
- 返回:
- the Set of
ListChangeHelper.ChangeBeans that are additions
-
getRemoved
- 返回:
- the Set of
ListChangeHelper.ChangeBeans that are removals
-
getReplaced
- 返回:
- the Set of
ListChangeHelper.ReplaceBeans
-