package application.helpers.wrappers; import application.enums.EntryType; /** * This class represents an element of the level of {@link EntryType}s as it * saves the {@link EntryType} and the corresponding value (e.g. de_DE for * region code) or the count of data entries of this type (e.g. 10 for records). * * @author Bianca * */ public class Element { /** * The {@link EntryType} of this element. */ private EntryType type; /** * The value or count of this element. */ private String value; public Element(EntryType type, String value) { this.type = type; this.value = value; } /** * Gets the {@link EntryType} of this element. * * @return The described value. */ public EntryType getType() { return this.type; } /** * Get the value or count of this element. * * @return The described value. */ public String getValue() { return this.value; } }