import com.google.common.collect.ImmutableMap;
import lombok.extern.slf4j.Slf4j;
import java.util.List;
import java.util.Map;
@Slf4j
public class AboutMe {
public record Mat(Attributes attributes) {
Mat() {
this(new Attributes());
}
public List<String> getHobbies() {
return attributes.hobbies();
}
public Map<String, Object> getLife() {
return attributes.life();
}
public Map<String, Object> getCoding() {
return attributes.coding();
}
public void displayInfo() {
log.info("Hobbies: {}", String.join(", ", getHobbies()));
log.info("Life: {}", getLife());
log.info("Coding: {}", getCoding());
}
}
public record Attributes(
List<String> hobbies,
Map<String, Object> life,
Map<String, Object> coding) {
public Attributes() {
this(
List.of(
"๐น Playing the piano",
"๐ง Listening to music",
"๐ป Coding",
"๐ฌ Watching movies",
"๐บ Watching TV series",
"๐๏ธโโ๏ธ Working out",
"๐ฅพ Hiking",
"๐ Running",
"๐ Playing basketball",
"โ๏ธ Traveling"
),
ImmutableMap.of(
"Languages", List.of("๐ฎ๐น Italian", "๐ฌ๐ง English"),
"Age", 30 + (int) (Math.random() * 6)
),
ImmutableMap.of(
"Languages", ImmutableMap.of(
"Expert", List.of("Java"),
"Intermediate", List.of("JavaScript", "TypeScript", "Vue.js"),
"Learning", List.of("Node.js", "Python")),
"Specialities", List.of(
"๐ฅ Back end",
"๐ Full stack",
"๐ณ Docker Compose stacks",
"๐ฑ Hybrid web apps"
),
"IDEs", List.of("๐ก IntelliJ IDEA", "๐ VS Codium"),
"PCs", ImmutableMap.of(
"Linux", ImmutableMap.of(
"Processor", "๐ฅ AMD Ryzen 5",
"RAM", "๐ง 64 GB",
"GPU", "๐ฎ NVIDIA GeForce RTX 4060 Ti"),
"Trashed (Windows)", ImmutableMap.of(
"Processor", "๐ฅ Intel i7",
"RAM", "๐ง 16 GB",
"GPU", "๐ฎ MSI R6870 Hawk")
)
)
);
}
}
public static void main(final String[] args) {
final Mat mat = new Mat();
mat.displayInfo();
}
}
I may be slow to respond.
Popular repositories Loading
-
syncope-cas-saml2-auth
syncope-cas-saml2-auth PublicSAML2 Authentication with Syncope as SP and CAS as IdP
JavaScript 1
-
-
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.