Class AudioAnalysisSection.Builder
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.miscellaneous.AudioAnalysisSection.Builder
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
AudioAnalysisSection
Builder class for building
AudioAnalysisSection
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a model object with the information set in the builder object.The key setter.setKeyConfidence
(Float keyConfidence) The key confidence setter.setLoudness
(Float loudness) The loudness setter.setMeasure
(AudioAnalysisMeasure measure) The measure setter.The mode setter.setModeConfidence
(Float modeConfidence) The mode confidence setter.The tempo setter.setTempoConfidence
(Float tempoConfidence) The tempo confidence setter.setTimeSignature
(Integer timeSignature) The time signature setter.setTimeSignatureConfidence
(Float timeSignatureConfidence) The time signature confidence setter.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setMeasure
The measure setter.- Parameters:
measure
- The measure of the audio analysis section object.- Returns:
- An
AudioAnalysisSection.Builder
.
-
setLoudness
The loudness setter.- Parameters:
loudness
- The loudness of the section.- Returns:
- An
AudioAnalysisSection.Builder
.
-
setTempo
The tempo setter.- Parameters:
tempo
- The tempo of the section.- Returns:
- An
AudioAnalysisSection.Builder
.
-
setTempoConfidence
The tempo confidence setter.- Parameters:
tempoConfidence
- The tempo confidence of the section.- Returns:
- An
AudioAnalysisSection.Builder
.
-
setKey
The key setter.- Parameters:
key
- Main key of the section.- Returns:
- An
AudioAnalysisSection.Builder
.
-
setKeyConfidence
The key confidence setter.- Parameters:
keyConfidence
- The key confidence of the section.- Returns:
- An
AudioAnalysisSection.Builder
.
-
setMode
The mode setter.- Parameters:
mode
- The modality type of the section.- Returns:
- An
AudioAnalysisSection.Builder
.
-
setModeConfidence
The mode confidence setter.- Parameters:
modeConfidence
- The modality confidence of the section.- Returns:
- An
AudioAnalysisSection.Builder
.
-
setTimeSignature
The time signature setter.- Parameters:
timeSignature
- Time signature value of the section.- Returns:
- An
AudioAnalysisSection.Builder
.
-
setTimeSignatureConfidence
The time signature confidence setter.- Parameters:
timeSignatureConfidence
- The time signature confidence of the section.- Returns:
- An
AudioAnalysisSection.Builder
.
-
build
Description copied from interface:IModelObject.Builder
Build a model object with the information set in the builder object.
The type of the model object and its methods depend on its corresponding implementation.- Returns:
- A model object.
-