t.21.120.2.source-code.Field Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fit Show documentation
Show all versions of fit Show documentation
The Official Garmin FIT SDK
/////////////////////////////////////////////////////////////////////////////////////////////
// Copyright 2023 Garmin International, Inc.
// Licensed under the Flexible and Interoperable Data Transfer (FIT) Protocol License; you
// may not use this file except in compliance with the Flexible and Interoperable Data
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.120Release
// Tag = production/release/21.120.00-0-g2d77811
/////////////////////////////////////////////////////////////////////////////////////////////
package com.garmin.fit;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.DataInputStream;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.io.OutputStreamWriter;
public class Field extends FieldBase {
protected String name;
protected int num;
protected int type;
protected double scale;
protected double offset;
protected String units;
protected boolean isAccumulated;
protected ArrayList components;
protected ArrayList subFields;
private Profile.Type profileType;
private boolean isExpandedField;
public Field(final Field field) {
super(field);
if (field == null) {
this.name = "unknown";
this.num = Fit.FIELD_NUM_INVALID;
this.type = 0;
this.profileType = Profile.Type.ENUM;
this.scale = 1;
this.offset = 0;
this.units = "";
this.isAccumulated = false;
this.values = new ArrayList