class Leader {

	private final String role;

	private final String id;

	public Leader(String role, String id) {
		this.role = role;
		this.id = id;
	}

	public String getRole() {
		return this.role;
	}

	public String getId() {
		return this.id;
	}

	public boolean isCandidate(Candidate candidate) {<FILL_FUNCTION_BODY>}

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}

		if (o == null || getClass() != o.getClass()) {
			return false;
		}

		Leader leader = (Leader) o;

		return Objects.equals(this.role, leader.role) && Objects.equals(this.id, leader.id);
	}

	@Override
	public int hashCode() {
		return Objects.hash(this.role, this.id);
	}

	@Override
	public String toString() {
		return String.format("Leader{role='%s', id='%s'}", this.role, this.id);
	}

}

		if (candidate == null) {
			return false;
		}

		return Objects.equals(role, candidate.getRole()) && Objects.equals(id, candidate.getId());
	
<no_super_class>