package io.github.cyboranf.cyboranf.domain.entities;
import java.util.Map;
import java.util.stream.Collectors;
public class GitHubBio extends Bio {
private final String profile;
private final Map<String, String> bio;
public GitHubBio() {
this.bio = Map.of(
"Current Work", "I’m currently working on my Portfolio",
"Skill", "I’m improving my java skill",
"Knowledge", "Ask me about my knowledge",
"Contact", "How to reach me: [email protected]"
);
this.profile = "https://github.com/cyboranf";
}
public GitHubBio(String profile, Map<String, String> bio) {
this.profile = profile;
this.bio = bio;
}
@Override
public String getBio() {
return bio.entrySet()
.stream()
.map(entry -> "- " + entry.getKey() + ": **" + entry.getValue() + "**")
.collect(Collectors.joining(System.lineSeparator()));
}
public String getProfile() {
return profile;
}
}
cyboranf / foodplanner-webapp-project Goto Github PK
View Code? Open in Web Editor NEWFoodPlanner app where personal user/dietcian can upload recipes and plans for other users