@FunctionalInterfaceSE public interface Context
candidates
Context は FunctionalInterfaceSE であり、yield() の操作なしの実装があります。
Context
FunctionalInterface
yield()
default StringSE
getRole()
Candidate
boolean
isLeader()
default void
boolean isLeader()
default void yield()
@Nullable default StringSE getRole()