- java.lang.Object
-
- com.iamsoft.util.ui.javafx.collections.IndexUpdater
-
public final class IndexUpdater extends Object
-
-
Constructor Summary
Constructors Constructor Description IndexUpdater(IntConsumer pIndexUpdater, IntSupplier pSizeSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
areAllIndexesValid()
int
getFirstInvalidatedIndex()
void
markAllIndexesAsValid()
void
updateFirstInvalidatedIndex(int pIdx)
void
updateIndexes()
void
updateIndexes(int pToPos, IntPredicate pAbort)
void
updateIndexes(IntPredicate pAbort)
-
-
-
Constructor Detail
-
IndexUpdater
public IndexUpdater(IntConsumer pIndexUpdater, IntSupplier pSizeSupplier)
-
-
Method Detail
-
getFirstInvalidatedIndex
public int getFirstInvalidatedIndex()
-
updateFirstInvalidatedIndex
public void updateFirstInvalidatedIndex(int pIdx)
-
areAllIndexesValid
public boolean areAllIndexesValid()
-
markAllIndexesAsValid
public void markAllIndexesAsValid()
-
updateIndexes
public void updateIndexes()
-
updateIndexes
public void updateIndexes(IntPredicate pAbort)
- Parameters:
pAbort
- Determines whether the update should be aborted after the specified index.
-
updateIndexes
public void updateIndexes(int pToPos, IntPredicate pAbort)
-
-