package application.helpers.wrappers; import application.enums.EntryType; /** * This class represents a sub element under the level of {@link EntryType}s as it * saves the sub type name and the corresponding value (e.g. 2020 for year * of birth) or the count of data entries of this type (e.g. 10 for StepCount). * * @author Bianca * */ public class SubElement { /** * The type of this sub element. */ private String type; /** * The value or count of this sub element. */ private int value; public SubElement(String type, int value) { this.type=type; this.value=value; } /** * Gets the type of this sub element. * @return The described value. */ public String getType() { return this.type; } /** * Get the value or count of this element. * @return The described value. */ public int getValue() { return this.value; } }