public static class IndexProjectors.IndexProjectorBuilder extends Object
Note that sequential reporting of indexes are expected.
Constructor and Description |
---|
IndexProjectorBuilder()
Construct new builder.
|
IndexProjectorBuilder(int skip)
Construct new builder.
|
Modifier and Type | Method and Description |
---|---|
void |
addMissing(int masterIndex)
Report master index for which no client index is associated.
|
void |
addOk(int masterIndex,
int clientIndex)
Report new master-client mapping.
|
IndexProjector |
build()
Build serializable, immutable projector.
|
public IndexProjectorBuilder()
public IndexProjectorBuilder(int skip)
skip
- Skipped in master indexespublic void addOk(int masterIndex, int clientIndex)
masterIndex
- Master indexclientIndex
- Client indexpublic void addMissing(int masterIndex)
masterIndex
- Master index skippedpublic IndexProjector build()