public class FirstStrongDirectionEstimator extends DirectionEstimator
Constructor and Description |
---|
FirstStrongDirectionEstimator() |
Modifier and Type | Method and Description |
---|---|
HasDirection.Direction |
estimateDirection(java.lang.String str)
Estimates the direction of a given string using the "first strong"
heuristic: The return value is determined by the first character in the
string with strong directionality.
|
static FirstStrongDirectionEstimator |
get()
Get an instance of FirstStrongDirectionEstimator.
|
estimateDirection, estimateDirection
public static FirstStrongDirectionEstimator get()
public HasDirection.Direction estimateDirection(java.lang.String str)
estimateDirection
in class DirectionEstimator
str
- Input string.str
.