Class ListChangeHelper.ReplaceBean
java.lang.Object
io.github.palexdev.virtualizedfx.utils.ListChangeHelper.ReplaceBean
- Enclosing class:
- ListChangeHelper
Bean to represent a replacement change.
In JavaFX replacements are a particular type of change because they can signal both replacements and removals at the same time.
For example if you useObservableList.setAll(Collection)
the change will carry the new
items as a replacement and all the others as a removal.-
Constructor Summary
ConstructorsConstructorDescriptionReplaceBean
(NumberRange<Integer> range, Set<Integer> changed, Set<Integer> removed) -
Method Summary
-
Constructor Details
-
ReplaceBean
-
-
Method Details
-
gerFrom
public int gerFrom()- Returns:
- the index at which the change started
-
getTo
public int getTo()- Returns:
- the index at which the change ended
-
isEmpty
public boolean isEmpty()- Returns:
- checks whether both 'changed' and 'removed' Sets are empty
-