public static class LanguageDetection.DetectionResult.Builder extends BaseAttribute.Builder<LanguageDetection.DetectionResult,LanguageDetection.DetectionResult.Builder>
Constructor and Description |
---|
LanguageDetection.DetectionResult.Builder(LanguageCode language)
Constructs a builder with default values.
|
LanguageDetection.DetectionResult.Builder(LanguageDetection.DetectionResult toCopy)
Constructs a builder initialized from an existing detection result.
|
Modifier and Type | Method and Description |
---|---|
LanguageDetection.DetectionResult |
build()
Build an immutable detection result from the current state of the builder.
|
LanguageDetection.DetectionResult.Builder |
confidence(Double confidence)
Specifies the confidence.
|
LanguageDetection.DetectionResult.Builder |
encoding(String encoding)
Specifies the encoding.
|
LanguageDetection.DetectionResult.Builder |
language(LanguageCode language)
Specifies the language.
|
LanguageDetection.DetectionResult.Builder |
script(ISO15924 script)
Specifies the script.
|
extendedProperties, extendedProperty
public LanguageDetection.DetectionResult.Builder(LanguageCode language)
language
- the detected languagepublic LanguageDetection.DetectionResult.Builder(LanguageDetection.DetectionResult toCopy)
toCopy
- the item to copypublic LanguageDetection.DetectionResult.Builder language(LanguageCode language)
language
- the languagepublic LanguageDetection.DetectionResult.Builder encoding(String encoding)
encoding
- the encodingpublic LanguageDetection.DetectionResult.Builder script(ISO15924 script)
script
- the scriptpublic LanguageDetection.DetectionResult.Builder confidence(Double confidence)
confidence
- the confidence; null if no confidence is available.public LanguageDetection.DetectionResult build()
Copyright © 2016 Basis Technology Corporation. All Rights Reserved.