public final class IndexUpdater extends Object
Constructor and Description |
---|
IndexUpdater(IntConsumer pIndexUpdater,
IntSupplier pSizeSupplier) |
Modifier and Type | Method and Description |
---|---|
boolean |
areAllIndexesValid() |
int |
getFirstInvalidatedIndex() |
void |
markAllIndexesAsValid() |
void |
updateFirstInvalidatedIndex(int pIdx) |
void |
updateIndexes() |
void |
updateIndexes(int pToPos,
IntPredicate pAbort) |
void |
updateIndexes(IntPredicate pAbort) |
public IndexUpdater(IntConsumer pIndexUpdater, IntSupplier pSizeSupplier)
public int getFirstInvalidatedIndex()
public void updateFirstInvalidatedIndex(int pIdx)
public boolean areAllIndexesValid()
public void markAllIndexesAsValid()
public void updateIndexes()
public void updateIndexes(IntPredicate pAbort)
pAbort
- Determines whether the update should be aborted
after the specified index.public void updateIndexes(int pToPos, IntPredicate pAbort)
Copyright © 2023. All rights reserved.