io.github.mrtimeey.herodomainmodel.model.SuperHero Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of object-finder Show documentation
Show all versions of object-finder Show documentation
Library for finding objects in complex data structures
package io.github.mrtimeey.herodomainmodel.model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
@JsonSerialize
public record SuperHero(String name, String currentAlias, Gender gender, Appearance appearance, PersonalInformation personalInformation) {
public static SuperHero of(String name, String currentAlias, Gender gender, Appearance appearance, PersonalInformation personalInformation) {
return new SuperHero(name, currentAlias, gender, appearance, personalInformation);
}
}