Repository for the HealthTool which enables Apple users to analyse their health data from the Apple health app and prepares the data for contributing it for future studies on wearable data.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

47 lines
877 B

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;
}
}