目录

SampleSection

Class Info

public class SampleSection

Activity segmentation class, which stores the data of a single segment for a segment-based activity.

Public Constructor Summary

Constructor Name

SampleSection()

Creates a SampleSection object.

Nested Class Summary

Qualifier and Type

Class Name and Description

public static class

SampleSection.Builder()

Builder for SampleSection.

Public Method Summary

Qualifier and Type

Method Name and Description

int

getSectionNum()

Obtains the segment index.

long

getSectionTime(TimeUnit timeUnit)

Obtains the segment interval.

long

getStartTime(TimeUnit timeUnit)

Obtains the start time of a segment.

long

getEndTime(TimeUnit timeUnit)

Obtains the end time of a segment.

List<SamplePoint>

getSectionDataList()

Obtains the segment statistical data list.

Public Constructors

[h2]SampleSection()

Constructor

public SampleSection()

Creates a SampleSection object.

Public Methods

[h2]getSectionNum()

Method

public int getSectionNum()

Obtains the segment index.

Returns

Type

Description

int

Segment index.

[h2]getSectionTime(TimeUnit timeUnit)

Method

public long getSectionTime(TimeUnit timeUnit)

Obtains the segment interval.

Parameters

Name

Description

timeUnit

Time unit.

Returns

Type

Description

long

Segment interval.

[h2]getStartTime(TimeUnit timeUnit)

Method

public long getStartTime(TimeUnit timeUnit)

Obtains the start time of a segment.

Parameters

Name

Description

timeUnit

Time unit.

Returns

Type

Description

long

Segment start time.

[h2]getEndTime(TimeUnit timeUnit)

Method

public long getEndTime(TimeUnit timeUnit)

Obtains the end time of a segment.

Parameters

Name

Description

timeUnit

Time unit.

Returns

Type

Description

long

Segment end time.

[h2]getSectionDataList()

Method

public List<SamplePoint> getSectionDataList()

Obtains the segment statistical data list.

Returns

Type

Description

List<SamplePoint>

Segment statistical data list.