Package com.google.gwt.i18n.shared
Class WordCountDirectionEstimator
java.lang.Object
com.google.gwt.i18n.shared.DirectionEstimator
com.google.gwt.i18n.shared.WordCountDirectionEstimator
Direction estimator that uses the "word count" heuristic.
Note: this is probably the recommended estimator for most use cases.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionestimateDirection
(String str) Estimates the direction of a given string using the "word count" heuristic, as defined atBidiUtils.estimateDirection(java.lang.String)
.static WordCountDirectionEstimator
get()
Get an instance of WordCountDirectionEstimator.Methods inherited from class com.google.gwt.i18n.shared.DirectionEstimator
estimateDirection, estimateDirection
-
Constructor Details
-
WordCountDirectionEstimator
public WordCountDirectionEstimator()
-
-
Method Details
-
get
Get an instance of WordCountDirectionEstimator.- Returns:
- An instance of WordCountDirectionEstimator.
-
estimateDirection
Estimates the direction of a given string using the "word count" heuristic, as defined atBidiUtils.estimateDirection(java.lang.String)
.- Specified by:
estimateDirection
in classDirectionEstimator
- Parameters:
str
- Input string.- Returns:
- Direction The estimated direction of
str
.
-