LanguageIdentificationOptions.Builder

public static class LanguageIdentificationOptions.Builder extends Object

Builder to create a LanguageIdentificationOptions instance.

Public Constructor Summary

Public Method Summary

LanguageIdentificationOptions
build()
Creates a new LanguageIdentificationOptions instance.
LanguageIdentificationOptions.Builder
setConfidenceThreshold(float confidenceThreshold)
Sets the minimum confidence for the identifyLanguage(String) or identifyPossibleLanguages(String) call.
LanguageIdentificationOptions.Builder
setExecutor(Executor executor)
Sets the custom Executor to use.

Inherited Method Summary

Public Constructors

public LanguageIdentificationOptions.Builder ()

Public Methods

public LanguageIdentificationOptions build ()

Creates a new LanguageIdentificationOptions instance.

public LanguageIdentificationOptions.Builder setConfidenceThreshold (float confidenceThreshold)

Sets the minimum confidence for the identifyLanguage(String) or identifyPossibleLanguages(String) call.

If no value is set, a default value is used, depending on the method call.

Parameters
confidenceThreshold the minimum confidence for the identifyLanguage(String) or identifyPossibleLanguages(String) call
Returns
  • this object, for chaining method calls

public LanguageIdentificationOptions.Builder setExecutor (Executor executor)

Sets the custom Executor to use. If no Executor is set, an internal background thread pool will be used.

Most clients should not need to call this method.

Parameters
executor the Executor to use
Returns
  • this object, for chaining method calls