public < U > Leader < U > map ( Function < T , U > mapper ) { return new Leader <> ( mapper . apply ( id ) , term , termStartTime ) ; }
Converts the leader identifier using the given mapping function .