+ public abstract static class AbstractBuilder<B extends AbstractBuilder<B, T>, T extends OnDemandRaftState> {
+ @SuppressWarnings("unchecked")
+ protected B self() {
+ return (B) this;
+ }
+
+ protected abstract @NonNull OnDemandRaftState state();
+
+ public B lastLogIndex(long value) {
+ state().lastLogIndex = value;
+ return self();
+ }