类 ListChangeHelper.ReplaceBean

java.lang.Object
io.github.palexdev.virtualizedfx.utils.ListChangeHelper.ReplaceBean
封闭类:
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.
  • 构造器详细资料

  • 方法详细资料

    • gerFrom

      public int gerFrom()
      返回:
      the index at which the change started
    • getTo

      public int getTo()
      返回:
      the index at which the change ended
    • isEmpty

      public boolean isEmpty()
      返回:
      checks whether both 'changed' and 'removed' Sets are empty