Class ListChangeHelper.ReplaceBean

java.lang.Object
io.github.palexdev.virtualizedfx.utils.ListChangeHelper.ReplaceBean
Enclosing class:
ListChangeHelper

public static class ListChangeHelper.ReplaceBean extends Object
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 use ObservableList.setAll(Collection) the change will carry the new items as a replacement and all the others as a removal.
  • Constructor Details

  • 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