Class Detection (2.46.0)

public class Detection implements Serializable

Information about a language detection. Objects of this class contain the detected language and possibly a confidence level. See Also: Detecting Language

Inheritance

Object > Detection

Implements

Serializable

Methods

equals(Object obj)

public final boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getConfidence()

public float getConfidence()

Returns an optional confidence value in the interval [0,1]. The closer this value is to 1, the higher the confidence level for the language detection. Note that this value is not always available.

Returns
Type Description
float

getLanguage()

public String getLanguage()

Returns the code of the detected language. See Also: Supported Languages

Returns
Type Description
String

hashCode()

public final int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides